-
Notifications
You must be signed in to change notification settings - Fork 255
FontSettings
If you choose PDFLaTeX
to process your paper, the default article font computer modern has changed to newtx
series, and the default font size is set to 11pt
. The fonts are settings with:
-
newtxtext
package for text fonts, similar to times new roman font. -
newtxmath
package for math fonts, close totimes
package. -
FiraMono
package for typewriter fonts, with optionscale=0.8
. -
ctex
package for Chinese fonts, with optionscheme=plain
.
If you choose XeLaTeX
to process your paper, I use fontspec
package and xeCJK
package. I used fonts available in Windows, if you are using Linux or Mac OS, please substitute these fonts with that of your system. The font setting part
\RequirePackage{fontenc}
\RequirePackage[no-math]{fontspec}
\setmainfont{Times New Roman}[NFSSFamily=ntxtlf]
\setsansfont{Arial}
%\setmonofont[Scale=0.9]{Courier New}
\RequirePackage{xeCJK}
\RequirePackage{xunicode}
\setCJKmainfont[BoldFont={SimHei},ItalicFont={KaiTi}]{SimSun}
\setCJKsansfont[BoldFont={SimHei},ItalicFont={KaiTi}]{KaiTi}
\setCJKmonofont[BoldFont={SimHei},ItalicFont={KaiTi},Scale=0.9]{Microsoft YaHei}
\XeTeXlinebreaklocale "zh"
\XeTeXlinebreakskip = 0pt plus 1pt minus 0.1pt
\RequirePackage{newtxmath}
These packages operate perfectly but are inappropriate for big operators, for example \sum
and \prod
, thus, I change these operators back to computer modern font.
The \linespread
(controls line spacing) is set to 1.3, and I use microtype
to improve the font justification. type1cm
package is used to remove the font shape and font size warning messages.