내 CV/이력서 양식을 Friggeri의 템플릿(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
:cmr
cmss
\newfontfamily\bodyfont[]{cmss}
% ...
\setmainfont[Mapping=tex-text, Color=textcolor]{cmss}
글꼴을 찾을 수 없기 때문에 작동하지 않습니다(물론 저는 Computer Modern/Latin Modern의 트루타입 버전이 없습니다).
%\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를 처음 접했고 TT/OT 글꼴 대신 "네이티브" Computer Modern 글꼴을 사용하도록 Friggeri CV 템플릿의 이 부분을 다시 작성하는 (가급적 간단하고 간단한) 방법을 찾고 있습니다. Cls 파일은 위의 URL에서 검색할 수 있으며 다음은 Friggeri 예제 코드의 턱받이가 없는 단축 버전입니다.
\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
고정폭 글꼴이 필요한 경우 에도 사용할 수 있습니다 .