LaTeX 合集

1、TeX Live 换为清华源:

打开命令行,进入 TeX Live 安装目录,比如 C:\texlive\2020,在命令行中执行 tlmgr option repository https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnet 即可永久更改镜像源。

(本人已换用 MiKTeX,更为轻便)

2、TeXstudio 主题设置:https://tex.stackexchange.com/questions/108315/how-can-i-set-a-dark-theme-in-texstudio

3、LaTeX 入门文档:https://liam.page/2014/09/08/latex-introduction

LaTeX 模板大全:https://www.latexstudio.net

数学建模国赛模板:https://github.com/latexstudio/CUMCMThesis

数学建模美赛模板:https://github.com/qyxf/easymcm

4、部分自用模板:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
\documentclass[12pt,a4paper,UTF8]{ctexart}
\usepackage{graphicx} % 插入图片
\usepackage{subcaption} % 图片下方的描述文字
\usepackage{underscore} % 使下划线可用
\usepackage{url} % 插入网址
\usepackage{amsmath} % 数学公式
\usepackage{amssymb} % 数学符号
\setmainfont{Microsoft YaHei} % 设置英文字体为微软雅黑
\setCJKmainfont{Microsoft YaHei} % 设置中文字体为微软雅黑
\pagestyle{plain} % 设置页脚数字居中
\setlength{\parindent}{0pt} % 去掉全局的首行自动缩进
% \noindent % 去掉某段的首行自动缩进

%\usepackage{fancyhdr} % 设置页眉页脚
%\pagestyle{fancy}
%\lhead{} % 左页眉
%\rhead{} % 右页眉
%\lfoot{} % 左页脚
%\cfoot{} % 中页脚
%\rfoot{\thepage} % 右页脚
%\renewcommand{\headrulewidth}{0.4pt} % 设置页眉分割线
%\renewcommand{\headwidth}{\textwidth}
%\renewcommand{\footrulewidth}{0pt}

%\usepackage{geometry} % 设置页边距
%\geometry{papersize={21cm,29.7cm}}
%\geometry{left=3.18cm,right=3.18cm,top=2.54cm,bottom=2.54cm}

\begin{document}
\title{\textbf{2017级第一次作业}}
\author{\textbf{林瑞洲 20172131071}}
\date{\textbf{\today}} % 今日日期

\maketitle % 标题页
\tableofcontents % 目录页
\newpage % 新一页

\section{}
\subsection{}
\subsubsection{}

\begin{figure}[!h]
\centering
\includegraphics[width = \textwidth]{pictures/1.png} % 图片自行准备
\caption{123}
% \label{1} % 一般不用,用于文章中引用图片
\end{figure}

\begin{itemize}
\item a
\item b
\end{itemize}

\begin{enumerate} % 后面可以加参数
\item a
\item b
\end{enumerate}

$a=b+c$ % 行内公式
\[a=b+c\] % 行间公式(不带序号)
\begin{equation} % 行间公式(带序号)
a=b+c
\end{equation}

% 画表格
\begin{tabular}{|c|c|c|} % l:居左,c:居中,r:居右
\hline
A & B & 类标号\\
\hline
T & F & + \\
\hline
\end{tabular}

~\\ % 换行

\textbf{123} % 加粗

a\quad b % 空格

% 特殊字符如%,{}等,要在前面加上转义字符\

% 公式篇
\[\rightarrow\]
\[\sigma\]
\[\cup\]
\[\ne\]
\[\leqslant\]
\[\geqslant\]

\end{document}

效果如下:

(演示用的PDF文件已丢失)


LaTeX 合集
https://roachlin.github.io/2021-01-15-latex/
作者
RoachLin
发布于
2021年1月15日
许可协议