在使用Latex写论文的时候,老师都是给的一个模版,直接把里面的东西进行替换就行乐
这就导致,我们根本就不知道如何从头开始写一个Latex文件,并使它能编译通过
样例来自Making a typical LaTeX document,使用超链接了,点下就可以了
使用软件:ubuntu12.04+LateXila
代码
\documentclass[12pt]{article}
\newcommand{\piRsquare}{\pi r^2} % This is my own macro !!!
\title{My Sample \LaTeX{} Document} % used by \maketitle
\author{\L\"{a}rs Schl{\oe}ff\d{o}ng\"{e}n, } % used by \maketitle
\date{July 14, 2005} % used by \maketitle
\begin{document}
\maketitle % automatic title!
I typed this file with a plain text editor.
(I used \textbf{pico} and \textbf{emacs}.)
End
of
paragraph.
This is my second paragraph.
The area of a circle is $\pi r^2$; again, that is $\piRsquare$