\documentclass{article} % \documentclass{} is the first command in any LaTeX code. It is used to define what kind of document you are creating such as an article or a book, and begins the document preamble \usepackage{amsmath} % \usepackage is a command that allows you to add functiona...
definecolor{orangeshade}{rgb}{1.00,0.88,0.82} % 橙色,竖线颜色设为 DarkOrange \definecolor{lightblueshade}{rgb}{0.8,0.92,1} % 淡蓝色,竖线颜色设为 LightSkyBlue \theoremstyle{definition} \newtheorem{defn}{\indent 定义}[section] \newtheorem{lemma}{\indent 引理}[section] \newtheorem{thm}[...
\definecolor{色彩名}{色彩模式}{数据} \providecolor{色彩名}{色彩模式}{数据} 色彩模式:rgb,cmyk,gray等 逗号分隔的十进制小数,表示每个分量的力度 如:\definecolor{red}{rgb}{1,0,0} \definecolor{yellow}{cmyk}{0,0,1,0} 如色彩名已有定义,\providecolor不起作用,\definecolor覆盖原来的定义 ...
\section{More user-defined numbered environments} Note how the example numbering has restarted at 1: \begin{example} First user-defined numbered environment (number \theexample). \end{example} \begin{SampleEnv} User-defined environment created with the \verb|\newtheorem| command. \end{SampleEnv}...
As you probably have guessed, the parameters inside the brackets[width=3cm, height=4cm]define the width and the height of the picture. You can usedifferent unitsfor these parameters. If only thewidthparameter is passed, the height will be scaled to keep the aspect ratio. ...
Background colour of a column. This one is a bit tricky, but the easiest way is to define a new column type. The command \newcolumntype{s}{>{\columncolor[HTML]{AAACED}} p{3cm}} define a column type called s whose alignment is p, the column width is 3cm and the colour is ...
This is a first example of a simple inputfile. \end{document} 如果是中文,将\documentstyle{article}改为\documentstyle{carticle} 简单的规则 (1)空格:Latex中空格不起作用。 (2)换行:用控制命令“\\”,或“ \newline”. (3)分段:用控制命令“\par” 或空出一行。
颜色 小型数学公式 强制使用PNG 函数、符号及特殊字符 声调 函数 同余 微分 集合 逻辑 根号 关系符号 几何符号 箭头符号 特殊符号 上标、下标及 积分 等 分数 、 矩阵 和多行列式 字体 希腊字母 斜体小写希腊字母一般用于在方程中显示变量。 正体希腊字母
{XeLaTeX}compiler. If you have to write some code you can use the\texttt{verbatim}environment:\begin{verbatim}Usually this environment is used to display code, so here's a simple C program. #include <stdio.h> #define NUMYAYS 10 int main(){int i; for (i = 0; i <= NUMYAYS; i+...
proper settings for 'include', 'includeexpr', 'suffixesadd' and 'define', which among other things allow :h include-search and :h definition-search give enhanced gf command Easy access to (online) documentation of packages Word count (through texcount) Motions (link to GIF demonstrations) ...