Changes

Jump to navigation Jump to search
Splitting ligatures and miscellaneous into separate sections. Updating image.
This page shows you how to use most of the typographical features of the Palatino Linotype font shipped with MS Windows.
The following code has been tested with ConTeXt 2013.12.20 / requires LuaTeX 0.77.0 on Windows 7. It takes advantage of recent fixes + which simplified simplifies the font setup significantly.
== Example file ==
<texcode>
% specifying ancient greek pattern ensures proper hyphenation of greek text
\setuplanguage[en][patterns={en,agr}]
\mainlanguage[en]
 
\definefontfamily[palatino][rm][Palatino Linotype][features={default, quality}]
% by default all \it \bf \bi \smallcaps \oldstyle styles are ready to use as well as ligatures
% but superscript requires extra settings
\definefontfeature[f:superscript][sups=yes]
% global protrusion and expansion settings - it is not inherited in custom paragraph definitions
\setupalign[hz, hanging]
% default 'verystrict' tolerance settings produces unwrapped greek text
\setuptolerance[strict]
\defineparagraphs[TwoColumns][n=2, align={hz, hanging}]
\setupparagraphs[TwoColumns][1][width=52pt100pt, style=italic, align=left]
\starttext
\startTwoColumns
Old Ancient greek\TwoColumns
Ὅτι μὲν ὑμεῖς, ὦ ἄνδρες Ἀθηναῖοι,
πεπόνθατε ὑπὸ τῶν ἐμῶν κατηγόρων,
αὐτῶν ὀλίγου ἐμαυτοῦ ἐπελαθόμην,
οὕτω πιθανῶς ἔλεγον.
\stopTwoColumns
\startTwoColumns
Ligatures\TwoColumns
Jeff, the office at the first floor is offline.
\stopTwoColumns
\startTwoColumnsMiscellaneous\TwoColumnsOld style ffl figures \& superior characters: 567890 1234567890/ {\oldstyle 5678901234567890} --- .\parSuperior characters 1{\sup 1} o{\sup o} re{\sup re}.\stopTwoColumns
\stoptext
</texcode>
[[Image:Palatino_linotype_under_mkivpalatino_linotype_under_mkiv.png]]

Navigation menu