Garamond 字体使用

Garamond 字体使用

我发现下面的代码可用于学术简历(我从 Chiu Yu Ko 网站上获取的:https://sites.google.com/site/kochiuyu/latex-1#TOC-Using-Latex-for-CV)。

\documentclass[12pt,a4paper]{article}

\usepackage{hyperref}
\usepackage{geometry}
\usepackage{enumitem}

% Fonts
\usepackage[T1]{fontenc}
\usepackage[urw-garamond]{mathdesign}

% Set your name here
\def\name{Your Name}
\def\email{Your Email}
\def\phone{Telephone}
\def\fax{FAX}
\def\website{Website}


% The following metadata will show up in the PDF properties
\hypersetup{
  colorlinks = true,
  urlcolor = black,
  pdfauthor = {\name},
  pdfkeywords = {economics, industrial organization,
    applied game theory},
  pdftitle = {\name: Curriculum Vitae},
  pdfsubject = {Curriculum Vitae},
  pdfpagemode = UseNone
}

\geometry{
  body={6.8in, 9in},
  left=0.8in,
  top=1.0in
}

% Customize page headers
\pagestyle{myheadings}
\markright{\name}
\thispagestyle{empty}

% Custom section fonts
\usepackage{sectsty}
\sectionfont{\rmfamily\mdseries\Large}
\subsectionfont{\rmfamily\mdseries\itshape\large}

% Other possible font commands include:
% \ttfamily for teletype,
% \sffamily for sans serif,
% \bfseries for bold,
% \scshape for small caps,
% \normalsize, \large, \Large, \LARGE sizes.

% Don't indent paragraphs.
\setlength\parindent{0em}

% Make lists without bullets and compact spacing
\renewenvironment{itemize}{
  \begin{list}{}{
    \setlength{\leftmargin}{1.5em}
    \setlength{\itemsep}{0.25em}
    \setlength{\parskip}{0pt}
    \setlength{\parsep}{0.25em}
  }
}{
  \end{list}
}
\setlist[enumerate]{itemsep=0.25em}

\begin{document}

% Place name at left
{\huge \name}
\bigskip

\begin{minipage}[t]{0.495\textwidth}
  Department of Economics \\
 % Faculty of Arts and Social Sciences \\
  National University of Singapore \\
  Singapore 117570
\end{minipage}
\begin{minipage}[t]{0.495\textwidth}
  Phone: \phone \\
  Email: \href{mailto:\email}{\email} \\
  Website:  \href{https://\website}{\website}
\end{minipage}

\section*{Education}

\begin{itemize}
  \item Ph.D. Economics, National University of Singapore, 2016 (Expected).
    \begin{itemize}
    \item \emph{Dissertation:} ``Title''.
    \item \emph{Committee:} Your advice (Chair), Committee Members.
    \end{itemize}
  \item B.A. Economics, National University of Singapore, 2005.
\end{itemize}


\section*{Research Interest}
\begin{itemize}
    \item Primary: Applied Game Theory, and Industrial Organization
    \item Secondary: Political Economy, Financial Economics, and Economic History
\end{itemize}



\section*{Research Papers}

\begin{enumerate}
    \item (Job Market Paper) Title of Paper 1 (with Coauthor) .
    \item Title of Paper 2 (with Coauthor) .
    \item Title of Paper 3 (with Coauthor) .
\end{enumerate}

\section*{Conference Presentations}

\begin{itemize}

\item My important Paper
\begin{itemize}
    \item XXX Conference, Jul 5--7, 2015
    \item YYY Conference, Jul 5--7, 2014
\end{itemize}


\end{itemize}


\section*{Teaching Experience}


\begin{itemize}
\item Teaching Assistant, Macroeconomics, Fall 2015
\item Teaching Assistant, Microeconomics, Fall 2014
\item Teaching Assistant, Econometrics, Fall 2013
\end{itemize}

\section*{Reference}

\begin{minipage}[t]{0.495\textwidth}
  Prof. ABC\\
  National University of Singapore \\
  Singapore 117570

  Prof. CDE\\
  National University of Singapore \\
  Singapore 117570
\end{minipage}
\begin{minipage}[t]{0.495\textwidth}
  Prof. CDE\\
  National University of Singapore \\
  Singapore 117570
\end{minipage}

% Footer
%\medskip
\bigskip
%\begin{center}
  \begin{small}
    Last updated: \today
  \end{small}
%\end{center}

\end{document}

tex 文件无法编译

\usepackage[T1]{fontenc}
\usepackage[urw-garamond]{mathdesign}

留在代码中。似乎不支持 Garamond 字体。我使用的是 Texworks 0.4.6。如果我编译文件时不包含上述两行,它就可以正常工作。如果我包含它们,我会得到:

抱歉,但“C:\Program Files (x86)\MiKTeX 2.9\miktex\bin\texify.exe”没有成功。

日志文件希望包含让 MiKTeX 再次运行的信息:

C:/用户/dario/AppData/Local/MiKTeX/2.9/miktex/log/texify.log

如果您需要帮助,您可能需要访问 MiKTeX 项目页面。

有人知道为什么会发生这种情况吗?提前致谢。

答案1

您的问题很可能与任何复杂的主题都无关。很可能您的 PC 上没有 URW Garamond,因此math-design找不到它。尝试使用它\usepackage{mathdesign}而不是您的代码行。如果这样没问题,那么只是包含包的一个错误。

但正如我已经做的那样,我建议你阅读 LaTeX 的初学者指南,特别是有关调试的部分。这对你和我们都有帮助。

相关内容