安装Latex
sudo apt install texlive texlive-lang-chinese
写一个测试文档
\documentclass[fontset=ubuntu,UTF8,a4paper, 11pt]{ctexart}
\begin{document}
你好 \LaTeX!
\end{document}
这里[fontset=ubuntu,UTF8,a4paper, 11pt]
是必须的,否则会出一下错误:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! Critical ctex error: "fontset-unavailable"
!
! CTeX fontset `fandol' is unavailable in current mode.
!
! See the ctex documentation for further information.
!
! For immediate help type H <return>.
!...............................................
编译
pdflatex test.tex
之前买了一台Xperia X dual版,就是F5122。之前为了Xposed弄了个棉花糖来爽,不过越用约发现不稳定——指纹硬件时不时坏、相机时不时被占用、发热也很严重(理论上不应该这么严重的)、运行起来也很慢。
翻译作业答案