posquit0 / Awesome-CV

:page_facing_up: Awesome CV is LaTeX template for your outstanding job application
LaTeX Project Public License v1.3c
23.17k stars 4.8k forks source link

Chinese language font support #109

Closed vectorliu closed 7 years ago

vectorliu commented 7 years ago

What is the fastest way to configure the template to support Chinese language? I figured I might have to modify the awesome-cv.cls file. So can it be:

  1. Add required fonts to the fonts/ directory;

  2. Change the font configuration in the cls file.

However, it is not that elegant since in this way I have to change the cls file again if I want to use the original English language font. So is there a more elegant way? Sorry if the question is naive. I am just new to Latex.

johannesbottcher commented 7 years ago

Change the font setting in your main file. Reading an introduction seems to be a good idea as well.

Am 24.02.2017 06:18 schrieb "vectorliu" notifications@github.com:

What is the fastest way to configure the template to support Chinese language? I figured I might have to modify the awesome-cv.cls file. So can it be:

1.

Add required fonts to the fonts/ directory; 2.

Change the font configuration in the cls file.

However, it is not that elegant since in this way I have to change the cls file again if I want to use the original English language font. So is there a more elegant way? Sorry if the question is naive. I am just new to Latex.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/posquit0/Awesome-CV/issues/109, or mute the thread https://github.com/notifications/unsubscribe-auth/AH4EjlRVRc51UoEjCgIOv0qjfW_NUC0Pks5rfmgJgaJpZM4MK1kf .

vectorliu commented 7 years ago

@johannesbottcher ,did you mean the following changes made to the main file:

\renewcommand{\footerfont}{\Kaiti} \renewcommand{\bodyfont}{\Kaiti} \renewcommand*{\bodyfontlight}{\STFangsong}

Just tried and it induced a lot more font-related errors.

brianhu-tw commented 7 years ago

I use xeCJK package to build my Chinese cv:

\usepackage{xeCJK}

add this line into the fontawsome.sty file

vectorliu commented 7 years ago

Thanks@BrianHuGit. Problem solved.

johannesbottcher commented 7 years ago

Guys, you can't just change a file that you don't own. There is a license that needs to be respected. Add the package to your main file.

vectorliu commented 7 years ago

Sorry if it breaks some license. We will add this package in the main file, which solves the problem anyway. Thanks for your kindly remind.

77QingLiu commented 6 years ago

@BrianHuGit , where can I find fontawsome.sty?

SiqingYu commented 6 years ago

@BrianHuGit , where can I find fontawsome.sty?

I added the line just after the \documentclass preamble line. But it doesn't apply the font to the whole page. I don't know how.

Littlesqx commented 5 years ago

@BrianHuGit , where can I find fontawsome.sty?

add into awesome-cv.cls can also work @77QingLiu

linjh1118 commented 6 months ago

@BrianHuGit , where can I find fontawsome.sty?

I find fontawsome.sty in https://github.com/plorcupine/latex-fontawesome. Thanks latex-fontawesome