Sun Zhonghao

Results 34 comments of Sun Zhonghao

如果只要中文支持,而不希望更改字号,行距的话,需要使用 ```latex \usepackage[scheme=plain]{ctex} ``` ![texdoc ctex](https://user-images.githubusercontent.com/38098591/170330106-cf95ee57-612c-457d-9efa-4d61b8285159.png) ![zihao](https://user-images.githubusercontent.com/38098591/170330178-a7b81473-8b77-41d8-bcc3-9723bfa740f3.png) ![image](https://user-images.githubusercontent.com/38098591/170330249-a544d7df-d929-469a-8e52-af1ba8737986.png) 而 `cas-dc.cls` 给出的默认字号是 `10pt` ```latex \ExecuteOptions{a4paper,10pt,oneside,fleqn,review} ```

看了一下 `cas-dc.cls`,它用的是 `stix` 宏包,以下是 mwe: ```latex % xelatex \documentclass{article} \usepackage{fontspec} \usepackage{stix} \begin{document} $ \beta - a $ \end{document} ``` ![image](https://user-images.githubusercontent.com/38098591/170336583-8fb44fa4-7df2-4200-bd47-b21b502c8f33.png) 我不懂字体,我猜这是混用字体编码导致的问题。

我所知的解决方法就是不用 `stix` 宏包,换成 `otf` 字体,话说 `cas-dc` 里允许写中文吗?

一个 TeX 文件只能有一个 `\documentclass`, 如果想用其他文档类的某些功能, 可以考虑从 `.cls` 文件中摘出想使用的功能, 或者寻找与目标功能相符的宏包. 如 [xchoices](https://github.com/xkwxdyy/xchoices)

大胆猜测一波是用了 `newtxtext` 宏包

The same issue ``` ➜ npm info gitalk [email protected] | MIT | deps: 9 | versions: 33 A comment plugin base on GitHub issues keywords: comment, plugin, lib, GitHub dist...

回复的有一些晚,你可以使用最新的 `elegantbook` 模板,即 v4.3 的版本,然后使用 `\usepackage[scheme=plain]{ctex}` ```latex \documentclass{elegantbook} \usepackage[scheme=plain,fontset=windows]{ctex} \begin{document} This is a test file. \textbf{This is a bfseries message}. \textit{This is a itshape message} \emph{This is a emphasized message....

可以考虑使用 [`tipauni`](https://ctan.org/pkg/tipauni) , 可以使用 CMU Serif 作为 `tipauni` 的字体, 具体使用方法请读[文档](http://mirrors.ctan.org/macros/unicodetex/latex/tipauni/tipauni.pdf) ```latex % xelatex \documentclass{elegantbook} \newfontfamily{\ipafont}{CMU Serif} \usepackage[preservefont]{tipauni} \let\oldtextipa\textipa \renewcommand*{\textipa}[1]{{\ipafont\oldtextipa{#1}}} \begin{document} Quack (in TeX Gyre TermesX) \fbox{\textipa{4}} (in CMU Serif) \end{document}...

参考 https://github.com/ElegantLaTeX/ElegantBook/issues/194

那提供一个mwe吧