参考:https://blog.csdn.net/qq_41814939/article/details/82288145

sudo apt-get install texlive-full
sudo apt-get install texlive-xetex
sudo apt-get install texlive-lang-chinese
sudo apt-get install texstudio

这里要注意,编译时需要设置编译器为XeLaTeX,TeXstudio中在Options->Configure TeXstudio->Build->Default Compiler中更改默认编译器为XeLaTeX即可。在配置中可以更改软件界面语言,将Options->Configure TeXstudio->General->Language更改为zh-CN即可将界面设置为中文。
新建文件,在文本编辑框输入

\documentclass{article}

\usepackage{xeCJK}

\begin{document}

hello,你好

\end{document}

按F5进行编译预览。
Ubuntu上使用Latex

相关文章:

  • 2022-12-23
  • 2022-01-24
  • 2021-04-19
  • 2021-10-05
  • 2021-12-22
  • 2021-11-28
  • 2021-11-27
  • 2021-07-03
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-13
  • 2021-06-18
  • 2022-12-23
  • 2022-01-08
相关资源
相似解决方案