LaTex----Ubuntu上的配置 + overleafB站视频

Latex常用代码块:

#在编辑框输入某个内容
\documentclass{article}
% 这里是导言区
\begin{document}
Hello, world!
\end{document}
#使用特定编码
\usepackage[UTF8]{ctex}

#使用中文     方法一
\usepackage[fontset=ubuntu]{ctex}

\begin{document}
你好,world!
\end{document}


#使用中文    方法二:  好像还可以设置字体
\documentclass{article}
\usepackage{xeCJK} %调用 xeCJK 宏包
\setCJKmainfont{SimSun} %设置 CJK 主字体为 SimSun (宋体)
\begin{document}
你好,world!
\end{document}
#作者,标题,日期
\documentclass[UTF8]{ctexart}
\title{你好,world!}
\author{Liam}
\date{\today}
\begin{document}
\maketitle
你好,world!
\end{document}
#章节和段落
\documentclass[UTF8]{ctexart}
\title{你好,world!}
\author{Liam}
\date{\today}
\begin{document}
\maketitle
\section{你好中国}
中国在East Asia.
\subsection{Hello Beijing}
北京是capital of China.
\subsubsection{Hello Dongcheng District}
\paragraph{Tian'anmen Square}
is in the center of Beijing
\subparagraph{Chairman Mao}
is in the center of 天安门广场。
\subsection{Hello 山东}
\paragraph{山东大学} is one of the best university in 山东。
\end{document}
\documentclass[UTF8]{ctexart}
\title{你好,world!}
\author{Liam}
\date{\today}
\begin{document}
\maketitle
\tableofcontents
\section{你好中国}
中国在East Asia.
\subsection{Hello Beijing}
北京是capital of China.
\subsubsection{Hello Dongcheng District}
\paragraph{Tian'anmen Square}
is in the center of Beijing
\subparagraph{Chairman Mao}
is in the center of 天安门广场。
\subsection{Hello 山东}
\paragraph{山东大学} is one of the best university in 山东。
\end{document}

 

 

  • 选择安装LaTeX发行版

sudo apt-get install texlive-full
  • 安装XeLaTeX编译引擎

sudo apt-get install texlive-xetex
  • 安装中文支持包,使用的是xeCjK,中文处理技术也有很多,xeCJK是成熟且稳定的一种

sudo apt-get install texlive-lang-chinese
  • 安装图形化界面

sudo apt-get install texstudio
  • 命令行启动图形界面

texstudio

 

B站视频:

  • 第一期:  overleaf的菜单, 版面使用  + 加粗 + 斜杠 + 公式  + 模板 + 上传/下载 + 中文:

https://www.bilibili.com/video/BV1fA411W7kZ?from=search&seid=17673879311427582534

  • 第二期:  文章架构 + 交叉引用 + 插图 + trans两栏

https://www.bilibili.com/video/BV1Ma4y1p7Q6

  • 第三期:  表格 + 数学公式 + 引用文献 + 邀请协作

https://www.bilibili.com/video/BV1aK411u7us

 

 

 

おすすめ

転載: blog.csdn.net/weiwei935707936/article/details/112801454