Current location - Training Enrollment Network - Mathematics courses - How to set mathematical fonts separately in XeTeX, and why STIX's mathematical fonts are awesome?
How to set mathematical fonts separately in XeTeX, and why STIX's mathematical fonts are awesome?
There is a problem with installing latex directly with pacman. I changed the font name of ctex-xecjk-winfont.defWIndows to Linux (I didn't copy the WIndows font).

I changed:

% ctex-xecjk-winfonts.def: Windows xecjk font setting defaults to six simple fonts.

% vim:ft=tex

\ setCJKmainfont[bold font = { wenquanyu micron black },italic font = { wending PL new block }]

{Wen Ding PL New Song}

\ setcjkansfont {Hot spring post micron black}

\ setcjkmanofont { wending PL New Block }

\ setcjfamilyfont {zhsong} {Wending PL New Song}

\ setcjfamilyfont {zhhei} {Hot spring post micron black}

\ setcjfamilyfont { zhkai } { wending PL New Block }

\ setcjfamilyfont { zhfs } { wending PL New Block }

% \setCJKfamilyfont{zhli}{LiSu}

% \ setCJKfamilyfont { zh you } { YouYuan }

\ newcommand * {\ songti}

\ newcommand * {\ heiti}

\ newcommand * {\ kaishu} {\ cjkfamily {zhkai}}% italics

\ newcommand * {\ Song Fang}%

% \ newcommand * {\ lishu} {\ cjkfamily {zhili}}% official script

% \ newcommand * {\ lang1033} Xiao Yuan

\endinput

Well, I'm imitating the Song Dynasty. Actually, I forgot to pretend to have some details.

It should be correct to find some font names with fc-list.

I compiled:

\documentclass[ 12pt,a4paper]{ctexart}

\usepackage{fontspec,xunicode}

\ begin {document}

\ Heidi

\section{ Example}

\ begin {word for word}

emphasize

\ end {word for word}

Chinese character number $x=y$ space

\end{document}

Facial brush:

*************************************************

* fontspec warning: "script-not-exist-latn"

*

* The font "Hot Spring Post Micro Black" does not contain the handwriting "CJK".

The * 'Latin' script was used.

*************************************************

*************************************************

* fontspec warning: "Script does not exist"

*

* The font "Wending PL New Script" does not contain the script "CJK".

*************************************************

The compiled PDF file is completely displayed in English and formula text.

How to set mathematical fonts separately in XeTeX, and why STIX's mathematical fonts are awesome?

Don't think too much, I'm tired.