在说CTex是什么时,首先需要了解TeX。TeX是由著名的计算机科学家Donald E. Knuth(高德纳)发明的排版系统,利用TeX可以很容易地生成高质量的dvi文件,从而打印输出。TeX被普遍认为是一个很好的排版工具,特别是在处理复杂的数学公式时。CTeX是利用TeX排版系统的CTeX中文套装的简称。它集成了编辑器 、WinEdt、PostScript处理软件、Ghostscript和GSview等主要工具。简言之,CTex就是一个电子排版系统。
.bib文件相当于一个参考文献数据库, 一般期刊或会议给的LaTex模板会自带参考文献样式,使用.bib可以自动生成该模板下的参考文献样式。
.cls文件是LaTeX2e的格式文件,它决定了LaTeX2e源文件的排版布局。相对应的会议都会提供.cls文件,使用该模板后你论文的格式就会按照会议要求的版式进行自动排版。
.tex文件是基于宏的流行的文本格式。后期论文的编辑就是在.tex文件中进行的。
(1) 新建工作文件夹,如paper;
(2) 将相对应论文或期刊的排版文件.cla,参考文献文件.bib拷贝进工作文件夹paper中;
(3) 将论文中使用的图片也同样拷贝到工作文件夹paper中;
(4) 新建.tex文件或使用已有的.tex文件;
(5) 在WinEdit中打开工作文件夹的.tex文件;
(6) 对.tex文件进行编辑;
(7) 生成.pdf文件。
(1) 新建references.txt文件;
(2) 在google学术上搜素相应论文的名称;
(3) 点击”引用标志;
(4) 弹出引用后选择BibTex;
(5) 将信息复制到所建立的references.txt文件中;
(6) 将.txt后缀的references.txt文件改为.bib后缀的references.bib文件。
示例:
%指示样式模板
\documentclass[wcp]{jmlr}
%引用的宏包
\usepackage{longtable}
\usepackage{booktabs}
%文章名
\title{Full Title of Article}
%作者、邮箱以及地址,其中'\\'为换行
\author{\Name{Author Name1} \Email{[email protected]}\\
\addr Address 1
\AND
\Name{Author Name2} \Email{[email protected]}\\
\addr Address 2
}
%文档开始
\begin{document}
%摘要部分
\begin{abstract}
This is the abstract for this article.balabala...
\end{abstract}
%关键词
\begin{keywords}
List of keywords
\end{keywords}
%一级标题
\section{First Class Title}
balabala...
%二级标题
\subsection{Second Class Title}
balabala...
%参考文献文件名
\bibliography{references}
%文档结束
\end{document}
只需在\title{}中文档名后加%\thanks{}即可。
示例:
\title[]{Full Title of Article%
\thanks{The content of thanks.}}
在所需要添加脚注的内容后使用\footnote{脚注内容}即可。
示例:
\section{First Class Title} %一级标题
Latex \footnote{Latex is a good software} is a good software.
balabala...
在添加第一个脚注的时候,同时给该脚注一个\label{}作为标识,后面直接使用该标识。
示例:
\section{First Class Title} %一级标题
Latex \footnote{Latex is a good software\label{latex}} is a good software.
balabala...
\subsection{Second Class Title} %二级标题
Latex\textsuperscript{\ref{latex}}
balabala...
示例:
\begin{center}
\begin{tabular}{l}
\toprule
Cambodian ruling party wins majority vote in election: \\
\midrule
\textbf{Step 1}: The ruling Cambodian People's Party (CPP) of Prime Minister Samdech Techo Hun Sen won a majority vote in the general election on Sunday, according to National Election Committee (NEC)'s preliminary results. \\
\textbf{Step 2}: "According to the NEC's preliminary results broadcast on the state-owned National Television of Cambodia, the votes that the people supported the CPP were over 80 percent," he told Xinhua. "Based on this percentage we received, the CPP wins not less than 100 seats in the National Assembly." \\
\textbf{Step 3}: Polls opened at 7:00 a.m. local time on Sunday and closed at 3:00 p.m. at all 22,967 polling stations across the kingdom. Around 6.88 million, or 82 percent, of the 8.38 million eligible voters cast their ballots in the election, according to NEC's updated statistics. \\
\textbf{Step 4}: A total of 20 political parties contested in the election, which was held to elect 125 lawmakers for the National Assembly.\\
\bottomrule
\end{tabular}
\end{center}
效果:
这样的话,列表中过长的句子不会自动换行,我们需要设置tabular的宽度。
示例:
\begin{center}
\begin{tabular}{p{1\textwidth}} %通过p来进行设置
\toprule
Cambodian ruling party wins majority vote in election: \\
\midrule
\textbf{Step 1}: The ruling Cambodian People's Party (CPP) of Prime Minister Samdech Techo Hun Sen won a majority vote in the general election on Sunday, according to National Election Committee (NEC)'s preliminary results. \\
\textbf{Step 2}: "According to the NEC's preliminary results broadcast on the state-owned National Television of Cambodia, the votes that the people supported the CPP were over 80 percent," he told Xinhua. "Based on this percentage we received, the CPP wins not less than 100 seats in the National Assembly." \\
\textbf{Step 3}: Polls opened at 7:00 a.m. local time on Sunday and closed at 3:00 p.m. at all 22,967 polling stations across the kingdom. Around 6.88 million, or 82 percent, of the 8.38 million eligible voters cast their ballots in the election, according to NEC's updated statistics. \\
\textbf{Step 4}: A total of 20 political parties contested in the election, which was held to elect 125 lawmakers for the National Assembly.\\
\bottomrule
\end{tabular}
\end{center}
在你需要引用参考文献的地方,通过\cite{}进行引用。
示例:
\subsection{Second Class Title} %二级标题
Latex\textsuperscript{\ref{latex}}
balabala\cite{DBLP:conf/acml/2009}...