Difference between revisions of "Palatino Linotype under MKIV"
Jump to navigation
Jump to search
(New page: This page shows you how to use most of the typographical features of the Palatino Linotype font shipped with Windows XP under ConTeXt / LuaTeX a.k.a. MKIV, and particularly how to get the ...) |
Jan Tošovský (talk | contribs) (Splitting ligatures and miscellaneous into separate sections. Updating image.) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | This page shows you how to use most of the typographical features of the Palatino Linotype font shipped with Windows | + | This page shows you how to use most of the typographical features of the Palatino Linotype font shipped with MS Windows. |
− | + | The following code requires LuaTeX 0.77.0+ which simplifies the font setup significantly. | |
− | |||
− | The following code | ||
== Example file == | == Example file == | ||
− | |||
− | |||
<texcode> | <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] |
− | \ | + | % an extra \sup macro is defined for our convenience |
− | \ | + | \define[1]\sup{\feature[+][f:superscript]#1} |
− | \ | ||
− | \ | ||
− | |||
− | \ | + | \setupbodyfont[palatino] |
+ | % global protrusion and expansion settings - it is not inherited in custom paragraph definitions | ||
+ | \setupalign[hz, hanging] | ||
− | + | \defineparagraphs[TwoColumns][n=2, align={hz, hanging}] | |
− | + | \setupparagraphs[TwoColumns][1][width=100pt, style=italic, align=left] | |
− | |||
− | |||
− | |||
− | \defineparagraphs[TwoColumns][n=2,align=hanging] | ||
− | \setupparagraphs[TwoColumns][1][width= | ||
\starttext | \starttext | ||
Line 60: | Line 38: | ||
\startTwoColumns | \startTwoColumns | ||
Italic\TwoColumns | Italic\TwoColumns | ||
− | {\ | + | {\it\getbuffer[Plato]} |
\stopTwoColumns | \stopTwoColumns | ||
Line 75: | Line 53: | ||
\startTwoColumns | \startTwoColumns | ||
Small caps\TwoColumns | Small caps\TwoColumns | ||
− | {\ | + | {\smallcaps\getbuffer[Plato]} |
\stopTwoColumns | \stopTwoColumns | ||
\startTwoColumns | \startTwoColumns | ||
− | + | Ancient greek\TwoColumns | |
Ὅτι μὲν ὑμεῖς, ὦ ἄνδρες Ἀθηναῖοι, | Ὅτι μὲν ὑμεῖς, ὦ ἄνδρες Ἀθηναῖοι, | ||
πεπόνθατε ὑπὸ τῶν ἐμῶν κατηγόρων, | πεπόνθατε ὑπὸ τῶν ἐμῶν κατηγόρων, | ||
Line 85: | Line 63: | ||
αὐτῶν ὀλίγου ἐμαυτοῦ ἐπελαθόμην, | αὐτῶν ὀλίγου ἐμαυτοῦ ἐπελαθόμην, | ||
οὕτω πιθανῶς ἔλεγον. | οὕτω πιθανῶς ἔλεγον. | ||
+ | \stopTwoColumns | ||
+ | \startTwoColumns | ||
+ | Ligatures\TwoColumns | ||
+ | Jeff, the office at the first floor is offline. | ||
\stopTwoColumns | \stopTwoColumns | ||
− | Old style figures | + | \startTwoColumns |
+ | Miscellaneous\TwoColumns | ||
+ | Old style figures 1234567890/{\oldstyle 1234567890}.\par | ||
+ | Superior characters 1{\sup 1} o{\sup o} re{\sup re}. | ||
+ | \stopTwoColumns | ||
\stoptext | \stoptext | ||
</texcode> | </texcode> | ||
− | [[Image: | + | [[Image:palatino_linotype_under_mkiv.png]] |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 19:16, 1 April 2016
This page shows you how to use most of the typographical features of the Palatino Linotype font shipped with MS Windows.
The following code requires LuaTeX 0.77.0+ which simplifies the font setup significantly.
Example file
% 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] % an extra \sup macro is defined for our convenience \define[1]\sup{\feature[+][f:superscript]#1} \setupbodyfont[palatino] % global protrusion and expansion settings - it is not inherited in custom paragraph definitions \setupalign[hz, hanging] \defineparagraphs[TwoColumns][n=2, align={hz, hanging}] \setupparagraphs[TwoColumns][1][width=100pt, style=italic, align=left] \starttext \startbuffer[Plato] How you, O Athenians, have been affected by my accusers, I cannot tell; but I know that they almost made me forget who I was--so persuasively did they speak; and yet they have hardly uttered a word of truth. \stopbuffer \startTwoColumns Roman\TwoColumns \getbuffer[Plato] \stopTwoColumns \startTwoColumns Italic\TwoColumns {\it\getbuffer[Plato]} \stopTwoColumns \startTwoColumns Bold\TwoColumns {\bf\getbuffer[Plato]} \stopTwoColumns \startTwoColumns Bold italic\TwoColumns {\bi\getbuffer[Plato]} \stopTwoColumns \startTwoColumns Small caps\TwoColumns {\smallcaps\getbuffer[Plato]} \stopTwoColumns \startTwoColumns Ancient greek\TwoColumns Ὅτι μὲν ὑμεῖς, ὦ ἄνδρες Ἀθηναῖοι, πεπόνθατε ὑπὸ τῶν ἐμῶν κατηγόρων, οὐκ οἶδα· ἐγὼ δ' οὖν καὶ αὐτὸς ὑπ' αὐτῶν ὀλίγου ἐμαυτοῦ ἐπελαθόμην, οὕτω πιθανῶς ἔλεγον. \stopTwoColumns \startTwoColumns Ligatures\TwoColumns Jeff, the office at the first floor is offline. \stopTwoColumns \startTwoColumns Miscellaneous\TwoColumns Old style figures 1234567890/{\oldstyle 1234567890}.\par Superior characters 1{\sup 1} o{\sup o} re{\sup re}. \stopTwoColumns \stoptext