CTeX使用

CTeX使用过程中遇到的问题与解决

  • CTeX: 2.9.2.164
  • WinEdit: 10

1. CTeX是什么?

在说CTex是什么时,首先需要了解TeXTeX是由著名的计算机科学家Donald E. Knuth(高德纳)发明的排版系统,利用TeX可以很容易地生成高质量的dvi文件,从而打印输出。TeX被普遍认为是一个很好的排版工具,特别是在处理复杂的数学公式时。CTeX是利用TeX排版系统的CTeX中文套装的简称。它集成了编辑器 、WinEdtPostScript处理软件、GhostscriptGSview等主要工具。简言之,CTex就是一个电子排版系统。

2. CTeX使用前涉及到的.bib文件、.cls文件和.tex文件分别是什么?

.bib文件相当于一个参考文献数据库, 一般期刊或会议给的LaTex模板会自带参考文献样式,使用.bib可以自动生成该模板下的参考文献样式。
.cls文件是LaTeX2e的格式文件,它决定了LaTeX2e源文件的排版布局。相对应的会议都会提供.cls文件,使用该模板后你论文的格式就会按照会议要求的版式进行自动排版。
.tex文件是基于宏的流行的文本格式。后期论文的编辑就是在.tex文件中进行的。

3. 使用CTeX编写论文的步骤有哪些?

(1) 新建工作文件夹,如paper
(2) 将相对应论文或期刊的排版文件.cla,参考文献文件.bib拷贝进工作文件夹paper中;
(3) 将论文中使用的图片也同样拷贝到工作文件夹paper中;
(4) 新建.tex文件或使用已有的.tex文件;
(5) 在WinEdit中打开工作文件夹的.tex文件;
(6) 对.tex文件进行编辑;
(7) 生成.pdf文件。

4. 如何生成参考文献.bib文件?

(1) 新建references.txt文件;
(2) 在google学术上搜素相应论文的名称;
(3) 点击引用标志;
(4) 弹出引用后选择BibTex
(5) 将信息复制到所建立的references.txt文件中;
(6) 将.txt后缀的references.txt文件改为.bib后缀的references.bib文件。
.bib文件生成步骤

5. .tex文件基本样式是什么样?

示例:

%指示样式模板
\documentclass[wcp]{jmlr}   

%引用的宏包
\usepackage{longtable}  
\usepackage{booktabs}

%文章名
\title{Full Title of Article}   

%作者、邮箱以及地址,其中'\\'为换行
  \author{\Name{Author Name1} \Email{abc@sample.com}\\
  \addr Address 1
  \AND
  \Name{Author Name2} \Email{xyz@sample.com}\\
  \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}

效果:
这里写图片描述

6. 如何给文档第一页底端添加thanks?

只需在\title{}中文档名后加%\thanks{}即可。
示例:

\title[]{Full Title of Article%
\thanks{The content of thanks.}}

效果:
这里写图片描述

7. 如何给文档添加脚注?

在所需要添加脚注的内容后使用\footnote{脚注内容}即可。
示例:

\section{First Class Title} %一级标题
Latex \footnote{Latex is a good software} is a good software.
balabala...

效果:
添加脚注

8. 在文档中如何多出引用同一脚注?

在添加第一个脚注的时候,同时给该脚注一个\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...

效果:
多出使用同一脚注

9. 如何在文档中使用表格中的列格式?

示例:

\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}

效果:
这里写图片描述

10. 在文档中如何引用参考文献?

在你需要引用参考文献的地方,通过\cite{}进行引用。
示例:

\subsection{Second Class Title} %二级标题
Latex\textsuperscript{\ref{latex}}
balabala\cite{DBLP:conf/acml/2009}...

效果:
参考文献引用

注:\cite{DBLP:conf/acml/2009}中的内容就是.bib中论文的引用别名。
文献引用

  • 18
    点赞
  • 137
    收藏
    觉得还不错? 一键收藏
  • 6
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值