首页 > 其他分享 >使用 Overleaf 轻松写 latex 题面

使用 Overleaf 轻松写 latex 题面

时间:2022-10-16 12:24:14浏览次数:81  
标签:latex Overleaf 题面 Fira 编译 statement cls

用的是 Wallbreaker5th 提供的题面模板,download ZIP 之后直接在 overleaf 上面导入就行。

image

导入后把 Compiler 改成 XeLaTeX。

image

第一次编译时编译了很久,提示开启“在出现第一个错误时停止编译”,开启之后重新编译发现报错没有 Consolas 这个字体。

Overleaf 自带的字体可以在这里看到:Which OTF or TTF fonts are supported via fontspec? 搜了一下 Consolas,在里面的名字其实叫 Inconsolata。不过也看到了 Fira Code,就改成 Fira Code 了(在 statement.cls 里面改):

image

试着改了下正文内容,发现 Overleaf 自带的宋体不太全,“滑蒻稽”的“蒻”就显示不出来。。。

下一个 微软新宋体 然后上传到 Overleaf,在 statement.cls 里添加一句 \setCJKmainfont[AutoFakeBold = {3.17}]{simsun.ttc}(这里的 AutoFakeBold 是为了支持 \textbf{} 的粗体)。

image

大功告成,可以瞎写题面了(再次感谢 Wallbreak5th 提供的模板)。

image

标签:latex,Overleaf,题面,Fira,编译,statement,cls
From: https://www.cnblogs.com/huaruoji/p/16795939.html

相关文章