Comments (6)
windows版(原本):
\documentclass[UTF8,a4paper,12pt]{ctexart} \begin{document} \songti\zihao{1} \textbf{模板} \end{document}
- 用的什么引擎?
- 请再次确认,用这个简单例子就能得到伪粗吗?如果答案是「是」,建议检查 log,看是不是加载了什么本地修改过的配置。也可以上传 log
from forum.
用的xelatex
确认是。我是请求他人帮我尝试的。短时间内不能上传log。但学校提供的模板里pdf的效果一模一样(锯齿状伪粗)。并且他应该没有修改过什么配置。
from forum.
但学校提供的模板里pdf的效果一模一样(锯齿状伪粗)。并且他应该没有修改过什么配置。
不,这种稍微错开多次排印的伪粗,不是 ctexart
默认会使用的。我在 GitHub Actions 里做了测试,见 muzimuzhi/hello-github-actions#10 。Windows Server 2022 + TeX Live 2023 下,xelatex 编译你的例子得到的是正常的无加粗的 宋体/SimSun(可以从这里下载 artifacts 查看 PDF),并伴随 warning
LaTeX Font Warning: Font shape `TU/SimSun(1)/b/n' undefined
(Font) using `TU/SimSun(1)/m/n' instead on input line 3.
请务必检查哪里改了,比如有没有加载一个自定义的 ctex.cfg
或 xeCJK.cfg
。如果安装 TeX Live 2023 后没有手动改过发行版安装目录下的文件,可以在 log 里找找有没有特别的路径。上传完整 log 文件可能会有帮助,只是可能。
from forum.
我认为你提供的信息是错的,以下是复现条件、代码和效果:
- TeX Live 2022
- win 11
\documentclass{article}
\usepackage[scheme=plain]{ctex}
\begin{document}
\songti\zihao{1}\bfseries 模板
\end{document}
-
Font shape `TU/SimSun(1)/b/n' undefined (Font) using `TU/SimSun(1)/m/n' instead.
\documentclass[AutoFakeBold=2]{ctexart}
\begin{document}
\songti\zihao{1} \textbf{模板}
\end{document}
可以发现,只跟引擎有关,请你确保你所说的『用的xelatex』是你亲眼看见、用命令行编译、能提供 log 文件的结果,否则不能作为证明。
from forum.
理解。看来应该是用pdflatex编译才产生了这种效果。为给出了错误的信息而抱歉。最后请教一下,如何用pdflatex编译?我用latexmk -pdflatex
与pdflatex
均会报错,显示
!pdfTeX error: pdflatex (file simsun.ttc): cannot open TrueType font file for r
eading
from forum.
理解。看来应该是用pdflatex编译才产生了这种效果。为给出了错误的信息而抱歉。最后请教一下,如何用pdflatex编译?我用
latexmk -pdflatex
与pdflatex
均会报错,显示!pdfTeX error: pdflatex (file simsun.ttc): cannot open TrueType font file for r eading
你大概率是用 Linux 环境编译的,请你提供『完整』的信息,并尝试自行检索。
from forum.
Related Issues (20)
- 讨论范围:CTeX套装问题or中文TeX问题? HOT 6
- Error: Undefined control sequence HOT 17
- 汉字直排行间标点下冒号(及分号)的问题 HOT 4
- xeCJK宏包文档中3.2.1节需要增补 HOT 4
- xeCJKfntef 和 ulem 联用时影响 \textbf 的作用范围 HOT 3
- 使用XeLatex构建中文文档源码时报错: xdvipdfmx:fatal: Unknown coverage format HOT 7
- 如何在article中调整所有caption为楷体 HOT 1
- 中英文之间空格不习惯,如何去掉? HOT 11
- CJKfntef 是否具有 xeCJKfntef 的 subtract 功能?
- CTeX 3.0.212.1 xelatex编译通过,但无法生成pdf。dvipdfmx:fatal: typecheck: Invalid object type: -1 7 (line 2378)] HOT 6
- 关于LaTeX2e中文档类使用l3keys键对值的问题 HOT 8
- 当minipage环境和enumerate配合使用时,引入hyperref宏包会导致minipage顶部对齐失效 HOT 2
- 选项 leqno 与 fleqn 的缩写 HOT 13
- 我想将某些内容固定排版在偶数页的页面底部,但使用\ifodd\value{page}进行判断时在某些情形下会失效 HOT 4
- `jiazhu` 宏包是否能实现 `linespread < 1` 的排版效果?
- 如何将附录放在backmatter后同时对附录进行编号? HOT 6
- 能否实现英语句子中自动使用非中文字体的标点符号 HOT 3
- How to draw an specific feynman diagram with TikZ (LaTeX) HOT 4
- [NFSS] 关于使表示字体的控制序列等于\relax的作用(的问题) HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from forum.