当前位置: 首页 > news >正文

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

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

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

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

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

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

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

5. 第一个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}

http://www.lryc.cn/news/211513.html

相关文章:

  • SpringBoot中CommandLineRunner详解(含源码)
  • 通信基础(一):数据传输基础
  • 故障诊断模型 | Maltab实现BiLSTM双向长短期记忆神经网络故障诊断
  • 物联网和互联网医院小程序:如何实现医疗设备的远程监测和管理?
  • sharepoint2016-2019升级到sharepoint订阅版
  • CTFHub | MySQL流量、Redis流量、MongoDB流量的WriteUp
  • NSS刷题 js前端修改 os.path.join漏洞
  • ArcGIS Maps SDK for JS:隐藏地图边框
  • 带你秒懂MySQL!! 一万字详细知识点和基础操作 欢迎评论区怼我 (三)
  • kubeadmin部署k8s1.27.4
  • 【Aurix Tricore】HighTec启动代码crt0-tc37x.c分析笔记
  • Linux高级命令(扩展)
  • LLM在text2sql上的应用 | 京东云技术团队
  • 【MySQL】 复合查询 | 内外连接
  • 【linux】麒麟v10安装openjdk8
  • 项目部署与上线
  • 系统架构主题之八:非功能性需求对系统架构及设计的影响
  • 盛元广通化工实验室管理系统
  • 代码没注释?一个方法几百行?
  • Angular-04:指令
  • [SpringCloud] Eureka 与 Ribbon 简介
  • 【Python 零基础入门】常用内置函数 再探
  • 10.30二叉树一些性质,找公共祖先(一般与搜索树),操作的复杂度,选择题细节
  • 亮氨酸脯氨酸肽——一种新型的医药中间体研究肽
  • Ubuntu 22.04 开机闪logo后卡在/dev/sda3: clean
  • avue-crud 自定义列
  • 达索系统SOLIDWORKS 2024 装配体新增功能
  • 电脑入门:电脑专业英语500词,供新手参考
  • 采购管理工具-采购软件-Leangoo免费看板工具
  • 【23真题】大神凭这套拿452分!看看你能拿多少?