[XeTeX] (Xe)TeX Live after update: Upright font found, but not italic - Huh?
Keith J. Schultz
keithjschultz at web.de
Mon Dec 5 08:29:41 CET 2011
Hi,
I am no expert, but
1) using XeTeX et al. you normally should not be using the fontenc
package!
2) In the example below you are using \usepackage with \makeatletter
I assume this will cause problems.
3) I would use polyglossia instead of babel, yet for german it is not
a must.
Am 04.12.2011 um 14:46 schrieb Wolfgang Keller:
> Hello,
>
> since last week, some update seems to have wrecked something in my TeX
> Live installation. The example document (fo testing, you need the
> Libertine typeface) below:
>
> %% LyX 2.0.2 created this file. For more info, see http://www.lyx.org/.
> %% Do not edit unless you really know what you are doing.
> \documentclass[10pt,ngerman]{scrartcl}
> \usepackage[T1]{fontenc}
[1] remove above line
> \usepackage{geometry}
> \geometry{verbose,tmargin=3cm,lmargin=5.5cm}
> \usepackage{fancyhdr}
> \pagestyle{fancy}
> \setlength{\parskip}{0pt}
> \setlength{\parindent}{0pt}
>
> \makeatletter
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
> \usepackage{fontspec}
[2] did you forget \makeatother before the above line?
I believe, also, that font spec should be loaded after babel!!
> \usepackage{xltxtra}
> \setmainfont[Mapping=tex-text, ExternalLocation,
> UprightFont=LinLibertine_R.otf, BoldFont=LinLibertine_RB.otf,
> ItalicFont=LinLibertine_RI.otf, BoldItalicFont=LinLibertine_RBI.otf,
> Numbers={Proportional,OldStyle}]{Libertine} \setsansfont
> [Mapping=tex-text, ExternalLocation, UprightFont=LinBiolinum_R.otf,
> BoldFont=LinBiolinum_RB.otf, ItalicFont=LinBiolinum_RI.otf,
> BoldItalicFont=LinBiolinum_RI.otf, Numbers={Proportional,OldStyle},
> Scale=MatchLowercase]{Biolinum} \usepackage{textcase} \usepackage
> {scrpage} \renewcommand{\headrulewidth}{0pt} \usepackage{xkeyval}
> \usepackage{polyglossia} \usepackage{marginnote} \reversemarginpar
> \renewcommand*{\marginfont}{\rmfamily\itshape} \setlength
> {\marginparwidth}{1.67\marginparwidth}
>
> \AtBeginDocument{
> \def\labelitemi{\Libertine{\namedglyph{bullet}}}
> \def\labelitemii{\(\circ\)}
> \def\labelitemiii{\(\diamond\)}
> }
>
> \makeatother
>
> \usepackage{babel}
[3] I would use polyglossia
> \usepackage{xunicode}
> \begin{document}
> \marginpar{Randnotiz}Text
> \end{document}
>
> generates this warning:
>
> LaTeX Warning: Marginpar on page 1 moved.
>
>
> LaTeX Font Warning: Font shape `EU1/Libertine(0)/m/sl' undefined
> (Font) using `EU1/Libertine(0)/m/n' instead on input line
> 41.
>
> [1
>
> ] (./Test202.aux)
>
> LaTeX Font Warning: Some font shapes were not available, defaults
> substituted.
>
> and the attached PDF output. The marginnote text should be
> vertically aligned with the body text and in italic.
>
> Could anyone give me a hint what might be broken?
>
> TIA,
>
> Sincerely,
More information about the XeTeX
mailing list