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源代码

|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| |
| \documentclass[a4paper,UTF8,12pt,oneside,openany]{book} \usepackage[space]{ctex} \newcommand{\myauthor }{Donald E. Knuth} \newcommand{\myfont }[1]{\heiti #1} \newcommand{\mycmdA }[2]{ #1_1,#1_2,\\dots,#1_#2 } \newcommand{\mycmdB }[2][n]{ #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},或者写作: \mycmdB[m]{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} |

相关推荐
南枝异客19 分钟前
CentOS 7 网络连接问题
linux·运维·centos
牛奶咖啡131 小时前
实现Linux的ssh免密登录实操保姆级教程
linux·ssh·生成ssh密钥对的三种方法·添加公钥到需ssh免登录服务器·测试ssh免登录的服务器·生产环境linux的优化策略
zhangrelay2 小时前
操作系统全解析:Windows、macOS与Linux的深度对比与选择指南(AI)
linux·笔记·学习
阿方索3 小时前
Linux 正则表达式
linux·运维
金色熊族4 小时前
ubuntu20.04编译qt源码5.15.3
linux·c++·qt
无敌最俊朗@4 小时前
通过Ubuntu和i.MX 6ULL开发板实现网络共享
服务器·数据库·ubuntu
zhaotiannuo_19985 小时前
【Linux CentOS 7 版本更换yum源】
linux
aitav06 小时前
⚡ WSL2 搭建 s5p6818 Linux 嵌入式开发平台(part 1):环境准备与架构设计
linux·嵌入式·wsl·wsl2
一袋米扛几楼987 小时前
【软件安全】fgets / strncpy / gets(不安全) / snprintf的对比
linux·服务器·安全
防搞活机7 小时前
ubuntu 服务器(带NVLink)更新显卡驱动 (巨坑!!)
linux·服务器·深度学习·ubuntu·gpu算力·显卡驱动