Ubuntu 23.10安装TeXlive并安装CTEX中文支持

连接上互联网,打开SHELL命令行界面,

  1. sudo apt install texlive texstudio texlive-lang-chinese

就可以安装好了。texlive-lang-chinese 是TEXLIVE对CTEX中文的支持。

  1. Tex源文件必须采用UTF-8编码格式,编译器采用xelatex。这样对中文的pdf文件更好。

  2. 在SHELL命令行敲击命令时,如果实在想不起命令的拼写,按下TAB键就会有可选的命令提示。即可找到所需的命令。

  3. 源代码的编辑器推荐使用 texstudio,但是也可以使用 texworks。texworks最简单,而且随便一个TeX发行版都包含texworks。但是texstudio更加专业。

  4. 第一个tex源代码

|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| |
| \documentclassa4paper,UTF8,12pt,oneside,openany{book} \usepackagespace{ctex} \newcommand{\myauthor }{Donald E. Knuth} \newcommand{\myfont }1{\heiti #1} \newcommand{\mycmdA }2{ #1_1,#1_2,\\dots,#1_#2 } \newcommand{\mycmdB }2n{ #2_1,#2_2,\\dots,#2_#1 } \newcommand{\A}1{\bfseries #1} \newcommand*{\B}1{\bfseries #1} \newcommand{\lvec }{} \newcommand{\DEFlvec }2{\renewcommand{\lvec }1#2{\ensuremath{#1_1+\cdots+#1_{##1}}}} \DEFlvec{x}{n} \newcommand{\CC }{ \\Gamma_{i} } \newcommand{\CD }{\ensuremath{\Gamma_{i}}} \begin{document} 你好,\LaTeX{} ! \par \LaTeX3{} 是一个长远而艰巨的奋斗目标,在它最终完成之前,\LaTeXe{} 将是标准的\LaTeX\ 版本。 \par In 1971, \myauthor was the recipient of the first ACM Grace Murray Hopper Award. \par 方程有两种:\myfont{恒等式} 和 \myfont{条件等式} 。 \par 我们经常把数列写作: \mycmdA{x}{n},或者写作: \mycmdA{a}{m}。 \par 我把数列写作: \mycmdB{x},或者写作: \mycmdBm{a}。 \par \A{Cosmic Mystery \par Harmony of the World} \par \B{Cosmic Mystery Harmony of the World} \par Default, \\lvec \\neq \\lvec\[k\] \par \DEFlvec{y}{i} Now, \\lvec \\neq \\lvec\[k\] \par Let \CC{} be the number of gnats per cubic meter, where \CC\ is normalized with respect to \\nu(s) 。 \par Let \CD be the number of gnats per cubic meter, where e\^{\\CD }=\\nu(s) . \end{document} |

相关推荐
水饺编程2 分钟前
第1章:开发环境搭建,在 Windows 中安装 Git
linux·c语言·汇编·git·ubuntu
0+1117 分钟前
Linux --进程间关系和守护进程
linux·运维·服务器
AIgorithmGEEK8 分钟前
[Linux]HTTP 应用层协议全解(下篇)
linux·网络·网络协议·http·cookie·无连接·无状态
名誉寒冰14 分钟前
我是怎么理解 eBPF、AppArmor 和 Seccomp 的?
linux·网络·内核
H.莓飛20 分钟前
【Linux】命令行参数、环境变量与程序地址空间
linux·c语言·chrome·后端·centos
‎ദ്ദിᵔ.˛.ᵔ₎1 小时前
linux 进程间通信
linux·网络
Ruiery1 小时前
Linux 6.6内核 CPU 深度解析(八):percpu 变量 — 每个 CPU 一份数据,无锁访问
linux·运维·服务器
91刘仁德1 小时前
传输层协议深度拆解:端口寻址、UDP 报文与 TCP 可靠性机制全解析
linux·网络·c++·网络协议·tcp/ip·udp·c
AIgorithmGEEK1 小时前
[Linux]HTTP 应用层协议全解(中篇)
linux·网络·网络协议·http
玖石书1 小时前
linux 安装uv(python虚拟环境管理)
linux·python·uv