the-ccsn / BUCTthesis

📝A LaTeX writting template for BUCT thesis.
LaTeX Project Public License v1.3c
37 stars 2 forks source link

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

Closed LaoshuBaby closed 3 years ago

LaoshuBaby commented 3 years ago

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 commented 3 years ago

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.