:Introduction to the use of LaTeX Chinese fonts-Font Tutorial免费ppt模版下载-道格办公

Introduction to the use of LaTeX Chinese fonts

Hello! I understand that you need a brief introduction to the use of Chinese fonts in LaTeX, especially when it comes to the use of the four free fonts, Fangzheng Shusong, Fangzheng Heiti, Fangzheng Kaiti and Fangzheng Fangsong. Here are some simple instr

The four fonts of Founder Book Song, Founder HeiTi, Founder KaiTi, and Founder Fangsong are already free fonts for "commercial release" usage. Taking them as examples here also hopes that users can understand this fact.


Buy Fonts

Visit Founder's official website[1], and after registering an account, you can search and purchase the four fonts of Founder. They are [Fangzheng Shu Song], [Fangzheng Black Body], [Fangzheng Kaiti] and [Fangzheng Imitation of Song Dynasty]. I personally recommend choosing Simplified and Traditional Extension (GBK) when purchasing.

Install fonts

At present, the Windows 10 system requires the user to right-click the font file and select Install for all in the shortcut menu that opens.

For Mac system users, click on the menu bar >>Go to>>Applications>>Font Book, and copy the font file to the font book (this part comes from the Founder Font website).

Ubuntu users can refer to the last part of Install-LaTeX[2] to install fonts.

View font

Use the command line (for users who do not know the command line, please refer to this article (click the blue word to read it)), execute

fc-list :lang=zh > font-chinese.txt

Output the Chinese fonts currently in the system. If installed correctly, you should find the following entry

C:/Windows/fonts/FZSSK.TTF:>C:/Windows/fonts/FZHTK.TTF: FZHei\-B01, Founder Heibody _GBK:style=RegularC:/Windows/fonts/FZKTK.TTF: FZKai\-Z03, Fang Zhengkai _GBK:style=RegularC:/Windows/fonts/FZFSK .TTF: FZFangSong\-Z02, Fangzheng imitates Song_GBK:style=Regular

The output results here take the windows system as an example.

Call font

A MWE is given here to show how to invoke fonts.

\documentclass{ctexart}\usepackage{zhlipsum}\setCJKmainfont{FZShuSong-Z01}\setCJKsansfont{FZHei-B01}\setCJKmonofont{FZFangSong-Z02}\begin{document}\rmfamily\zhlipsum[ 1][name=zhufu]\sffamily\zhlipsum[2][name=zhufu]\ttfamily\zhlipsum[< span>3][name=zhufu]\end{document}

used on Overleaf

Users need to upload four font files to Overleaf's project, and then call them by file name, giving MWE:

\documentclass{ctexart}\setCJKmainfont{FZSSK.TTF}\setCJKsansfont{FZHTK.TTF}\setCJKmonofont{FZFSK.TTF}\begin{document}\rmfamilyThe end of the old calendar after all It is most like the end of the year, needless to say in the villages and towns, even in the sky, it shows that the new year is coming. From time to time there was a flash of light among the gray and white heavy evening clouds, followed by a blunt sound, which was the firecrackers sending off the stove; the explosions nearby were even more intense, the deafening sound had not ceased, and the air was already filled with faint gunpowder fragrant. I am returning to my hometown Luzhen on this night. Although it is my hometown, I don't have a home anymore, so I have to temporarily live in Master Lu Si's house. He is my family, a generation older than me, should be called "Fourth Uncle", and he is an old supervising student who lectures on Confucianism. He hasn't changed much from before, just a little older, but he still doesn't have a beard. When we meet, we greet each other. But I know that this is not an excuse to scold me: because he is still scolding Kang Youwei. However, the conversation was never speculative, so I was left alone in the study before long. \sffamily I got up very late on the second day. After lunch, I went out to see some family members and friends; the same on the third day. They haven't changed much, they're just getting older, but they're all busy at home, preparing for "blessings". This is the year-end ceremony in Lu Town, where we pay our respects, welcome the God of Fortune, and pray for good luck in the coming year. Killing chickens, slaughtering geese, buying pork, and washing them carefully, the women's arms were soaked red in the water, and some even wore twisted silk silver bracelets. After cooking, put some chopsticks in all directions on this kind of thing, which is called "blessing ceremony". It is displayed on the fifth watch, and incense candles are lit, and the gods of good fortune are respectfully invited to enjoy it, but only men are worshiped. The end is naturally still setting off firecrackers. It’s like this every year, every family—as long as you can afford blessings and firecrackers—it’s the same this year. The sky was getting darker, and it started snowing in the afternoon, the snowflakes were as big as plum blossoms, flying all over the sky, mixed with smoke and busy look, making Luzhen a mess. When I returned to my fourth uncle's study room, the corrugated boards were already white, and the room was brightly reflected. The large character "Shou" written by Zhu Tuo on the wall, written by the ancestor Chen Tuan, was very clearly visible. The old couplets have fallen off, loosely rolled up and placed on the long table, and the one on the other side is still there. The saying is "reasonable and peaceful". Bored, I went to the desk under the window to look, only to see a pile of "Kangxi Dictionary", a "Jin Si Lu Ji Zhu" and a "Si Shu Lin". In any case, I am determined to leave tomorrow. \ttfamily Besides, until yesterday when I met Mrs. Xianglin, I couldn't live comfortably. It was afternoon, I went to the east end of the town to visit a friend, and when I came out, I met her by the river; and seeing her staring eyes, I knew that she was coming towards me. Among the people I saw in Lu Town this time, no one has changed as much as hers: the gray hair five years ago is now completely white, not like someone in their forties; their face is emaciated. The color is yellow and black, and the previous sad expression has disappeared, as if it were carved in wood; only the eyeballs are occasionally rounded, which can still indicate that she is a living thing. She held a bamboo basket in one hand. There was a broken bowl inside, which was empty; in one hand, she was leaning on a bamboo pole that was longer than her, and the lower end was cracked: she was clearly a beggar. \end{document}

Considering that Overleaf is still using tl2017, zhlipsum is not used in MWE. In the near future, tl2018>

Final renderings

References

[1][Founder's official website]https://wenda.latexstudio.net/www.foundertype.com[2]>https://github.com/OsbertWang/install-latex/releases


ClickRead the original text, learn more LaTeXskills

Articles are uploaded by users and are for non-commercial browsing only. Posted by: Lomu, please indicate the source: https://www.daogebangong.com/en/articles/detail/Introduction%20to%20the%20use%20of%20LaTeX%20Chinese%20fonts.html

Like (810)
Reward 支付宝扫一扫 支付宝扫一扫
single-end

Related Suggestion