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} |

相关推荐
一技安身4 小时前
【信创】银河麒麟V10、统信UOS解压7Z文件
linux·运维·服务器
奔跑的架构师5 小时前
[A-50]ARMv9/v8-DVFS系统架构
linux·arm开发·架构·系统架构·arm
迷途呀5 小时前
CI/CD 自动化部署实践:让代码提交后自动上线
linux·运维·nginx·ci/cd·自动化
赴生-6 小时前
Liunx 操作系统 进程概念(上)
linux
binqian6 小时前
【linux】OpenSSH升级文档
linux·运维·网络
吴声子夜歌6 小时前
Shell编程——if条件语句
linux·运维·shell
Dawn-bit6 小时前
Linux 运维基础扩展:跳板机、堡垒机与物理服务器全流程
linux·运维·服务器·云计算·运维开发
新时代牛马7 小时前
Linux 定时任务:crontab、anacron 与systemd timer
linux·运维·服务器
mounter6257 小时前
Linux 7.2 引入更灵活的块设备错误注入机制
linux·linux kernel·kernel·disk·error injection
cpolar技术支持7 小时前
Docker 容器启动失败怎么查?端口、日志、权限与网络排障完整教程
linux·docker·容器·cpolar·网络排障