[texhax] Danish character in Plain TeX

Philip Taylor P.Taylor at Rhul.Ac.Uk
Sat Oct 4 18:00:06 CEST 2014


If your files are in Unicode, XeTeX is your best bet, but you would do
well to avoid using it with Computer Modern for such an application;
better will be to declare the fonts you want using system fonts --
the following is the relevant part of a multilingual job which I run
here using XeTeX.  Obviously you will need to redefine \tenrm (etc)
if you want to make no changes to your documents and continue to use
font selectors
such as \rm, \bf, \it, etc.

Philip Taylor
--------
\def \largescale {\magstep 1}

\def \normalfonts
{%
\font \bodyfont = "Palatino Linotype"
\font \italicbodyfont = "Palatino Linotype/I"
\font \latinfont = "Palatino Linotype/I"
\font \hebrewfont = "Arial Unicode MS"
\font \headfont = "Arial Unicode MS/B:color=FF0000"
\let \englishfont = \bodyfont
\let \greekfont = \bodyfont
\bodyfont
}

\def \boldfonts
{%
\font \bodyfont = "Palatino Linotype/B"
\font \italicbodyfont = "Palatino Linotype/BI"
\font \latinfont = "Palatino Linotype/BI"
\font \hebrewfont = "Arial Unicode MS/B"
\font \headfont = "Arial Unicode MS/B:color=FF0000"
\let \englishfont = \bodyfont
\let \greekfont = \bodyfont
\bodyfont
}

\def \largefonts
{%
\font \bodyfont = "Palatino Linotype" scaled \largescale
\font \italicbodyfont = "Palatino Linotype/I" scaled \largescale
\font \latinfont = "Palatino Linotype/I" scaled \largescale
\font \hebrewfont = "Arial Unicode MS" scaled \largescale
\font \headfont = "Arial Unicode MS/B:color=FF0000" scaled \largescale
\let \englishfont = \bodyfont
\let \greekfont = \bodyfont
\bodyfont
}

\def \largeboldfonts
{%
\font \bodyfont = "Palatino Linotype/B" scaled \largescale
\font \italicbodyfont = "Palatino Linotype/BI" scaled \largescale
\font \latinfont = "Palatino Linotype/BI" scaled \largescale
\font \hebrewfont = "Arial Unicode MS/B" scaled \largescale
\font \headfont = "Arial Unicode MS/B" scaled \largescale
\let \englishfont = \bodyfont
\let \greekfont = \bodyfont
\bodyfont
}

\normalfonts


More information about the texhax mailing list