我正在尝试创建一份类似于保罗·盖斯勒(GitHub)。我没有使用 Adobe Garamond 字体,而是使用 Linux Libertine,一切正常,但粗体字体似乎不起作用。下面只给出相关代码,主要字体设置和粗体文本的使用,MWE 可用这里。如何使 Linux Libertine 上的粗体字体与此 CV 模板配合使用?
\setmainfont[
Ligatures={TeX,Common},
BoldFont={Linux Libertine O},
]{Linux Libertine O}
\setsansfont[
Ligatures={TeX,Common},
Letters=SmallCaps,
Color=660000,
]{Linux Libertine O}
\setmonofont[Scale=0.85]{FontAwesome}
\begin{document}\flushbottom
\pagestyle{fancy} \setlength\headwidth{6.5in}
\rhead{\textsc{paul d.~gessler—r\'{e}sum\'{e}—\thepage{} of \pageref*{LastPage}}} \cfoot{}
\thispagestyle{empty}
\reversemarginpar
\setlength\marginparwidth{0.85in}
\smallskip
\mhead{Education}%
\textbf{Marquette University,} Milwaukee, Wisconsin \newline
\emph{Master of Science, \href{http://www.marquette.edu/engineering/mechanical/}{Mechanical Engineering}} \rdate{2012–2014}
\begin{itemize*}
\item Cumulative GPA: 3.44/4.00; {Energy Systems Specialization}
\item Thesis: \href{https://dl.dropboxusercontent.com/u/10724484/resume/pdg_thesis.pdf}{One-Dimensional Model of a Refrigeration Cycle Compressor Test Block}
\item Advisor: Dr.~Margaret M.~Mathison
\end{itemize*}
\end{document}
答案1
请按以下方式使用:
documentclass[12pt,letterpaper]{article}
\usepackage{fontspec}
\usepackage{libertine}
\setsansfont[
Ligatures={TeX,Common},
Letters=SmallCaps,
Color=660000,
]{Linux Biolinum O}
\setmonofont[Scale=0.85]{FontAwesome}%% THAT is NOT a monofont!
\usepackage{luatex85}% only needed for TL/MikTeX 2016
% \usepackage[adobe-garamond]{mathdesign}
\usepackage{microtype}
\def\myauthor{Paul Gessler}
[...]
并删除全部\setmainfont
内容