I need special characters (accents, cyrillic glyphs) in my file. Cyrillic seems to work well with Linux Libertine, but accents trigger warnings:
LaTeX Font Warning: Font shape `OT1/LinLibertine_R.otf(0)/m/it' undefined
(Font) using `OT1/cmr/m/n' instead on input line 26.
Question is: how do I need to fix my code/how can I use accents in this setup (xelatex + Libertine OTF fonts) without falling back to OT1/cmr?
Here is my example file:
\documentclass[a4paper,11pt]{scrreprt}
% General font-related definitions at the top! (Taken from
% http://www.linuxlibertine.org/fileadmin/user_upload/PDF/Libertine-XeTex-DE.pdf)
\usepackage{xunicode}
\usepackage{fontspec}
\usepackage{xltxtra}
\usepackage{polyglossia}
%\usepackage{csquotes} % Causes some error messages?
% Load font from current working directory.
\setmainfont[
BoldFont = LinLibertine_RZ.otf,
ItalicFont = LinLibertine_RI.otf,
BoldItalicFont = LinLibertine_RZI.otf,
Ligatures=TeX]{LinLibertine_R.otf}
\setsansfont[
BoldFont = LinBiolinum_RB.otf,
ItalicFont = LinBiolinum_RI.otf,
BoldItalicFont = LinBiolinum_RI.otf, % FIXME?!
Ligatures=TeX]{LinBiolinum_R.otf}
\setmainlanguage{german}
\setotherlanguage{russian}
\begin{document}
.\\
zas\'{y}pat’\\ % This is line 27.
zasypat’\\
\end{document}
(I have all the *.otf files in my current working directory.)
Thanks in advance.
xunicode(and alsoxltxtra). Instructions telling to load them are largely outdated. – egreg Jul 08 '14 at 12:01I guess I should suggest a fix for http://www.linuxlibertine.org/fileadmin/user_upload/PDF/Libertine-XeTex-DE.pdf, from which I have taken my preambel.
– mfuglos Jul 13 '14 at 00:47