Giter Club home page Giter Club logo

Comments (6)

muzimuzhi avatar muzimuzhi commented on August 12, 2024

windows版(原本):

\documentclass[UTF8,a4paper,12pt]{ctexart}
\begin{document}
\songti\zihao{1} \textbf{模板}
\end{document}
  • 用的什么引擎?
  • 请再次确认,用这个简单例子就能得到伪粗吗?如果答案是「是」,建议检查 log,看是不是加载了什么本地修改过的配置。也可以上传 log

from forum.

ytskuh avatar ytskuh commented on August 12, 2024

用的xelatex
确认是。我是请求他人帮我尝试的。短时间内不能上传log。但学校提供的模板里pdf的效果一模一样(锯齿状伪粗)。并且他应该没有修改过什么配置。

from forum.

muzimuzhi avatar muzimuzhi commented on August 12, 2024

但学校提供的模板里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.cfgxeCJK.cfg。如果安装 TeX Live 2023 后没有手动改过发行版安装目录下的文件,可以在 log 里找找有没有特别的路径。上传完整 log 文件可能会有帮助,只是可能。

from forum.

sikouhjw avatar sikouhjw commented on August 12, 2024

我认为你提供的信息是错的,以下是复现条件、代码和效果:

  • TeX Live 2022
  • win 11
\documentclass{article}
\usepackage[scheme=plain]{ctex}
\begin{document}
\songti\zihao{1}\bfseries 模板
\end{document}
  • pdflatex
    图片

  • xelatex
    图片
    并报警告

    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
    图片
  • pdflatex
    图片
    并报警告
    Unused global option(s):
        [AutoFakeBold].
    

可以发现,只跟引擎有关,请你确保你所说的『用的xelatex』是你亲眼看见、用命令行编译、能提供 log 文件的结果,否则不能作为证明。

from forum.

ytskuh avatar ytskuh commented on August 12, 2024

理解。看来应该是用pdflatex编译才产生了这种效果。为给出了错误的信息而抱歉。最后请教一下,如何用pdflatex编译?我用latexmk -pdflatexpdflatex均会报错,显示

!pdfTeX error: pdflatex (file simsun.ttc): cannot open TrueType font file for r
eading

from forum.

sikouhjw avatar sikouhjw commented on August 12, 2024

理解。看来应该是用pdflatex编译才产生了这种效果。为给出了错误的信息而抱歉。最后请教一下,如何用pdflatex编译?我用latexmk -pdflatexpdflatex均会报错,显示

!pdfTeX error: pdflatex (file simsun.ttc): cannot open TrueType font file for r
eading

你大概率是用 Linux 环境编译的,请你提供『完整』的信息,并尝试自行检索。

from forum.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.