latex中文模板
latex 中文模板

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\iffalse % 块注释如果要注释一块文字,用\iffalse ... \fi 界定住要注释的文字。
特别提醒:以下设置的次序不能乱,否则会引发冲突,影响到编译是否成功。
\fi\documentclass[a4paper,11pt, % A4纸twoside, % 双面% openany % 新章节在偶数页开始 ]{article}%%%%%%%%%% 版面控制 %%%%%%%%%%\usepackage{indentfirst} % 首行缩进\iffalse\usepackage[%paperwidth=18.4cm, paperheight= 26cm,body={14.6true cm,22true cm},twosideshift=0 pt,%headheight=1.0true cm]{geometry}\fi\usepackage[perpage,symbol]{footmisc}% 脚注控制\usepackage[sf]{titlesec} % 控制标题\usepackage{titletoc} % 控制目录\usepackage{fancyhdr} % 页眉页脚\usepackage{type1cm} % 控制字体大小\usepackage{indentfirst} % 首行缩进\usepackage{makeidx} % 建立索引\usepackage{textcomp} % 千分号等特殊符号\usepackage{layouts} % 打印当前页面格式\usepackage{bbding} % 一些特殊符号\usepackage{cite} % 支持引用\usepackage{color,xcolor} % 支持彩色文本、底色、文本框等\usepackage{listings} % 粘贴源代码\lstloadlanguages{} % 所要粘贴代码的编程语言\lstset{language=,tabsize=4, keepspaces=true,xleftmargin=2em,xrightmargin=2em, aboveskip=1em,backgroundcolor=\color{lightgray}, % 定义背景颜色frame=none, % 表示不要边框keywordstyle=\color{blue}\bfseries,breakindent=22pt,numbers=left,stepnumber=1,numberstyle=\tiny,basicstyle=\footnotesize,showspaces=false,flexiblecolumns=true,breaklines=true, breakautoindent=true,breakindent=4em,escapeinside={/*@}{@*/}}%%%%%%%%%% 字体支持 %%%%%%%%%%%%%\usepackage{ccmap} % 使pdfLatex生成的文件支持复制等\usepackage{CJK,CJKnumb,CJKulem} % 中文支持\usepackage{times} % 包括 Times Roman + Helvetica + Courier%\usepackage{palatino} % 包括 Palatino + Helvetica + Courier%\usepackage{newcent} % 包括 New Century Schoolbook + Avant Garde + Courier%\usepackage{bookman} % 包括 Bookman + Avant Garde + Courier%%%%%%%%%% 数学符号公式 %%%%%%%%%%\usepackage{latexsym}\usepackage{amsmath} % AMS LaTeX宏包\usepackage{amssymb} % 用来排版漂亮的数学公式\usepackage{amsbsy}\usepackage{amsthm}\usepackage{amsfonts}\usepackage{mathrsfs} % 英文花体字体\usepackage{bm} % 数学公式中的黑斜体\usepackage{relsize} % 调整公式字体大小:\mathsmaller, \mathlarger\usepackage{caption2} % 浮动图形和表格标题样式%%%%%%%%%% 图形支持宏包 %%%%%%%%%%\ifx\pdfoutput\undefined % 用latex或pdflatex编译\usepackage[dvips]{graphicx} % 将eps格式的图片放在figures目录下\else % 在setup/format.tex中用以下命令注明路径:\usepackage[pdftex]{graphicx} % \graphicspath{{figures/}}\fi%\usepackage{subfigure}\usepackage{epsfig} % 支持eps图像%\usepackage{picinpar} % 图表和文字混排宏包%\usepackage[verbose]{wrapfig} % 图表和文字混排宏包%\usepackage{eso-pic} % 向文档的部分页加n副图形, 可实现水印效果%\usepackage{eepic} % 扩展的绘图支持%\usepackage{curves} % 绘制复杂曲线%\usepackage{texdraw} % 增强的绘图工具%\usepackage{treedoc} % 树形图绘制%\usepackage{pictex} % 可以画任意的图形%\usepackage{hyperref}%%%%%%%%%% 一些距离设置 %%%%%%%%%%%\setlength{\floatsep}{10pt plus 3pt minus 2pt} % 图形之间或图形与正文之间的距离\setlength{\abovecaptionskip}{2pt plus 1pt minus 1pt}% 图形中的图与标题之间的距离\setlength{\belowcaptionskip}{3pt plus 1pt minus 2pt}% 表格中的表与标题之间的距%%%%%%%%%% 纸张和页面的大小 %%%%%%%%%%%\paperwidth 20 true cm % 纸张宽%\paperheight 30 true cm % 纸张高%\textwidth 10 true cm % 正文宽%\textheight 20 true cm % 正文高%\headheight 14pt % 页眉高%\headsep 16pt % 页眉距离%\footskip 27pt % 页脚距离%\marginparsep 10pt % 边注区距离%\marginparwidth 100pt % 边注区宽\makeindex % 生成索引\pagestyle{fancy} % 页眉页脚风格\fancyhf{} % 清空当前页眉页脚的默认设置%%%%%%%%%% 导入中文环境 %%%%%%%%%%\AtBeginDocument{\begin{CJK*}{GBK}{song} % 不计中文的空格\CJKindent % 首行缩进两个汉字\sloppy\CJKspace % 中英文混排的断行\CJKtilde % 重新定义~,用~隔开中英文\CJKcaption{GB} % 章节标题的中文化}\AtEndDocument{\end{CJK*}}%%%%%%%%%% 正文 %%%%%%%%%%\begin{document}%%%%%%%%%% 一些新定义 %%%%%%%%%%\newcommand{\song}{\CJKfamily{song}} % 宋体\newcommand{\hei}{\CJKfamily{hei}} % 黑体\newcommand{\fs}{\CJKfamily{fs}} % 仿宋\newcommand{\kai}{\CJKfamily{kai}} % 楷体%%%%%%%%%% 定理类环境的定义 %%%%%%%%%%%% 必须在导入中文环境之后\newtheorem{example}{例} % 整体编号\newtheorem{algorithm}{算法}\newtheorem{theorem}{定理}[section] % 按 section 编号\newtheorem{definition}{定义}\newtheorem{axiom}{公理}\newtheorem{property}{性质}\newtheorem{proposition}{命题}\newtheorem{lemma}{引理}\newtheorem{corollary}{推论}\newtheorem{remark}{注解}\newtheorem{condition}{条件}\newtheorem{conclusion}{结论}\newtheorem{assumption}{假设}%%%%%%%%%% 一些重定义 %%%%%%%%%%%% 必须在导入中文环境之后\renewcommand{\contentsname}{目录} % 将Contents改为目录\renewcommand{\abstractname}{摘\ \ 要} % 将Abstract改为摘要\renewcommand{\refname}{参考文献} % 将References改为参考文献\renewcommand{\indexname}{索引}\renewcommand{\figurename}{图}\renewcommand{\tablename}{表}\renewcommand{\appendixname}{附录}\renewcommand{\proofname}{\hei 证明}\renewcommand{\algorithm}{\hei 算法}%%%%%%%%%% 重定义字号命令 %%%%%%%%%%\newcommand{\yihao}{\fontsize{26pt}{36pt}\selectfont} % 一号, 1.4倍行距\newcommand{\erhao}{\fontsize{22pt}{28pt}\selectfont} % 二号, 1.25倍行距\newcommand{\xiaoer}{\fontsize{18pt}{18pt}\selectfont} % 小二, 单倍行距\newcommand{\sanhao}{\fontsize{16pt}{24pt}\selectfont} % 三号, 1.5倍行距\newcommand{\xiaosan}{\fontsize{15pt}{22pt}\selectfont} % 小三, 1.5倍行距\newcommand{\sihao}{\fontsize{14pt}{21pt}\selectfont} % 四号, 1.5倍行距\newcommand{\bansi}{\fontsize{13pt}{19.5pt}\selectfont} % 半四, 1.5倍行距\newcommand{\xiaosi}{\fontsize{12pt}{18pt}\selectfont} % 小四, 1.5倍行距\newcommand{\dawu}{\fontsize{11pt}{11pt}\selectfont} % 大五, 单倍行距\newcommand{\wuhao}{\fontsize{10.5pt}{10.5pt}\selectfont} % 五号, 单倍行距%%%%%%%%%% 页眉和页脚的设置 %%%%%%%%%%\lhead{一个~\LaTeX+CJK~的简单模板}\rhead{\TeX~爱好者}\lfoot{用~\LaTeX~写科技论文}\rfoot{~\thepage~}%%%%%%%%%% 论文标题、作者等 %%%%%%%%%%\title{用~\LaTeX~写科技论文 % 论文标题\thanks{这是一个为初学者写的~\LaTeX+CJK~论文模板,未经作者允许可以随意下载使用并修改传播,目的是让更多的人迅速上手用~\LaTeX~系统写作。
自制Latex中文模板

自制Latex中文模板
在LaTeX中使用中文进行排版是很常见的需求。
下面是一个自制的LaTeX中文模板的示例,供参考。
首先,我们需要引入中文支持的宏包`ctex`。
在文档的导言区,添加以下代码:
```latex
\documentclass{article}
\usepackage{ctex}
\usepackage{lipsum} % 提供虚拟文本
```
然后,我们可以设置中文字体。
在导言区添加以下代码:
```latex
\setCJKmainfont{SimSun} % 设置正文字体为宋体
```
接下来,我们可以开始撰写正文。
在`\begin{document}`和
`\end{document}`之间,添加以下代码:
```latex
\begin{document}
\title{我的论文}
\date{\today}
\maketitle
\section{引言}
\lipsum[1-2] % 插入虚拟文本作为示例
\section{内容}
\lipsum[3-5] % 插入虚拟文本作为示例
\section{结论}
\lipsum[6] % 插入虚拟文本作为示例
\end{document}
```
接着,我们使用`\section{}`来设置论文的各个章节标题。
在章节下方,使用`\lipsum`命令来插入虚拟文本作为示例。
最后,使用`\end{document}`来结束文档。
通过以上的代码,我们可以生成一个中文论文的LaTeX模板。
你可以根据自己的需求对模板进行修改和扩展。
latex中文模板

latex中文模板Latex中文模板。
Latex是一种专业的排版系统,常用于生成高质量的科技论文、学术论文和书籍。
在使用Latex排版中文文档时,我们通常需要借助一些中文模板来帮助我们完成排版工作。
本文将介绍一些常见的Latex中文模板,帮助大家选择适合自己需求的模板,并且能够快速上手使用。
一、中文模板的选择。
在选择Latex中文模板时,我们需要考虑一些因素,比如模板的美观程度、排版效果、易用性等。
目前比较流行的中文模板有CTeX、XeLaTeX、LuaLaTeX等。
这些模板都有各自的特点和优势,可以根据自己的需求进行选择。
CTeX是一个专门为中文文档设计的Latex模板,它提供了丰富的中文支持和排版功能,可以满足大部分中文文档的排版需求。
XeLaTeX和LuaLaTeX是基于XeTeX和LuaTeX引擎的Latex扩展,它们支持Unicode编码和OpenType字体,能够更好地处理中文文档的排版。
二、模板的基本结构。
无论选择哪种中文模板,它们的基本结构都是相似的。
一个标准的Latex中文文档通常包括以下几个部分:1. 文档类声明,通过\documentclass命令指定文档的类别,比如article、book、report等。
2. 导言区设置,在导言区可以设置文档的一些基本信息,比如标题、作者、日期等。
3. 正文部分,正文部分是文档的主要内容,可以通过各种Latex命令来排版文本、插入图片、表格、数学公式等。
4. 参考文献,如果需要引用参考文献,可以使用BibTeX或者直接使用thebibliography环境来管理参考文献。
5. 结尾部分,结尾部分通常包括致谢、附录、索引等内容。
三、模板的使用方法。
使用Latex中文模板,首先需要安装Latex发行版,比如TeX Live、MiKTeX 等。
然后,可以选择一个适合自己需求的中文模板,下载并解压到本地。
接下来,就可以使用Tex编辑器,比如Texmaker、TeXShop等,打开模板文件,进行编辑和编译。
中文论文-LaTex模板

中⽂论⽂-LaTex模板\documentclass[10pt,UTF8]{article}\usepackage{ctex}\usepackage{amssymb,amsmath,multicol,titlesec}\usepackage[round]{natbib}\usepackage[hmargin = 1in, vmargin = 1in]{geometry}\renewcommand{\refname}{References}\usepackage[parfill]{parskip}\usepackage{graphicx}\usepackage[font=bf]{caption}\usepackage{titlesec}\titleformat{\section}[hang]{\fontsize{12pt}{1em}\selectfont \bfseries}{\thesection. }{0pt}{\centering \MakeUppercase}\titleformat{\subsection}[hang]{\fontsize{11pt}{1em}\selectfont \bfseries}{\thesubsection}{5pt}{}\titleformat{\subsubsection}[runin]{}{\thesubsubsection}{5pt}{}\titlespacing{\section}{0pt}{10pt}{10pt}\titlespacing{\subsection}{0pt}{10pt}{-5pt}\titlespacing{\subsubsection}{0pt}{8pt}{4pt}%\setlength{\bibsep}{3pt}%\pagenumbering{\gobble}%\setlength{\hyphenpenalty}{1000}%\setlength{\exhyphenpenalty}{1000}\usepackage{fancyhdr}\pagestyle{fancy}\fancyhead[R]{\fontsize{12pt}{1em}\selectfont {\textbf {\textit 3\#\#\#}, {\textbf{Page \thepage}}}}\fancyhead[L]{}\fancyfoot[C]{3\textsuperscript{rd} International High Performance Buildings Conference at Purdue, July 14-17, 2014}\renewcommand{\headrulewidth}{0pt} % Turn off the bar%\newcommand\thefontsize[1]{{#1 The current font size is: \f@size pt\par}}\begin{document}\begin{center}\vspace{0.2in}\noindent{\fontsize{14pt}{1em}\selectfont \textbf{车牌数字及中⽂汉字}}\\[12pt]{\fontsize{11pt}{1.2em}\selectfontFirst AUTHOR\textsuperscript{1*}, Second AUTHOR\textsuperscript{2}\\[10pt]\textsuperscript{1} Organization, Department or Equivalent,\\City, State, Country\\Contact Information (Phone, Fax, E-mail)\\[10pt]\textsuperscript{2} Organization, Department or Equivalent,\\City, State, Country\\Contact Information (Phone, Fax, E-mail)\\[10pt]* Corresponding Author\\[0.6in]}\end{center}\section*{ABSTRACT}The first major section of the manuscript is an abstract. The abstract should describe the contents of the paper, discuss the contribution to the field as well as pre \section{INTRODUCTION}Each manuscript should begin with an introduction, which gives some background on the topic, states briefly the objective of the paper and how it relates to other \section{HEADINGS FORMAT}The titles of the main sections have to be centered, numbered and in 12-point bold type capital letters. With the exception of the abstract, nomenclature, referenc \subsection{Sub-Section Headings}Sub-sections headings have to be in lower case, 11-point bold type letters. A blank line has to be placed above, but not below them.\subsubsection{Sub-sub-section headings} Sub-sub-sections should be avoided. If they are used, they should be justified left, in normal small letters, with the text \section{FORMAT OF THE MANUSCRIPT}\section{FORMAT OF THE MANUSCRIPT}\subsection{Reference Number}Place the paper ID number at the top right corner of the header in a bold type (for example, “101”); i.e., if you use this template, replace the "\#\#\#" in the header \subsection{Manuscript Title}Center the manuscript title with font size of 14-point bolded with a blank line below the title.\subsection{Authors}All authors should be listed by their full name with the family name appearing last, i.e., how the name is written in English (e.g., Yu Li CHO, John SMITH, Tae-yon \subsection{Number of Pages}The entire manuscript (i.e., text, figures, tables, bibliography, etc.) must be no more than ten (10) pages long including graphs, tables and pictures. Any manuscr \subsection{Text Format}Times or Times New Roman font type MUST be used for any text in the document including captions, footnotes, and header information. All text has to be single \subsection{Paper Size and Margins}Authors are asked to provide the manuscript in 8.5 x 11 inch standard U.S. letter format following the margin settings explained in this section. Hardcopy Proceed IMPORTANT: All text of the manuscript must be located within a 6.5 inch by 9 inch rectangle on an U.S. Standard Letter format page. The margins are given in T \begin{table}\centering\begin{tabular}{|c|c|c|c|c|}\hlineSize & Top & Bottom & Left & Right \\\hlineU.S. Standard Letter & 1 inch (2.54 cm) & 1 inch (2.54 cm) & 1 inch (2.54 cm) & 1 inch (2.54 cm) \\\hline\end{tabular}\caption{Page margins for manuscripts}\end{table}\subsection{Format of Citations}Within the text of the manuscript, bibliographical sources are to be cited by giving the last name(s) of the author(s) and the year of publication. The year should a Albert (1957) showed that the blend was azeotropic.or: It was shown that the blend was azeotropic (Albert, 1957).When there are two authors, the names of both should be cited, e.g.:Albert and Klaus (1981) observed that the blend was azeotropic.or: It was observed that the blend was azeotropic (Albert and Klaus, 1981).When there are three authors or more, only the lead author of the source should be cited. The names of the other authors should be designated by et al. in italics Lee et al. (1982) observed that the blend was azeotropic.or: It was observed that the blend was azeotropic (Lee et al., 1982).When the same author and the same year of publication are cited from more than one source, the sources should be distinguished in the text by adding the smal Klaus (1980a) discovered … and further on in the text:Klaus also pointed out (1980b) that …\emph{Note} that in latex you can use the citation command, e.g \textbackslash cite$\{$Forbes$\_$1996$\}$, which will show up in the text as \cite{Forbes_1996}. \subsection{Figures and Tables}Each table must be numbered (Table 1, 2, 3, etc.), with the caption centered above the table and table number in bold as shown in Table 1. Each figure must be \begin{figure}\centering\includegraphics[width = 2.5in]{fig}\caption{Text area for manuscripts (U.S. Letter format)}\end{figure}\subsection{Format of Equations}Equations are to be centered, numbered in order (i.e., (1), (2), (3), etc.) down the right-hand side of the page and cited in the text with its number, e.g., "… as liste Symbols used in equations should be explained directly below the equation in which they first appear or in a nomenclature section at the end of the manuscript. E \begin{equation}C = FN_p+AN_n\end{equation}。
latex中文期刊模板

latex中文期刊模板LaTeX是一种让人们能够轻松制作高质量文档的排版系统。
它既可以用来创建个人文档,也可以用于制作学术论文和期刊。
在学术领域,许多期刊都采用了 LaTeX 来制作文章。
为了在这些期刊上发表文章,你需要使用适合该期刊的 LaTeX 模板。
本文将重点介绍中文期刊模板。
一、LaTeX中文期刊模板的作用LaTeX中文期刊模板是一种用于排版及编写学术论文或期刊文章的模板。
它们被广泛地应用于科学研究、教学和出版领域。
Latex中文期刊模板不仅可以使您的文章结构更加清晰、排版更加美观,同时还可以帮助您遵循期刊的规范和格式要求,从而提高您的文章的被接受率。
二、LaTeX中文期刊模板的特点Latex中文期刊模板的特点在于其灵活性、可自定义性、稳定性和可重用性。
本文主要介绍以下几个常用的中文期刊模板:1. CTEXCTEX(ChinaTeX)是一个为中文 TeX 等排版系统提供的支持中日韩多语种的宏包集。
CTEX 提供了多种可供选择的字体和样式,可以满足不同期刊的要求。
CTEX 在排版存在较好的稳定性和多样性,广泛地应用于许多期刊。
2. GB/T 7714-2015GB/T 7714-2015 是指国家标准,该标准规定了中文参考文献的格式。
GB/T 7714-2015 提供了众多人性化的功能,它支持多种排序方式、自定义引用样式等。
同时,GB/T 7714-2015 中的格式严格遵循国家标准,让作者在投稿时可以顺利通过检测。
3. SCI / EISCI(Science Citation Index)和 EI(Engineering Index)是国际著名的科技期刊的检索系统,也是申请学位和职称的一项重要依据。
在 SCI 和 EI 期刊投稿时,必须严格遵守其排版要求。
SCI / EI 提供了严格的模板要求,对格式和引用的要求非常严格,如果与期刊样式不符,就有可能被退稿。
因此,在进行 SCI / EI 期刊投稿时,使用对应的 LaTex 模板是非常重要的。
latex的article中文模板

latex的article中文模板
在LaTeX中,article类是最常用的文档类之一,它提供了一个基本的文档结构,包括封面、目录、正文、参考文献等部分。
以下是一个简单的article类中文模板,你可以根据需要进行修改和扩展。
latex
\documentclass{article}
% 定义中文环境
\usepackage{ctex}
\begin{document}
% 封面
\title{这是论文标题}
\author{这是作者姓名}
\maketitle
% 目录
\tableofcontents
% 正文
\section{引言}
这是引言部分的内容。
\section{正文内容}
这是正文部分的内容。
% 参考文献
\bibliography{example}
\bibliographystyle{plain}
\end{document}
在这个模板中,我们使用了ctex宏包来支持中文排版。
你需要将example.bib替换为你自己的参考文献文件。
如果你没有参考文献,可以删除或注释掉相关代码。
你可以根据需要添加更多的章节和内容,使用\section和\subsection等命令来创建不同级别的标题。
同时,你还可以使用LaTeX的其他宏包和命令来进一步定制你的文档,例如添加数学公式、插入图片等。
《中国科学》数学中文latex模板

《中国科学》数学中文latex模板(实用版)目录1.介绍《中国科学》数学中文 LaTeX 模板2.说明如何使用该模板3.展示模板的效果正文《中国科学》数学中文 LaTeX 模板是一款非常实用的工具,它可以帮助用户快速地编写数学公式和相关内容。
该模板基于 LaTeX 编程语言,具有很好的兼容性和可扩展性,可以轻松地适应各种文档格式和排版要求。
使用该模板非常简单。
首先,用户需要下载并安装 LaTeX 系统,这可以通过访问 LaTeX 官方网站或者使用一些开源的 LaTeX 发行版来完成。
安装完 LaTeX 系统后,用户需要下载《中国科学》数学中文 LaTeX 模板,并将其解压缩到一个文件夹中。
接下来,用户需要在 LaTeX 系统中配置模板文件夹,以便在编写文档时能够正确地使用模板。
在编写文档时,用户需要使用模板中定义的命令和环境来编写数学公式。
这些命令和环境非常直观,例如,可以使用“begin{equation}”命令开始一个数学公式,使用“end{equation}”命令结束一个数学公式。
模板中还提供了许多常用的数学公式和符号,用户可以直接使用这些公式和符号,无需手动输入。
使用《中国科学》数学中文 LaTeX 模板编写的文档效果非常好。
模板中使用了许多先进的排版技术,例如,微积分符号和矩阵符号的排版非常规范,符合数学出版物的要求。
此外,模板还可以轻松地生成目录、索引和参考文献等文档元素,方便用户编写长篇文档。
总之,《中国科学》数学中文 LaTeX 模板是一款非常实用的工具,它可以帮助用户快速地编写数学公式和相关内容,并且具有很好的兼容性和可扩展性。
中文latex模板

中文latex模板中文LaTeX模板。
LaTeX是一种专业的排版软件,它在科技论文、学术期刊、书籍排版等领域有着广泛的应用。
对于大部分中文用户来说,使用中文LaTeX模板可以更方便地进行排版工作。
本文将介绍一些常用的中文LaTeX模板,帮助用户更快速地上手使用LaTeX进行中文排版。
一、CTeX套装。
CTeX是一个专门为中文TeX用户准备的一整套软件和宏包的集合。
它包括了编译器、编辑器、字体等一系列工具,可以帮助用户轻松地进行中文文档的排版。
CTeX套装提供了丰富的文档模板,用户可以根据需要选择合适的模板进行使用。
二、XeLaTeX。
XeLaTeX是一种基于LaTeX的排版系统,它支持Unicode编码,可以直接使用系统安装的字体。
对于中文用户来说,XeLaTeX是一种非常方便的排版工具,可以直接使用中文字体进行排版,而不需要进行繁琐的配置。
同时,XeLaTeX也有很多中文模板可供选择,用户可以根据自己的需求进行选择和修改。
三、Beamer。
Beamer是一种用于制作演示文稿的LaTeX文档类。
对于需要制作中文幻灯片的用户来说,Beamer提供了多种中文模板,可以帮助用户快速制作出美观、专业的中文演示文稿。
用户可以根据自己的需求选择合适的模板进行使用,并且可以通过修改模板文件来进行个性化定制。
四、模板的使用。
在使用中文LaTeX模板时,用户需要注意一些基本的使用方法。
首先,要确保自己的LaTeX系统已经安装了相应的中文字体和宏包。
其次,要了解模板的基本结构和使用方法,可以通过阅读模板的说明文档来进行学习。
最后,要灵活运用模板,根据自己的需求进行修改和定制,使得最终的排版效果符合自己的要求。
五、总结。
中文LaTeX模板为用户提供了丰富的选择,可以帮助用户更方便地进行中文文档的排版工作。
无论是科技论文、学术期刊、书籍排版,还是演示文稿制作,都可以通过选择合适的模板来快速完成排版工作。
在使用模板的过程中,用户需要灵活运用,根据自己的需求进行修改和定制,以达到最终的排版效果。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
一个简单的LaTeX+CJK论文模板作者:于江生(北京大学计算机系)声明:允许未经作者的同意进行非商业目的的转载,但必须保持原文的完整性。
中文TeX使用者一般的选择是在Windows下用CTeX,在UNIX下用teTeX+laTeX-CJK。
CJK是德国人Werner Lemberg 研发的,和几乎所有的宏包都能“和平相处”。
下面介绍一个简单的LaTeX+CJK论文模板。
唯一要说明的是,命令\CJKcaption{GB} 是实现章节标题的中文化,但是在FreeBSD下用teTeX编译通不过。
感谢aloft的贡献,他修改的GB.cpx真正实现了章节标题的中文化,使得\CJKcaption{GB}在UNIX和Windows下都没有问题。
UNIX用户可以用aloft的GB.cpx替换/usr/local/share/texmf/tex/latex/CJK/GB/GB.cpx文件。
从一个简单的LaTeX+CJK论文模板出发,你会发现用TeX写作是一件非常令人愉悦的事情。
以下模板在FreeBSD下用teTeX编译通过,在Windows下用CTeX也编译通过。
欢迎测试和使用,任何方面的改进都是鼓励的。
你可以对照本模板生成的pdf文件。
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%% 目的: LaTeX+CJK中文论文模板%%%% 文件: Template4CJK.tex %%%% 日期: 10-01-2008 %%%% 整理: 于江生%%%% 系统: FreeBSD+teTeX %%%% %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\iffalse % 块注释如果要注释一块文字,用\iffalse ... \fi 界定住要注释的文字。
特别提醒:以下设置的次序不能乱,否则会引发冲突,影响到编译是否成功。
\fi\documentclass[a4paper,11pt, % A4纸twoside, % 双面% openany % 新章节在偶数页开始]{article}%%%%%%%%%% 版面控制%%%%%%%%%%\usepackage{indentfirst} % 首行缩进\iffalse\usepackage[%paperwidth=18.4cm, paperheight= 26cm,body={14.6true cm,22true cm},twosideshift=0 pt,%headheight=1.0true cm]{geometry}\fi\usepackage[perpage,symbol]{footmisc}% 脚注控制\usepackage[sf]{titlesec} % 控制标题\usepackage{titletoc} % 控制目录\usepackage{fancyhdr} % 页眉页脚\usepackage{type1cm} % 控制字体大小\usepackage{indentfirst} % 首行缩进\usepackage{makeidx} % 建立索引\usepackage{textcomp} % 千分号等特殊符号\usepackage{layouts} % 打印当前页面格式\usepackage{bbding} % 一些特殊符号\usepackage{cite} % 支持引用\usepackage{color,xcolor} % 支持彩色文本、底色、文本框等\usepackage{listings} % 粘贴源代码\lstloadlanguages{} % 所要粘贴代码的编程语言\lstset{language=,tabsize=4, keepspaces=true,xleftmargin=2em,xrightmargin=2em, aboveskip=1em,backgroundcolor=\color{lightgray}, % 定义背景颜色frame=none, % 表示不要边框keywordstyle=\color{blue}\bfseries,breakindent=22pt,numbers=left,stepnumber=1,numberstyle=\tiny,basicstyle=\footnotesize,showspaces=false,flexiblecolumns=true,breaklines=true, breakautoindent=true,breakindent=4em,escapeinside={/*@}{@*/}}%%%%%%%%%% 字体支持%%%%%%%%%%%%%\usepackage{ccmap} % 使pdfLatex生成的文件支持复制等\usepackage{CJK,CJKnumb,CJKulem} % 中文支持\usepackage{times} % 包括Times Roman + Helvetica + Courier%\usepackage{palatino} % 包括Palatino + Helvetica + Courier%\usepackage{newcent} % 包括New Century Schoolbook + Avant Garde + Courier %\usepackage{bookman} % 包括Bookman + Avant Garde + Courier %%%%%%%%%% 数学符号公式%%%%%%%%%%\usepackage{latexsym}\usepackage{amsmath} % AMS LaTeX宏包\usepackage{amssymb} % 用来排版漂亮的数学公式\usepackage{amsbsy}\usepackage{amsthm}\usepackage{amsfonts}\usepackage{mathrsfs} % 英文花体字体\usepackage{bm} % 数学公式中的黑斜体\usepackage{relsize} % 调整公式字体大小:\mathsmaller, \mathlarger \usepackage{caption2} % 浮动图形和表格标题样式%%%%%%%%%% 图形支持宏包%%%%%%%%%%\ifx\pdfoutput\undefined % 用latex或pdflatex编译\usepackage[dvips]{graphicx} % 将eps格式的图片放在figures目录下\else % 在setup/format.tex中用以下命令注明路径:\usepackage[pdftex]{graphicx} % \graphicspath{{figures/}}\fi%\usepackage{subfigure}\usepackage{epsfig} % 支持eps图像%\usepackage{picinpar} % 图表和文字混排宏包%\usepackage[verbose]{wrapfig} % 图表和文字混排宏包%\usepackage{eso-pic} % 向文档的部分页加n副图形, 可实现水印效果%\usepackage{eepic} % 扩展的绘图支持%\usepackage{curves} % 绘制复杂曲线%\usepackage{texdraw} % 增强的绘图工具%\usepackage{treedoc} % 树形图绘制%\usepackage{pictex} % 可以画任意的图形%\usepackage{hyperref}%%%%%%%%%% 一些距离设置%%%%%%%%%%%\setlength{\floatsep}{10pt plus 3pt minus 2pt} % 图形之间或图形与正文之间的距离\setlength{\abovecaptionskip}{2pt plus 1pt minus 1pt}% 图形中的图与标题之间的距离\setlength{\belowcaptionskip}{3pt plus 1pt minus 2pt}% 表格中的表与标题之间的距%%%%%%%%%% 纸张和页面的大小%%%%%%%%%%%\paperwidth 20 true cm % 纸张宽%\paperheight 30 true cm % 纸张高%\textwidth 10 true cm % 正文宽%\textheight 20 true cm % 正文高%\headheight 14pt % 页眉高%\headsep 16pt % 页眉距离%\footskip 27pt % 页脚距离%\marginparsep 10pt % 边注区距离%\marginparwidth 100pt % 边注区宽\makeindex % 生成索引\pagestyle{fancy} % 页眉页脚风格\fancyhf{} % 清空当前页眉页脚的默认设置%%%%%%%%%% 导入中文环境%%%%%%%%%%\AtBeginDocument{\begin{CJK*}{GBK}{song} % 不计中文的空格\CJKindent % 首行缩进两个汉字\sloppy\CJKspace % 中英文混排的断行\CJKtilde % 重新定义~,用~隔开中英文\CJKcaption{GB} % 章节标题的中文化}\AtEndDocument{\end{CJK*}}%%%%%%%%%% 正文%%%%%%%%%%\begin{document}%%%%%%%%%% 一些新定义%%%%%%%%%%\newcommand{\song}{\CJKfamily{song}} % 宋体\newcommand{\hei}{\CJKfamily{hei}} % 黑体\newcommand{\fs}{\CJKfamily{fs}} % 仿宋\newcommand{\kai}{\CJKfamily{kai}} % 楷体%%%%%%%%%% 定理类环境的定义%%%%%%%%%%%% 必须在导入中文环境之后\newtheorem{example}{例} % 整体编号\newtheorem{algorithm}{算法}\newtheorem{theorem}{定理}[section] % 按section 编号\newtheorem{definition}{定义}\newtheorem{axiom}{公理}\newtheorem{property}{性质}\newtheorem{proposition}{命题}\newtheorem{lemma}{引理}\newtheorem{corollary}{推论}\newtheorem{remark}{注解}\newtheorem{condition}{条件}\newtheorem{conclusion}{结论}\newtheorem{assumption}{假设}%%%%%%%%%% 一些重定义%%%%%%%%%%%% 必须在导入中文环境之后\renewcommand{\contentsname}{目录} % 将Contents改为目录\renewcommand{\abstractname}{摘\ \ 要} % 将Abstract改为摘要\renewcommand{\refname}{参考文献} % 将References改为参考文献\renewcommand{\indexname}{索引}\renewcommand{\figurename}{图}\renewcommand{\tablename}{表}\renewcommand{\appendixname}{附录}\renewcommand{\proofname}{\hei 证明}\renewcommand{\algorithm}{\hei 算法}%%%%%%%%%% 重定义字号命令%%%%%%%%%%\newcommand{\yihao}{\fontsize{26pt}{36pt}\selectfont} % 一号, 1.4倍行距\newcommand{\erhao}{\fontsize{22pt}{28pt}\selectfont} % 二号, 1.25倍行距\newcommand{\xiaoer}{\fontsize{18pt}{18pt}\selectfont} % 小二, 单倍行距\newcommand{\sanhao}{\fontsize{16pt}{24pt}\selectfont} % 三号, 1.5倍行距\newcommand{\xiaosan}{\fontsize{15pt}{22pt}\selectfont} % 小三, 1.5倍行距\newcommand{\sihao}{\fontsize{14pt}{21pt}\selectfont} % 四号, 1.5倍行距\newcommand{\bansi}{\fontsize{13pt}{19.5pt}\selectfont} % 半四, 1.5倍行距\newcommand{\xiaosi}{\fontsize{12pt}{18pt}\selectfont} % 小四, 1.5倍行距\newcommand{\dawu}{\fontsize{11pt}{11pt}\selectfont} % 大五, 单倍行距\newcommand{\wuhao}{\fontsize{10.5pt}{10.5pt}\selectfont} % 五号, 单倍行距%%%%%%%%%% 页眉和页脚的设置%%%%%%%%%%\lhead{一个~\LaTeX+CJK~的简单模板}\rhead{\TeX~爱好者}\lfoot{用~\LaTeX~写科技论文}\rfoot{~\thepage~}%%%%%%%%%% 论文标题、作者等%%%%%%%%%%\title{用~\LaTeX~写科技论文% 论文标题\thanks{这是一个为初学者写的~\LaTeX+CJK~论文模板,未经作者允许可以随意下载使用并修改传播,目的是让更多的人迅速上手用~\LaTeX~系统写作。