今天安装了CTEX,开始学习用Latex写文档。我们组的人一般是用scientific workplace的。但是我不太喜欢那个东西,搞得像word一样。所以决定用ctex。这是第一篇手记。一般介绍某种编程语言的书都喜欢用“Hello,world”作为第一个例子,所以这篇的名字就叫做Hello, World了。
下面是一个例子,来自ctex论坛上的视频。
\documentclass{article}
\usepackage{amsmath}
\usepackage{indentfirst}
\begin{document}
\title{My Masterpiece}
\author{Helin Gai}
\date{}
\maketitle
\tableofcontents
\section{WinEdt}
Microsoft Word is a word processor, and it is not suitable for
serious typesetting.
Duke University is one of the most renowned institutions in the US.
\section{Math}
$a^2+b^2=c^2$
\end{document}
注释:
\usepackage{indentfirst} 使用这个package使得每个section首段的首行缩进。否则每个section首段不缩进,从第二段开始首行缩进。
\date{} 该命令阻止Latex生产日期。去掉该命令,Latex将自动生成日期。
下面是一个例子,来自ctex论坛上的视频。
\documentclass{article}
\usepackage{amsmath}
\usepackage{indentfirst}
\begin{document}
\title{My Masterpiece}
\author{Helin Gai}
\date{}
\maketitle
\tableofcontents
\section{WinEdt}
Microsoft Word is a word processor, and it is not suitable for
serious typesetting.
Duke University is one of the most renowned institutions in the US.
\section{Math}
$a^2+b^2=c^2$
\end{document}
注释:
\usepackage{indentfirst} 使用这个package使得每个section首段的首行缩进。否则每个section首段不缩进,从第二段开始首行缩进。
\date{} 该命令阻止Latex生产日期。去掉该命令,Latex将自动生成日期。
评论