Closed chenyi852 closed 5 years ago
sudo apt-get install texlive-full
sudo apt-get install texmaker
texmaker
\documentclass{article}
\begin{document}
Hello oschina!
\end{document}
\documentclass{article}
\usepackage{CJKutf8}
\begin{document}
\begin{CJK}{UTF8}{gkai}
这是一个楷体中文测试,处理简体字。
\end{CJK}
\begin{CJK}{UTF8}{gbsn}
这是一个宋体中文测试,处理简体字。
\end{CJK}
\begin{CJK}{UTF8}{bkai}
這是一個big5編碼的楷體中文測試,處理繁體文字。
\end{CJK}
\begin{CJK}{UTF8}{bsmi}
這是一個个big5編碼的明體中文測試,處理繁體文字。
\end{CJK}
\end{document}
sudo apt-get install texlive-xetex
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! fontspec error: "font-not-found"
!
! The font "Noto Sans CJK" cannot be found.
!
! See the fontspec documentation for further information.
!
! For immediate help type H <return>.
!...............................................
l.16 \setmainfont[]{Noto Sans CJK}
1 Download the fonts to use (I used Noto Sans CJK) 2 Put the font files (.otf) in /usr/local/share/fonts 3 After rebooting, use this line to tell XeLaTeX to get those fonts: \setCJKmainfont{Noto Sans CJK SC}
pandoc -f markdown_github chenyi-cv.md -o chenyi-cv.pdf --latex-engine=xelatex -V mainfont="NotoSansSC-Regular"
md 转 pdf的效果不太好, 主要是不支持自动换行,字体要自己安装下载指定,不能自动识别系统自动。 如果实在不行用word,可以是考虑使用latex