为什么我使用 fontawesome 包时会注意到字体发生了偏移和变形。第一张图片没有使用 fontawesome 包,字体看起来更粗更整齐,而使用包后字体变细了。MWE 1:不使用 fontawesome 包:
\documentclass[10pt]{article}
\RequirePackage[T1]{fontenc}
\usepackage{times}
\usepackage{calc}
\reversemarginpar
%\usepackage[paper=letterpaper,
%%includefoot, % Uncomment to put page number above margin
%marginparwidth=1.2in, % Length of section titles
%marginparsep=.05in, % Space between titles and text
%margin=1in, % 1 inch margins
%includemp]{geometry}
%\setlength{\parindent}{0in}
%%%%%%%%%%%%%%%%%%%%%%%% PDTOOLTIP & FONTAWESOME DECLARE %%%%%%%
\usepackage{pdfcomment}% http://ctan.org/pkg/pdfcomment
\usepackage{amsmath}% http://ctan.org/pkg/amsmath
\usepackage{mathtools}% http://ctan.org/pkg/mathtools
\usepackage{xcolor}
%\usepackage{fontawesome} % add skype, FB and Gtalk symbol. Has a problem.
%\providecommand\faSkype{{\FA\symbol{"F17E}}} % add skype symbol.
%%%%%%%%%%%%%%%%%%%%%%%% End DECLARE %%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%% Begin CV Document %%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Research Interests}
\textbf{Complex adaptive systems in control systems engineering and
behavioral science:} distributed algorithms, computational agent-based
modeling, hybrid dynamic systems, decentralized decision making,
emergence and self organization, amorphous computing, autonomous
systems, control, communications, verification, cooperation,
optimization, game theory, resource allocation, parallel computation,
robotics, energy systems, sustainability in the built environment,
behavioral ecology, engineering education, bio-mimicry and
bio-inspiration
\end{document}
MWE 2:带有 fontawesome 包。
\documentclass[10pt]{article}
\RequirePackage[T1]{fontenc}
\usepackage{times}
\usepackage{calc}
\reversemarginpar
%\usepackage[paper=letterpaper,
%%includefoot, % Uncomment to put page number above margin
%marginparwidth=1.2in, % Length of section titles
%marginparsep=.05in, % Space between titles and text
%margin=1in, % 1 inch margins
%includemp]{geometry}
%\setlength{\parindent}{0in}
%%%%%%%%%%%%%%%%%%%%%%%% PDTOOLTIP & FONTAWESOME DECLARE %%%%%%%
\usepackage{pdfcomment}% http://ctan.org/pkg/pdfcomment
\usepackage{amsmath}% http://ctan.org/pkg/amsmath
\usepackage{mathtools}% http://ctan.org/pkg/mathtools
\usepackage{xcolor}
\usepackage{fontawesome} % add skype, FB and Gtalk symbol. Has a problem.
\providecommand\faSkype{{\FA\symbol{"F17E}}} % add skype symbol.
%%%%%%%%%%%%%%%%%%%%%%%% End DECLARE %%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%% Begin CV Document %%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Research Interests}
\textbf{Complex adaptive systems in control systems engineering and
behavioral science:} distributed algorithms, computational agent-based
modeling, hybrid dynamic systems, decentralized decision making,
emergence and self organization, amorphous computing, autonomous
systems, control, communications, verification, cooperation,
optimization, game theory, resource allocation, parallel computation,
robotics, energy systems, sustainability in the built environment,
behavioral ecology, engineering education, bio-mimicry and
bio-inspiration
\end{document}
答案1
fontawesome
加载fontspec
并将fontspec
默认字体从 Computer Modern 更改为 Latin Modern。
计算机现代:
\documentclass{article}
\usepackage{kantlipsum}
\begin{document}
\kant[1]
\end{document}
拉丁现代风格,fontspec
带有fontawesome
:
\documentclass{article}
\usepackage{fontawesome}
\usepackage{kantlipsum}
\begin{document}
\kant[1]
\end{document}
拉丁现代通过fontspec
没有fontawesome
:
\documentclass{article}
\usepackage{fontspec}
\usepackage{kantlipsum}
\begin{document}
\kant[1]
\end{document}
在您的代码上下文中,这意味着当您加载时fontawesome
,您会得到拉丁现代:
\documentclass[10pt]{article}
\usepackage{calc}
\usepackage{fontawesome} % add skype, FB and Gtalk symbol. Has a problem.
\begin{document}
\section{Research Interests}
\textbf{Complex adaptive systems in control systems engineering and
behavioral science:} distributed algorithms, computational agent-based
modeling, hybrid dynamic systems, decentralized decision making,
emergence and self organization, amorphous computing, autonomous
systems, control, communications, verification, cooperation,
optimization, game theory, resource allocation, parallel computation,
robotics, energy systems, sustainability in the built environment,
behavioral ecology, engineering education, bio-mimicry and
bio-inspiration
\end{document}
要获得类似 Times 的字体,请尝试以下操作:
\documentclass[10pt]{article}
\usepackage{calc}
\usepackage{fontawesome} % add skype, FB and Gtalk symbol. Has a problem.
\defaultfontfeatures{Ligatures=TeX}
\setmainfont
[ UprightFont = *-Regular ,
BoldFont = *-Bold ,
ItalicFont = *-Italic ,
BoldItalicFont = *-BoldItalic ,
]
{TeXGyreTermes}
\begin{document}
\section{Research Interests}
\textbf{Complex adaptive systems in control systems engineering and
behavioral science:} distributed algorithms, computational agent-based
modeling, hybrid dynamic systems, decentralized decision making,
emergence and self organization, amorphous computing, autonomous
systems, control, communications, verification, cooperation,
optimization, game theory, resource allocation, parallel computation,
robotics, energy systems, sustainability in the built environment,
behavioral ecology, engineering education, bio-mimicry and
bio-inspiration
\end{document}
如果您的系统安装了 Times 或 Times New Roman,则可以使用它们。或者选择 opentype 中提供的其他 Times 类似的 TeX 字体之一。