LaTeX-TexmakerX 简易入门指南
2017-05-27 00:40
190 查看
1、文本开始
\documentclass{article}
\begin{document}
\end{document}
2、基本操作
\title{文章标题}
\author{作者名称}
\date{日期}
\maketitle
不加的话无法显示标题,作者名称,日期
\tableofcontents
显示目录
\section{段落1标题}
\subsection{分段落小标题}
\titlepage
标题页,用于分页
3、小标题1
\begin{itemize}
多层小标题叠加
\item 语句
\item
形成多层标题
\begin{itemize}
\item 语句
\end{itemize}
\item
退出时没有\item的话句子前面没有标志
\end{itemize}
4、小标题2
\begin{description}
\item[小标题,加粗]
语句
如果不加[]
依然语句成立但没有被加粗的小标题
\item[小标题,加粗]
语句
如果不加\item则语句显示不会换行
\end{description}
5、小标题3
\begin{quote}
语句
语句开头会有一段空格,可以多层叠加
\end{quote}
6、引用
\ref{References}
引用
\pageref{References}
引用的页数
\label{References}
被引用的标题
EX: The first subsection is section \ref{References} on page\pageref{References} in this
document.
在被引用的段落后添加\label{References},如果需要多次引用,可修改为\label{References1}、
\label{References2} 等,如果把\label{References}放在段落中间,则视为引用这个段落,直接显示段落的标题
7、对齐
\begin{flushright}
语句 语句向右对齐
\end{flushrigh}
\begin{flushleft}
语句
语句向左对齐
\end{flushleft}
8、断句
\\ 无论在标题还是在语句中插入均可断句
9、表格
\begin{table}[h]
h-here t-top b-bottom p-page-of-its-own
\begin{center}
表格居中
\begin{tabular}{|| l |c | r | p{7em}|p{5em}||}
p{7em}指单元格长度
\hline 横线
1 & 2 & 3 & this is a columnfor long texts &hi\\
&区分不同格子之间的内容
\cline{1-4} 横线,可控制长度
4 & 5 & 6 & this is a separateline of text&hi\\
\cline{1-3}
7 & 8 & 9 & & \\
\hline
\end{tabular}
\end{center}
\caption{My firsttable\label{tableExample}}
表格标题
\end{table}
10、插入图片
\usepackage{graphicx}
调用宏包,搁在\documentclass{article}下一行
\begin{figure}[h]
用PDFLaTeX
\centering
\includegraphics[width=1in,height=1in,angle=-20]{0001.jpg}
\caption{My first pictures!}(\copyrightElissa)
\copyright申明版权
\end{figure}
11、参考文献
\begin{thebibliography}{}
自动出现标题references
\bibitem{BH1991}
引用文献
Franz Baader and Bernhard Hollunder.
\newblock $\mathcal{KRIS}$: Knowledgerepresentation and inference system.
\newblock {\em SIGART Bulletin},
\newblock
用于分段编辑,会自动何在一起
\newblock 2(3):8--14, 1991.
\bibitem{Staerk2005}
Robert~F. St{\"a}rk.
\newblock Formal specification andverification of the {C\#} thread model.
\newblock {\em Theoretical ComputerScience}, 343(3):482--508, 2005. \em是斜体
\end{thebibliography}
可直接用\cite{BH1991}再次引用
12、斜体
\(LALALALALALAL\)\\
\(\mathit{LALALALALALAL}\)
更为紧凑
13、数学语句
\[ 语句 \]
语句位于下一行中央
x_1 下标
$语句$
作用等同于\(
语句\),斜体
http://www.maths.tcd.ie/~dwilkins/LaTeXPrimer/MathSymb.html
数学符号
\frac{多项式}{多项式}
分子分母
\sqrt
{多项式}.
开n次方根
14、条件引用句
If $f(x) = 3x + 7$ and $g(x) = x + 4$ then
\begin{equation}
f(x) + g(x) = 4x + 11\label{eq1}
\end{equation}
and
\begin{equation}
f(x)g(x) = 3x^2 + 19x +28.\label{eq2}
\end{equation}
Are equations \ref{eq1} and \ref{eq2} onpage \pageref{eq1} correct?
\documentclass{article}
\begin{document}
\end{document}
2、基本操作
\title{文章标题}
\author{作者名称}
\date{日期}
\maketitle
不加的话无法显示标题,作者名称,日期
\tableofcontents
显示目录
\section{段落1标题}
\subsection{分段落小标题}
\titlepage
标题页,用于分页
3、小标题1
\begin{itemize}
多层小标题叠加
\item 语句
\item
形成多层标题
\begin{itemize}
\item 语句
\end{itemize}
\item
退出时没有\item的话句子前面没有标志
\end{itemize}
4、小标题2
\begin{description}
\item[小标题,加粗]
语句
如果不加[]
依然语句成立但没有被加粗的小标题
\item[小标题,加粗]
语句
如果不加\item则语句显示不会换行
\end{description}
5、小标题3
\begin{quote}
语句
语句开头会有一段空格,可以多层叠加
\end{quote}
6、引用
\ref{References}
引用
\pageref{References}
引用的页数
\label{References}
被引用的标题
EX: The first subsection is section \ref{References} on page\pageref{References} in this
document.
在被引用的段落后添加\label{References},如果需要多次引用,可修改为\label{References1}、
\label{References2} 等,如果把\label{References}放在段落中间,则视为引用这个段落,直接显示段落的标题
7、对齐
\begin{flushright}
语句 语句向右对齐
\end{flushrigh}
\begin{flushleft}
语句
语句向左对齐
\end{flushleft}
8、断句
\\ 无论在标题还是在语句中插入均可断句
9、表格
\begin{table}[h]
h-here t-top b-bottom p-page-of-its-own
\begin{center}
表格居中
\begin{tabular}{|| l |c | r | p{7em}|p{5em}||}
p{7em}指单元格长度
\hline 横线
1 & 2 & 3 & this is a columnfor long texts &hi\\
&区分不同格子之间的内容
\cline{1-4} 横线,可控制长度
4 & 5 & 6 & this is a separateline of text&hi\\
\cline{1-3}
7 & 8 & 9 & & \\
\hline
\end{tabular}
\end{center}
\caption{My firsttable\label{tableExample}}
表格标题
\end{table}
10、插入图片
\usepackage{graphicx}
调用宏包,搁在\documentclass{article}下一行
\begin{figure}[h]
用PDFLaTeX
\centering
\includegraphics[width=1in,height=1in,angle=-20]{0001.jpg}
\caption{My first pictures!}(\copyrightElissa)
\copyright申明版权
\end{figure}
11、参考文献
\begin{thebibliography}{}
自动出现标题references
\bibitem{BH1991}
引用文献
Franz Baader and Bernhard Hollunder.
\newblock $\mathcal{KRIS}$: Knowledgerepresentation and inference system.
\newblock {\em SIGART Bulletin},
\newblock
用于分段编辑,会自动何在一起
\newblock 2(3):8--14, 1991.
\bibitem{Staerk2005}
Robert~F. St{\"a}rk.
\newblock Formal specification andverification of the {C\#} thread model.
\newblock {\em Theoretical ComputerScience}, 343(3):482--508, 2005. \em是斜体
\end{thebibliography}
可直接用\cite{BH1991}再次引用
12、斜体
\(LALALALALALAL\)\\
\(\mathit{LALALALALALAL}\)
更为紧凑
13、数学语句
\[ 语句 \]
语句位于下一行中央
x_1 下标
$语句$
作用等同于\(
语句\),斜体
http://www.maths.tcd.ie/~dwilkins/LaTeXPrimer/MathSymb.html
数学符号
\frac{多项式}{多项式}
分子分母
\sqrt
{多项式}.
开n次方根
14、条件引用句
If $f(x) = 3x + 7$ and $g(x) = x + 4$ then
\begin{equation}
f(x) + g(x) = 4x + 11\label{eq1}
\end{equation}
and
\begin{equation}
f(x)g(x) = 3x^2 + 19x +28.\label{eq2}
\end{equation}
Are equations \ref{eq1} and \ref{eq2} onpage \pageref{eq1} correct?
相关文章推荐
- PyQt5简易入门指南01,环境的配置与搭建
- PyQt5简易入门指南03,使用资源文件和设计师
- Gulp.js简易入门指南
- PyQt5简易入门指南02,简单图片显示程序
- Linux 下C++开发入门指南,简易入门版
- Emacs入门指南(3)
- (转)Oracle RMAN快速入门指南
- java 移动开发入门指南
- Symbian入门指南-项目文件&命名规范
- BSD Socket 简易入门手册
- 博客入门指南和Blog软件平台测试
- XML DOM 入门指南
- XML DOM 入门指南
- ASP.NET Starter Kit 入门指南
- 期货市场入门指南
- Emacs入门指南(3)
- Emacs入门指南(1)
- Symbian入门指南-接触篇
- Eclipse入门:使用指南
- Emacs入门指南(2)