
我試著在Windows7中使用beamer主題Zurich,但是當我編譯它(我選擇Xelatex)時,我總是收到以下錯誤:
! fontspec error: "font-not-found"
!
! The font "Gill Sans" cannot be found.
!
! See the fontspec documentation for further information.
!
! For immediate help type H <return>.
!...............................................
l.30 \setmainfont{Gill Sans}
^^I^^I% Beamer ignores "main font" in favor of s...
?
關於如何解決這個問題有什麼想法嗎?
答案1
您可以嘗試Gillius No2
免費的 opentype 字體,其靈感來自 Gill Sans。它還可以(pdf)latex
與 TeX Live 以及 MiKTeX 一起使用。還有一個condensed
版本。
編輯:
在 MiKTeX 下,為了使軟體包能夠與 一起使用(pdf)latex
,安裝軟體包後,您應該updmap
以管理員身份運行。
添加:
正如 @Harish Kumar 所提到的,在 中beamerfontthemeZurich.sty
,您應該註釋所有與 相關的行Gill Sans
,並在最後替換:
\newcommand{\handwriting}{\fontspec{augie}}
和\newcommand{\handwriting}{\fontspec{Augie}}
。
我在下面給出了結果的範例。
由於我有兩種字體,這裡有一個小測試來進行比較:
\documentclass{article}
\usepackage{gillius2}
\usepackage{fontspec}
\setmainfont{Gillius ADF No2}
\usepackage{lipsum}
\pagestyle{empty}
\begin{document}
\sffamily
\llap{\texttt{Gillius ADF No2: \qquad}}\vskip-\baselineskip\lipsum[11]
\vskip4ex
{\itshape \lipsum[11]}
\vskip4ex
{\bfseries \lipsum[11]}
\vskip 4ex
\fontspec{Gill Sans Std}
\vskip4ex
\llap{\texttt{Gill Sans Std}: \qquad}\vskip-\baselineskip\lipsum[11]
\vskip4ex
{\itshape\lipsum[11]}
\vskip4ex
{\bfseries \lipsum[11]}
\end{document}
example-talk.tex
以下是Zurich 主題文件的結果: