Fduthesis usage problem: Overleaf uncommon word processing - overall and partial font modification (individual Chinese character display problems)
problem statement
I was about to start writing my graduation thesis. I found the Fudan University thesis template summarized by my predecessors on the Internet and fduthesis
used it. As a result, the rare words in my supervisor’s name did not appear after compiling, so I started looking for a solution.
problem discovery
First found in the error message:
Package fontspec Warning: Font “FandolSong-Regular” does not contain requested (fontspec) Script “CJK”.
Explore and solve
Search to find the big guy's solution: [LaTeX Chinese use] suppress xeCJK/fontspec warning no-script "CJK"
no-script is an insignificant warning
The boss's conclusion is to ignore it, but the only error message made me realize that it might be a font problem and realize that the font is xeCJK
.
I found an article: CJK font settings in Overleaf
What is more important to me is:
The Fandol font library is seriously missing words;
Therefore, I suspected that the lack of characters in the font library caused my tutor's name to not be displayed.
take a detour
I saw the instructions for modifying the font of the National University of Science and Technology thesis LaTeX template: National University of Science and Technology Thesis LaTeX Template
At the same time, I studied fduthesis
the instructions:
So, I modified it directly cjk-font = windows
.
As a result, an error is reported.
Back to the right path - modify the font as a whole
Continue to search, and I am very lucky to find the previous documents .
The key points of using CTEX on the Overleaf platform are:
Don't use fontset=windows! There is no Windows font on the server, if you really need it, please upload the .ttf file yourself.
.ttf
is a font file, I need to download the font file and upload it overleaf
to and modify the font.
The next job is:
- Download fonts.
Open it in Windows andC:\Windows\Fonts
you can see the fonts on the computer. I chose Kai (simkai.ttf) and Song (simsun.ttc)- Upload to the same
overleaf
directory as ..tex
overleaf
Modify the font. Link: Overleaf version LaTeX primary (change the font to Arial)
\setCJKmainfont{simsun.ttc}
I put the command in the custom command.
success!
Continue to do experiments and liver papers.
Partially modify the font
Unfortunately, in the subsequent writing, I found that the modification of the full-text font had an impact on the font format of other parts of the paper, so I looked for a new solution, and finally found a partial modification of the font.
Here simsun.ttc is the italic font I imported before. If you want to use other fonts, you need to make sure you can find this font.
{\CJKfontspec{simsun.ttc}oxo}
Use {} to enclose the part that needs to modify the font.
Use of Overleaf with fduthesis
Link: After clicking on it, click on it : Jump: Click , and then you can directly modify and start writing a thesis in .fduthesis
overleaf
Open ad Template
.tex