Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

\LaTeX{} was shown different way in Chinese and English version's keyword #4

Closed
LaoshuBaby opened this issue Jan 5, 2021 · 1 comment

Comments

@LaoshuBaby
Copy link
Member

Complier Environment

OS: Windows 10

TeX redistribution: TeX Live 2020

version: v0.9.6

Description

The code is the ORIGINAL code in repo at fe0df05

The keyword should use 黑体

but in Chinese version it is shown like \LaTeX{}

图片

图片

should we use universal Linear word "LaTeX" without higher and lower line position, or use \LaTeX{} in both Chinese version and English version?

@Miracle0565
Copy link
Collaborator

The command \LaTeX will generate uneven characters with the font related to the environment nearby. Actually the font of Chinese Keywords is wrong.

To fix:

in buctthesis.dtx, line 708:

\newcommand{\buct@keywordsfont}{\zihao{4}\heiti}

adding the command \CJKfamily+{} like:

\newcommand{\buct@keywordsfont}{\zihao{4}\heiti\CJKfamily+{}}

Then update the .cls file and compile:

xelatex buctthesis.ins
latexmk

Then the font of all characters in both Chinese and English will be set to SimHei.

图片

图片

(Really terrible font, personally)

I will update in next version after my exams, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants