标签:
最近打算详细的学习一下latex,所以在学习的过程中遇到了一些问题。随时出问题,随时记录更新。
我是萌萌的Latex, x_0.
再写具体的技巧之前,先说一个关于打公式的小技巧。有时候你不知道怎么设置具体的格式了,那直接打开Mathtype打个公式,然后以Latex形式复制出来,认真学习一下就好了。O(∩_∩)O
各种间距设置x_x
参考网址:http://blog.sina.com.cn/s/blog_5e16f1770100ns4r.html
字间距
只适用于CJK和xeCJK
\renewcommand{\CJKglue}{\hskip 宽度}
最好设置为弹性长度比如
\renewcommand{\CJKglue}{\hskip 1pt plus 0.08\baselineskip}
行间距
\linespread{因子}
或者
\renewcommand{\baselinestretch}{因子}
比如
\linespread{1.5}
或者
\renewcommand{\baselinestretch}{1.5}
段间距
设置\parskip的值,比如
\setlength{\parskip}{0.5\baselineskip}
首行缩进
如果默认首行不缩进,则使用indentfirst宏包
\usepackage{indentfirst}
指定某段首行缩进,在段首加
\indent
指定某段首行不缩进,在段首加
\noindent
设置缩进量
\setlength\parindent{2em}
悬挂缩进
在要悬挂缩进的段落前加上
\noindent
\hangafter=1
\setlength{\hangindent}{2em}
分别是: 1. 取消首行缩进;2. 设置从第1行之后开始悬挂缩进;3. 设置悬挂缩进量
居中、左对齐、右对齐
定理、引理、定义编号公用 0_0
\newtheorem{definition}{定义}[section]%[section]是在里面写昵称的。 \newtheorem{theorem}[definition]{定理} \begin{definition}[线性泛函] * \end{definition} \begin{theorem} * \end{theorem}
设置特定起始章节 x_n
\renewcommand\thesection{5}%定义章节为第五章
添加宏包
在winedt中tex--miktex--miktex package manager,右键你要下载的宏包install就好了
标签:
原文地址:http://www.cnblogs.com/connorzx/p/4547557.html