XeLateX の fontspec を使用した Computer Modern (パッケージ mod)

XeLateX の fontspec を使用した Computer Modern (パッケージ mod)

フリッゲリのテンプレートを使って履歴書を作成したいのですが(http://www.latextemplates.com/template/friggeri-resume-cv) は、私のコンピュータには入っていない Helvetica Neue フォントとパッケージ 'fontspec' に基づいています。クラス ファイル friggeri-cv.cls では、Helvetica フォントは次のように呼び出されます。

\newfontfamily\bodyfont[]{Helvetica Neue}
\newfontfamily\thinfont[]{Helvetica Neue UltraLight}
\newfontfamily\headingfont[]{Helvetica Neue Condensed Bold}

\defaultfontfeatures{Mapping=tex-text}
\setmainfont[Mapping=tex-text, Color=textcolor]{Helvetica Neue Light}

私は自分のコンピュータにインストールされているTrueType/OpenTypeフォント(例えば、Calibri)でいくつかの決定的な試みをしましたが、私はComputer Modernフォントの方が好みなので、代わりにこれを使用したいと思ってHelvetica Neueいますcmrcmss

\newfontfamily\bodyfont[]{cmss}
% ...
\setmainfont[Mapping=tex-text, Color=textcolor]{cmss}

フォントが見つからないため動作しません(もちろん私はComputer Modern/Latin ModernのTrueType版を持っていません)そしてコードを

%\newfontfamily\bodyfont[]{Helvetica Neue}
\def\bodyfont{\sf}
%\newfontfamily\thinfont[]{Helvetica Neue UltraLight}
\def\thinfont{\sf\sl}    %not exactly what I'm looking for but to ensure the command responds
%\newfontfamily\headingfont[]{Helvetica Neue Condensed Bold}
\def\headingfont{\sf\bf}

\renewcommand*{\familydefault}{\sfdefault}
\defaultfontfeatures{Mapping=tex-text, Color=textcolor}
%\setmainfont[Mapping=tex-text, Color=textcolor]{Computer Modern Roman}

コンパイルするとこのエラーが発生します:

! TeX capacity exceeded, sorry [input stack size=5000].
\font@name ->
\EU1/lmss/m/n/14.4
l.35 \section{contact}

私は XeLaTeX の初心者で、Friggeri CV テンプレートのこの部分を TT/OT フォントではなく「ネイティブ」の Computer Modern フォントを使用するように書き直す (できればシンプルでわかりやすい) 方法を探しています。Cls ファイルは上記の URL から取得できます。以下は、Friggeri のサンプル コードの短縮版で bib なしのバージョンです。

\documentclass[]{friggeri-cv} 

\begin{document}
\header{john}{smith}{junior business analyst} 

\begin{aside} % In the aside, each new line forces a line break
\section{contact}
123 Broadway
City, State 12345
\section{languages}
english mother tongue
spanish \& italian fluency
\section{programming}
CSS3 \& HTML5
\end{aside}

\section{education}

\begin{entrylist}
\entry
{2011--2012}
{Masters {\normalfont of Commerce}}
{The University of California, Berkeley}
{Thesis explored the idea that money...}
\entry
{2007--2008}
{Bachelor {\normalfont of Business Studies}}
{The University of California, Berkeley}
{Specialization in Commerce}
\end{entrylist}

\section{experience}

\begin{entrylist}
\entry
{2012--Now}
{LEHMAN BROTHERS}
{Los Angeles, California}
{\emph{1\textsuperscript{st} Year Analyst} \\
Developed spreadsheets for risk analysis.}
\end{entrylist}    
\end{document}

ご協力いただければ幸いです。

答え1

パッケージfontspecにはフォント名が必要です。Computer modern の場合、これはCMU SerifおよびですCMU Sans

Latin Modern フォントは、Computer Modern の拡張機能で、多くの慎重に設計された発音区別記号が含まれています。英語のアルファベットで使用される文字よりも多くの文字が必要な場合は、LM をお勧めします。これは、 および になりLatin Modern RomanますLatin Modern Sans

Latin Modern Mono等幅フォントが必要な場合にも使用できます。

関連情報