The fonts configuration in LaTeX is a little confusing me. In my present knowledge system of LaTeX fonts, because my mother tougne is Chinese, which in my document I have three kinds of fonts to set:
- the mainfonts
- the CJKfonts
- the math-fonts
Although I came across the docs of fntguide and know the five arrtibutes of each fonts:encoding, family, series, shape, size, but I have trouble in classifing them into differernt type with fc-list
in command line:
fc-list :lang=en % to list the main fonts
fc-list :lang=zh % to list the CJK fonts
My First Question is : how to list the math-fonts installed in my computer could be assign as the math fonts in command line?
Moreover, if I get three list of fonts(mainfont,CJKfonts,mathfonts), how could I assign them into three categories command(setmainfont
,setsansfont
,setmonofont
), how could I get the detailed infomation of fonts.
My Second Question is: could I assigned a font name 'xxxxFontMono'
as the sansfont
, or use the CJKfonts like 'Microsoft Yahei'
as the mathfonts
? In other word, could I assign the font-family mixed?
As for my final question, I want to replica the following PDF:
Although the edited above is via Microsoft Word, but I tried to replica it in XeLaTeX.
My OS is Windows 11 professional, with TeXLive2024, XeLaTeX.
Some infomation is as below:
- The title is
\zihao{4}
and\yahei
with thectex
package - The mathfonts, as the MSoffice set, is also the
Microsoft YaHei
fonts with\zihao{5}
, but as the Question 2 mentioned, I don't know that is it reasonable to assign the CJKfonts as mathfont with unicode-math, or the MSoffice just automatically substituted another math fonts to fixed the case.
How could I get the basic fonts configured tutorial like fntguide
for basically configured the fonts, fonts actually mess me in learning LaTeX
. thanks!
Any other infomation of the PDF is needed I will supplement them as soon as possible.
Here below is updated with the font information in the formula.