意义用途

用于出版物的排版,样式控制,使得编排标准美观。

整体框架

一个最简环境

\documentclass{article}
\begin{document}
content...
\end{document}

  

特殊符号

特殊符号的表示需要使用转义方式,但是\\表示的是换行而不是\。需要则使用$\backslash$表示。

\documentclass{article}
\begin{document}
   \# \$ \% \^{} \& \_ \{ \} \~ \\
   $\backslash$
\end{document}

省略号

省略号使用特殊的表示,区别于传统的直接使用多个点,间距不同的。

\documentclass{article}
\begin{document}
\ldots when Einstein introduced his formula\\
...
\end{document}

  

公式表示

使用另外的子环境设置

\documentclass{article}
\begin{document}
\begin{equation} e = m \cdot c^2 \end{equation}
which is at the same time the most widely known and the least well understood physical formula.
\end{document}

一些求和,下标表示示例

\documentclass{article}
\begin{document}
\begin{equation} \sum_{k=1}^{n} I_k = 0 \end{equation}
Kirchhoff’s voltage law can be derive \ldots
\end{document}

日期表示

如下

\documentclass{article}
\begin{document}
\today
\end{document}

  

引号表示

使用两个’表示,或者左边使用`,右边使用’表示。

\documentclass{article}
\begin{document}
‘‘Please press the ‘x’ key.’’ \\
\\
``asdf'''
\end{document}

  

破折号或横线

使用多个-表示

\documentclass{article}
\begin{document}
--------------------------
\LaTeX
\end{document}

  

上波浪线和中波浪线

如下,分别为上波浪线和中波浪线

\documentclass{article}
\begin{document}
http://www.rich.edu/\~{}bush \\
http://www.clever.edu/$\sim$demo\\
\end{document}

另一些特殊符号

,如℃

\documentclass{article}
\begin{document}
It’s $-30\,^{\circ}\mathrm{C}$.
     sm\o rrebr\o d, !‘Se\~norita!,\\
\end{document}

导入包并使用欧元符号

观察不同即可

\documentclass{article}
\usepackage{textcomp}
\begin{document}
\texteuro
\end{document}

  

字符ff等自动连接的拆分

如下示例

\documentclass{article}
\begin{document}
Not shelfful\\
but shelf\mbox{}ful\\
\end{document}

  

分节表示

如下简例

\documentclass{article}
\begin{document}
\section{Some Interesting Words}
\end{document}

  

页脚注释方案

\documentclass{article}
\begin{document}
Footnotes\footnote{This is a footnote.}
\end{document}

  

强调方式

一般使用斜体,但是整体是斜体则用正体,总之是不同的样式,表示强调

\documentclass{article}
\begin{document}
\textit{You can also \emph{emphasize} text if it is set in italics,}\\
\emph{emphasize}
\end{document}

分条方式

如下示例

\documentclass{article}
\begin{document}
\begin{enumerate}
\item You can mix the list environments to your taste:
\begin{itemize} \item But it might start to look silly. \item[-] With a dash. \end{itemize}
\item Therefore remember: \begin{description}
\item[Stupid] things will not become smart because they are in a list.
\item[Smart] things, though, can be presented beautifully in a list.
\end{description}
\end{enumerate}
\end{document}

  

对齐方式

示例右对齐、居中

\documentclass{article}
\begin{document}
\begin{flushright} This text is right-\\aligned. \LaTeX{} is not trying to make each line the same length.
\end{flushright}
     \begin{center} At the centre\\of the earth \end{center}
\end{document}

摘要方式

摘要部分:

\documentclass{article}
\begin{document}
\begin{abstract} The abstract abstract. \end{abstract}
\end{document}

  

原始方式显示

示例:

\documentclass{article}
\begin{document}
\begin{verbatim}
10 PRINT "HELLO WORLD ";
20 GOTO 10 \end{verbatim}
\end{document}

  

文字加框

与上下横线,如下示例:宽度固定4.7cm

\documentclass{article}
\begin{document}
\begin{tabular}{|p{4.7cm}|} \hline Welcome to Boxy’s paragraph. We sincerely hope you’ll all enjoy the show.\\ \hline
\end{tabular}\\
\\\\
\\
\begin{tabular}{l} \hline leading space left and right\\ \hline \end{tabular}
\end{document}

  

指数上标

示例:

\documentclass{article}
\begin{document}
1\\
[122pt] 100~m$^{3}$ of water\\
\end{document}

  

两个数学符号

示例:tal 和 属于

\documentclass{article}
\begin{document}
\(\tau \epsilon \)\\
\end{document}

  

其它数学表示

如下和效果:

\documentclass{article}
\begin{document}
\begin{displaymath} \lim_{n \to \infty} \sum_{k=1}^n \frac{1}{k^2} = \frac{\pi^2}{6} \end{displaymath} \begin{equation} x^{2} \geq 0\qquad \textrm{for all }x\in\mathbf{R} \end{equation}
\begin{equation} a^x+y \neq a^{x+y} \end{equation} \[\lim_{x \rightarrow 0} \frac{\sin x}{x}=1\]
\begin{displaymath} \mathbf{X} = \left( \begin{array}{ccc} x_{11} & x_{12} & \ldots \\ x_{21} & x_{22} & \ldots \\ \vdots & \vdots & \ddots \end{array} \right) \end{displaymath} \end{document}

  

Latex使用记事(1)的更多相关文章

  1. Linux 中优秀的文本化编辑思想大碰撞(Markdown、LaTeX、MathJax)

    这样一个标题可能不太准确,因为确实无法准确地解释什么叫"文本化编辑思想".其实我这篇随笔主要是想探讨 Markdown.LaTeX.MathJax,有兴趣的朋友可以继续往下看,同时 ...

  2. 再来说说 LaTeX

    在我的上一篇随笔中,我提到了 Markdown.LaTeX 和 MathJax.这几个东西对目前的网络技术文章的写作.展示都有深远的影响.在上一篇中,我还给出了一份 LaTeX 语法的学习资料.在这一 ...

  3. LATEX数学公式基本语法

    TEX 是Donald E. Knuth 编写的一个以排版文章及数学公式为目标的计算机程序.TEX的版本号不断趋近于π,现在为3.141592.由Pascal 语言写成,特点: 免费.输出质量高.擅长 ...

  4. 为WLW开发Latex公式插件

    WLW是写博客的利器,支持离线.格式排版等,而且拥有众多的插件.博客园推荐了代码插入插件,但是没有提供WLW的公式编译插件.目前我的一般做法是:先在Word下使用MathType编辑好公式,然后将公式 ...

  5. MarkDown+LaTex 数学内容编辑样例收集

    $\color{green}{MarkDown+LaTex 数学内容编辑样例收集}$ 1.大小标题的居中,大小,颜色 [例1] $\color{Blue}{一元二次方程根的分布}$ $\color{R ...

  6. Windows下LATEX排版论文攻略—CTeX、JabRef使用介绍

    Windows下LATEX排版论文攻略—CTeX.JabRef使用介绍 一.工具介绍 TeX是一个很好排版工具,在学术界十分流行,特别是数学.物理学和计算机科学界. CTeX是TeX中的一个版本,指的 ...

  7. TeXstudio 编写Latex论文的若干问题

    TeXstudio 编写Latex论文的若干问题解决方案总结       问题1: 如何安装TeXstudio 以及 Texstudio当中的中文字体使用问题.   一.如何安装TeXstudio 很 ...

  8. SCI英文论文写作- Latex 进阶

    SCI英文论文写作- Latex 进阶   1.设置行间距的方法: %\setlength{\baselineskip}{15pt} \renewcommand{\baselinestretch}{1 ...

  9. 如何在latex 中插入EPS格式图片

    如何在latex 中插入EPS格式图片 第一步:生成.eps格式的图片 1.利用visio画图,另存为pdf格式的图片 利用Adobe Acrobat裁边,使图片大小合适 另存为.eps格式,如下图所 ...

随机推荐

  1. CSS3-弹性盒布局(Flex Box)

    弹性盒布局(Flex Box) 一.概念 弹性盒子是 CSS3 的一种新的布局模式. CSS3 弹性盒( Flexible Box 或 flexbox),是一种当页面需要适应不同的屏幕大小以及设备类型 ...

  2. golang——reverse反转字符串

    reverse反转,是个比较基础算法.要实现这个方法,从常理考虑可以申请一个新空间,然后将字符串的从尾到头依次填充该空间,最后新空间的内容就是反转后的结果了,这个方式的算法复杂度是O(n),并且还需要 ...

  3. linux环境下使用jmeter进行压力测试

    linux环境下使用jmeter进行压力测试 linux环境下使用就meter进行压力测试: linux环境部署: 在Linux服务器先安装jdk: 2.以jdk-8u172-linux-x64.ta ...

  4. LeetCode 328. 奇偶链表(Odd Even Linked List)

    题目描述 给定一个单链表,把所有的奇数节点和偶数节点分别排在一起.请注意,这里的奇数节点和偶数节点指的是节点编号的奇偶性,而不是节点的值的奇偶性. 请尝试使用原地算法完成.你的算法的空间复杂度应为 O ...

  5. koa 项目实战(九)passport验证token

    1.安装模块 npm install koa-passport -D npm install passport-jwt -D 2.解析token 根目录/config/passport.js cons ...

  6. DNA Sorting

    DNA Sorting Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 105159   Accepted: 42124 De ...

  7. Hibernate3核心API简介-Transaction接口

    代表一次原子操作,它具有数据库事务的概念.所有持久层都应该在事务管理下进行,即使是只读操作.    Transaction tx = session.beginTransaction();常用方法:c ...

  8. maven项目无法导入Oracle的jdbc连接jar包【我】

    导入一个maven项目,启动一直报错 找不到Oracle的jdbc连接驱动Class, 用Eclipse导入 ojdbc14.jar 连接包,各种方法都无效,无法引入到部署后的lib目录中,可以直接放 ...

  9. [ML] LIBSVM Data: Classification, Regression, and Multi-label

    数据库下载:LIBSVM Data: Classification, Regression, and Multi-label 一.机器学习模型的参数 模型所需的参数格式,有些为:LabeledPoin ...

  10. java+服务器上传和下载文件

    1.介绍enctype enctype 属性规定发送到服务器之前应该如何对表单数据进行编码. enctype作用是告知服务器请求正文的MIME类型(请求消息头content-type的作用一样) 1. ...