Giter Site home page Giter Site logo

mac 提示字体缺失 about whu-thesis HOT 20 CLOSED

WHUxzf avatar WHUxzf commented on June 17, 2024
mac 提示字体缺失

from whu-thesis.

Comments (20)

SwitWu avatar SwitWu commented on June 17, 2024

去字体册看看有没有

  • 宋体-简
  • 楷体-简

from whu-thesis.

WHUxzf avatar WHUxzf commented on June 17, 2024

去字体册看看有没有

  • 宋体-简
  • 楷体-简

宋体-简的文件路径为:/System/Library/Fonts/Supplemental/Songti.ttc

iShot_2024-05-21_20 10 38

并没有看到Songti SC Light 可能应该使用 STKSongti-xxxx?

iShot_2024-05-21_20 16 13

from whu-thesis.

SwitWu avatar SwitWu commented on June 17, 2024

宋体-简里面的细体就是 Songti SC Light

from whu-thesis.

WHUxzf avatar WHUxzf commented on June 17, 2024

另外,将style中的 cjk-font = windows,下载安装simsun.ttc、simheittf 并将这俩文件放在overleaf根目录也会报错缺少这两个字体。人麻了
设置 cjk-font =fandol 在两个系统上都能通过编译。

from whu-thesis.

zhengxiongli08 avatar zhengxiongli08 commented on June 17, 2024

另外,将style中的 cjk-font = windows,下载安装simsun.ttc、simheittf 并将这俩文件放在overleaf根目录也会报错缺少这两个字体。人麻了 设置 cjk-font =fandol 在两个系统上都能通过编译。

Fandol是Texlive自带的吧,所以跨系统没问题

from whu-thesis.

SwitWu avatar SwitWu commented on June 17, 2024

@WHUxzf 你写一个最小测试代码试一下

from whu-thesis.

WHUxzf avatar WHUxzf commented on June 17, 2024

@WHUxzf 你写一个最小测试代码试一下

例如?
我按照手册2.1写了一个实例可以编译,但字体似乎是fandol ?
又试了如下代码

\documentclass[type = master,class = professional]{whu-thesis}
\whusetup{
  style = {
    cjk-font = windows,
  }
}
\begin{document}
\mainmatter
\section{字体测试}
字体测试:\\
{宋体} {\heiti 黑体} {\kaishu 楷书} {\fangsong 仿宋}\\
\end{document}

结果同样报错缺少 simsun 了

from whu-thesis.

SwitWu avatar SwitWu commented on June 17, 2024

@WHUxzf 在你的 mac 上用 xelatex 编译:

\documentclass{ctexart}
\setCJKmainfont{Songti SC Light}
\begin{document}
你好
\end{document}

from whu-thesis.

WHUxzf avatar WHUxzf commented on June 17, 2024

@WHUxzf 在你的 mac 上用 xelatex 编译:

\documentclass{ctexart}
\setCJKmainfont{Songti SC Light}
\begin{document}
你好
\end{document}
iShot_2024-05-21_23 57 40

from whu-thesis.

zhengxiongli08 avatar zhengxiongli08 commented on June 17, 2024

@WHUxzf 在你的 mac 上用 xelatex 编译:

\documentclass{ctexart}
\setCJKmainfont{Songti SC Light}
\begin{document}
你好
\end{document}
iShot_2024-05-21_23 57 40

这怎么看着像Overleaf啊?不是mac吗?

from whu-thesis.

SwitWu avatar SwitWu commented on June 17, 2024

@WHUxzf 在提问前,请你先仔细看看提问模版,操作系统那一项你应该写 Overleaf 啊,你写的是 macOS,我还以为你在本地编译。

IMG_0086

Overleaf 的服务器用的是 ubuntu,所以设置 cjk-font=mac 或者 cjk-font=windows 都不行,cjk-font=fandol 可以。

from whu-thesis.

SwitWu avatar SwitWu commented on June 17, 2024

如果你非要用 cjk-font=mac 的话,需要把

  • 宋体-简
  • 楷体-简
  • 黑体-简
  • STFangsong

上传到 Overleaf 的项目文件夹里面去。

from whu-thesis.

WHUxzf avatar WHUxzf commented on June 17, 2024

啊这样吗,抱歉抱歉,背大锅

另外,将style中的 cjk-font = windows,下载安装simsun.ttc、simheittf 并将这俩文件放在overleaf根目录也会报错缺少这两个字体。人麻了 设置 cjk-font =fandol 在两个系统上都能通过编译。

我在overleaf上传字体的方法似乎也行不通

from whu-thesis.

SwitWu avatar SwitWu commented on June 17, 2024

我明天测试一下,电脑不在身旁

from whu-thesis.

SwitWu avatar SwitWu commented on June 17, 2024

PS: 代码块请用反引号包裹,见 https://docs.github.com/zh/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#quoting-code

from whu-thesis.

SwitWu avatar SwitWu commented on June 17, 2024

whuthesis.pdf

@WHUxzf 按第八页的说明进行操作。

from whu-thesis.

SwitWu avatar SwitWu commented on June 17, 2024

@WHUxzf 按照手册里的步骤操作还有没有问题,反馈一下。

from whu-thesis.

WHUxzf avatar WHUxzf commented on June 17, 2024

可以通过编译,之前的手册好像缺少你发的这个自定义字体的说明部分。

from whu-thesis.

SwitWu avatar SwitWu commented on June 17, 2024

这部分是我补充的

from whu-thesis.

WHUxzf avatar WHUxzf commented on June 17, 2024

根据这部分在overleaf上使用自定义字体没啥问题。之前字体编译问题困扰几天了/(ㄒoㄒ)/~~非常感谢解答。

from whu-thesis.

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.