This is actually two questions rolled into one. Consider the example file below:
\documentclass[a4paper]{article}
\usepackage{fontspec}
%
\defaultfontfeatures{Ligatures=TeX,Numbers=OldStyle,Scale=MatchLowercase}
\setmainfont[SmallCapsFont={Linux Libertine Capitals O}]{Linux Libertine O}
\setsansfont[SmallCapsFont={Linux Biolinum Capitals O}]{Linux Biolinum O}
%
\begin{document}
\begin{sffamily}
\noindent Linux Biolinum sans serif text followed by {\scshape Sans serif Small Caps text.} {\scshape Small Caps disappear when diacritics are used like a macron above a in anāchron: note the small letter for the ā instead of a Small Caps version.}
\end{sffamily}
\medskip
\noindent Linux Libertine serif text followed by {\scshape Sans serif Small Caps text.} {\scshape Small Caps disappear when diacritics are used like a macron above a in anāchron: note the small letter for the ā instead of a Small Caps version.}
\end{document}
It compiles with xelatex
but not with lualatex.
My fontspec
package gives
\ProvidesPackage{fontspec}
[2011/09/18 v2.2a Advanced font selection for XeLaTeX/LuaLaTeX]
The installation is on a 64-bit daily-updated TeX Live 2011 installation.
With lualatex
I get this error:
! Improper `at' size (0.0pt), replaced by 10pt.
<to be read again>
relax
l.10 ...inum sans serif text followed by {\scshape
Sans serif Small Caps tex...
Question 1: Why is the file failing to compile with lualatex?
Question 2: There is no small caps "a" with a macron in the PDF output. I just also noticed that the tt
is not in small caps.
I have reported this behaviour at the Linux Libertine project page, but in the absence of a response therefrom, I want to ensure that there is no usage error on my part.
Thanks.
\usepackage{libertineotf}
? It does all the font setting.\usepackage{libertine}
which did not work as expected. With\usepackage{libertineotf}
though, I get slanted small caps, not the upright version. But the file does compile with bothxelatex
andlualatex
.libertine
package [now] supersedes both thelibertineotf
and thelibertine-legacy
packages".