在full circle issue 11
上看到的。名字叫"introduction to latex"。确实很简单。下面是代码,随便什么文本编辑器,存为一个后缀为.tex的文件,如my.tex。
这个代码格式太烂了。源代码见附件。
\documentclass[a4paper,12pt]{article}
\usepackage{graphicx}
\usepackage{multicol}
\title{My LaTeX Primer}
\author{Wang Ning}
\begin{document}
\maketitle
\clearpage
\tableofcontents
\clearpage
\listoftables
\clearpage
\listoffigures
\clearpage
\section{Equations}
I will begin by adding a famous equation to the document, and referencing the equation in the text.
Einstein published important papers in 1905, and one of them was Special Relativity, popularly known as \ref{eqn1}.
\begin{equation}
\label{eqn1}
E = mc^2
\end{equation}
where, E represents energy, m the mass of the object, and c the speed of light.
I will make my second equation. This should be like \ref{eqn2}.
\begin{equation}
\label{eqn2}
a = b^c
\end{equation}
This means nothing. But I create it.
\section{Table}
Now we will insert a table containing a fictional list of names and ages. Table \ref{table1} contains...
\begin{table}[!ht]
\caption{A table to contain ages and names}
\label{table1}
\begin{center}
\begin{tabular}{|c|c|}
\hline
Name & Ages\\
\hline
Bob & 24\\
Dave & 13\\
Lucy & 27\\
Claire&12\\
\hline
\end{tabular}
\end{center}
\end{table}
\section{Columns}
It is very easy to add multiple columns to the document:
\begin{multicols}{2}
LOTS OF CONTENT LOTS OF CONTENT LOTS OF CONTENT LOTS OF CONTENT LOTS OF CONTENT LOTS OF CONTENT LOTS OF CONTENT LOTS OF CONTENT LOTS OF CONTENT LOTS OF CONTENT LOTS OF CONTENT LOTS OF CONTENT LOTS OF CONTENT LOTS OF
\end{multicols}
\section{Image}
Here is a picture as image \ref{image1} shows.
\begin{figure}[!ht]
\caption{Penguin Image}
\label{image1}
\begin{center}
\includegraphics[width=3in]{tux.png}
\end{center}
\end{figure}
\end{document}
这里面有个图片,叫tux.png,随便找个图片方上去就可以。
然后系统中要有pdflatex命令。在命令行下运行$pdflatex my.tex,就输出pdf文件了。效果还不错。
文章最后还推荐了一个不错的文档:http://www.ctan.org/tex-archive/info/lshort/english/lshort.pdf
以后在慢慢研究吧。
分享到:
相关推荐
LaTex学习实践(简易快速LaTex上手例子)
《Latex从入门到精通—刘海洋》1.2节一个简单例子的实现,代码笔记
这个系统同样适用于生成从简单信件到完整书籍的所有其他种类的文 档。LATEX 使用TEX[2] 作为它的格式化引擎。 这份短小的介绍描述了LATEX 2ε 的使用,对LATEX 的大多数应用来说应该 是足够了。参考文献[1, 3] 对...
这是一个简单的latex入门使用小例子,主要用于论文的写作 适合毕业论文,建模论文等
Python2LaTeX:Python到LaTeX...创建一个简单的文件 下面的示例演示如何创建一个包含单个部分和一些文本的文档。 from python2latex import Document doc = Document ( filename = 'simple_document_example' , filepa
以下是一个简单的例子: ```latex \documentclass{article} % 定义文档类型为article \begin{document} % 开始文档 title{我的第一个LaTeX文档} % 设置标题 \author{张三} % 设置作者 \date{\today} % 设置日期 \...
例子一个简单的文件目录 example1 包含一个非常简单的 Latex 文档,用于测试不同的期刊模板。 您可以按如下方式进行测试: cd example1python ../relatex.py plos simple.tex --email yogi@cs.technion.ac.il这会将...
怎样用latex插入印文以及编排文档结构的一个简单例子
如何编辑matlab代码只是一个简单的例子,如何让你的学生生活更轻松 为什么? 在我的学生活动中,我遇到了一个问题——经常需要写报告。 当需要纠正错误时,它花费了很多时间并且变得更加问题。 自动创建报告让我和...
该库的目标是在Python和LaTeX之间提供一个简单但可扩展的接口。安装只需使用pip安装: pip install pylatex然后安装相关的LaTeX处理器和其他依赖项。 例子:的Ubuntu sudo apt-get install texlive-pictures tex...
安装完成之后我们就可以使用Texstudio来写Latex文档了,这里很简单,我模板都为大家做好了,要做的就是在Texstudio里面点开.tex文件,然后点击“编译”按钮,就可以生成好开的.pdf格式的报告啦(生成的.pdf文件在根...
方法是: * 在latex文件的说明部分加上: \usepackage{CJK} * 在latex文件的\begin{document}后加上: \begin{CJK*}{GB}{字体 } 其中的"字体"是文章中要... 这里有一个"{CJK*}{GB}{字体}"方式具体使用情况的简单例子。
C#中的Latex文档 使用面向对象的编程在C#中创建Latex文档 这是一个简单的C#库,希望在您的帮助下它会变得更好! : 例子: 下载:
docker run -p 7000:7000 digilist/latex-microservice 现在可以在下使用http服务,并接受您的POST请求。 您可以在请求路径中指定您喜欢的tex编译器,例如 例子以curl命令给出。 简单的TeX编译 本示例将tex源发布...
Latex 如何编辑matlab代码E18乳胶商城 v1.0 任何改进建议表示赞赏。 –> georgij.michaliutin (at) me.com 导入到 Overleaf 下载 ZIP 文件(克隆或下载按钮) 转到 Overleaf,单击New Project并选择Upload Project ...
工作流程很简单。 这是一个小例子: 设置输入结构: input.data=[1,3;4,2]; 调用函数: latexTable(input) 将生成的LaTex代码复制并粘贴到您喜欢的LaTex编辑器中 有关更多详细信息和示例,请参见latexTable.m和...
这个系统同样适用于生成从简单信件到完整书籍的所有其他种类的文 档。L ATEX 使用 TEX[2] 作为它的格式化引擎。 这份短小的介绍描述了 L ATEX2ε 的使用,对 L ATEX 的大多数应用来说应该 是足够了。参考文献 [1, 3]...