LaTex模板.docx

上传人:b****4 文档编号:3807952 上传时间:2023-05-06 格式:DOCX 页数:26 大小:207.55KB
下载 相关 举报
LaTex模板.docx_第1页
第1页 / 共26页
LaTex模板.docx_第2页
第2页 / 共26页
LaTex模板.docx_第3页
第3页 / 共26页
LaTex模板.docx_第4页
第4页 / 共26页
LaTex模板.docx_第5页
第5页 / 共26页
LaTex模板.docx_第6页
第6页 / 共26页
LaTex模板.docx_第7页
第7页 / 共26页
LaTex模板.docx_第8页
第8页 / 共26页
LaTex模板.docx_第9页
第9页 / 共26页
LaTex模板.docx_第10页
第10页 / 共26页
LaTex模板.docx_第11页
第11页 / 共26页
LaTex模板.docx_第12页
第12页 / 共26页
LaTex模板.docx_第13页
第13页 / 共26页
LaTex模板.docx_第14页
第14页 / 共26页
LaTex模板.docx_第15页
第15页 / 共26页
LaTex模板.docx_第16页
第16页 / 共26页
LaTex模板.docx_第17页
第17页 / 共26页
LaTex模板.docx_第18页
第18页 / 共26页
LaTex模板.docx_第19页
第19页 / 共26页
LaTex模板.docx_第20页
第20页 / 共26页
亲,该文档总共26页,到这儿已超出免费预览范围,如果喜欢就下载吧!
下载资源
资源描述

LaTex模板.docx

《LaTex模板.docx》由会员分享,可在线阅读,更多相关《LaTex模板.docx(26页珍藏版)》请在冰点文库上搜索。

LaTex模板.docx

LaTex模板

LaTex初学者模板

这是LaTex初学者模板,把下面的内容拷贝到一个空白的.tex文件,然后用latex编译,再用dvi2pdf生成pdf文件,而且下面基本没一句话都有解析,值得研究.原文地址在这里.

%a4paper-A4纸 11pt-字体twoside-双面openany-新章节可在偶数页开始

\documentclass[a4paper,11pt,twoside,openany]{article}

%——————————纸张大小———————————-

%定义转换成pdf文档的纸张大小,应与\paperwidth\paperheight一致

%\special{pdf:

pagesizewidth20cmheight30cm}

%true的含义是保持尺寸不会随一些参数的变化而变化,具体可见Knuth的TeXbook

%\paperwidth20truecm                 %纸张宽

%\paperheight30truecm                %纸张高

%——————————页面布局———————————-

%\textwidth10truecm                  %正文宽

%\textheight20truecm                 %正文高

%\headheight 14pt                      %页眉高

%\headsep   16pt                       %页眉距离

%\footskip  27pt                       %页脚距离

%\marginparsep10pt                     %边注区距离

%\marginparwidth 100pt                 %边注区宽

%—————————-页边空白调整——————————-

\def\marginset#1#2{                     %页边设置\marginset{left}{top}

\setlength{\oddsidemargin}{#1}        %左边(书内侧)装订预留空白距离

\iffalse                  %如果考虑左侧(书内侧)的边注区则改为\iftrue

\reversemarginpar

\addtolength{\oddsidemargin}{\marginparsep}

\addtolength{\oddsidemargin}{\marginparwidth}

\fi

 \setlength{\evensidemargin}{0mm}      %置0

\iffalse                  %如果考虑右侧(书外侧)的边注区则改为\iftrue

\addtolength{\evensidemargin}{\marginparsep}

\addtolength{\evensidemargin}{\marginparwidth}

\fi

 %\paperwidth=h+\oddsidemargin+\textwidth+\evensidemargin+h

\setlength{\hoffset}{\paperwidth}

\addtolength{\hoffset}{-\oddsidemargin}

\addtolength{\hoffset}{-\textwidth}

\addtolength{\hoffset}{-\evensidemargin}

\setlength{\hoffset}{0.5\hoffset}

\addtolength{\hoffset}{-1in}          %h=\hoffset+1in

 \setlength{\voffset}{-1in}            %0=\voffset+1in

\setlength{\topmargin}{\paperheight}

\addtolength{\topmargin}{-\headheight}

\addtolength{\topmargin}{-\headsep}

\addtolength{\topmargin}{-\textheight}

\addtolength{\topmargin}{-\footskip}

\addtolength{\topmargin}{#2}          %上边预留装订空白距离

\setlength{\topmargin}{0.5\topmargin}

}

%调整页边空白使内容居中,两参数分别为纸的左边和上边预留装订空白距离

\marginset{10mm}{12mm}

%—————————–字体支持———————————–

\usepackage{times}                      %使用TimesNewRoman字体

\usepackage{CJK,CJKnumb,CJKulem}        %中文支持宏包

%\usepackage{ccmap}                     %使pdfLatex生成的文件支持复制等

%\usepackage[mtbold,mtpluscal,mtplusscr]{mathtime}%数学环境用TimesNewRoman

%—————————–页眉页脚———————————–

\usepackage{fancyhdr}                   %页眉页脚相关宏包

\pagestyle{fancy}                       %页眉页脚风格

%—————————–段落字体格式——————————-

\usepackage{color}                      %支持彩色

\usepackage{indentfirst}                %首行缩进宏包

%\setlength{\parindent}{2em}            %段落缩进

\setlength{\parskip}{0.7explus0.3exminus0.3ex}%段落间距

%\linespread{1.2}                       %行距倍数

\renewcommand{\baselinestretch}{1.2}    %行距倍数(同上)

%\renewcommand{\CJKglue}{\hskip0ptplus0.08\baselineskip}%汉字字距

%\newcommand{\aaa}{这是测试}            %自定义文字块例子

\newcommand{\song}{\CJKfamily{song}}    %宋体

\newcommand{\hei}{\CJKfamily{hei}}      %黑体

\newcommand{\fs}{\CJKfamily{fs}}        %仿宋

\newcommand{\kai}{\CJKfamily{kai}}      %楷体

\newcommand{\li}{\CJKfamily{li}}        %隶书

\newcommand{\you}{\CJKfamily{you}}      %幼圆

\newcommand{\wuhao}{\fontsize{10.5pt}{12.6pt}\selectfont}     %五号字体

\newcommand{\xiaosi}{\fontsize{12pt}{14pt}\selectfont}        %小四字体

\newcommand{\sihao}{\fontsize{14pt}{\baselineskip}\selectfont}%四号字体

%\marginparpush                         %

%—————————–超链接和标签——————————-

\iffalse%将这里改为\iftrue即可使用

\ifx\pdfoutput\undefined%Notrunpdftex

% \ifx

%   \usepackage[dvips]{hyperref}

% \else

\usepackage[dvipdfm]{hyperref}

% \fi

\AtBeginDvi{\special{pdf:

tounicodeGBK-EUC-UCS2}}%GBK->Unicode

\else

\usepackage[pdftex]{hyperref}

\fi

\hypersetup{CJKbookmarks,%

bookmarksnumbered,%

colorlinks,%

linkcolor=blue,%

citecolor=blue,%

hyperindex,%

plainpages=false,%

pdfstartview=FitH}

\fi

%——————————–注释————————————

\iffalse%将这里改为\iftrue即可使用

%注释掉一段内容

\usepackage{verbatim}

\begin{comment}

Thisisacommentexample.

\end{comment}

\fi

%\makeatletter%@isnowanormal“letter”forTex

%\makeatother %@isrestoredasa“non-letter”forTex

%——————————–其他宏包——————————–

%\usepackage{amsmath,amsthm,amsfonts,amssymb,bm}%数学宏包

%\usepackage{graphicx,psfrag}                   %图形宏包

%\usepackage{makeidx}                           %建立索引宏包

%\usepackage{listings}                          %源代码宏包

%———————————正文———————————–

\begin{document}%开始正文

%song-宋体hei-黑体fs-仿宋kai-楷体li-隶书you-幼圆com为song+hei

\begin{CJK*}{GBK}{com}                          %开始中文环境

\CJKtilde                                       %重定义~代表的空白距离

\CJKindent                                      %段首缩进

\CJKcaption{GB}                                 %中文章节标题

\author{ceo}                                    %作者

\title{一个latex例子}                           %题目

\maketitle                                      %生成标题

%\thispagestyle{empty}                          %设置首页的页眉页脚风格

%\setlength{\baselineskip}{3explus1exminus1ex}%调整行距

\TeX{}~是由图灵奖得主\index{Knuth,DonaldE.}~DonaldE.Knuth\cite{texbook}~

编写的计算机程序,用于文章和数学公式的排版。

1977~年~Knuth~开始编写~\TeX{}~排版系统引擎的时候,\\%换行

是为了探索当时正开始进入出版工业的数字印刷设备的潜力。

\newline%换行

他特别希望能因此扭转那种排版质量下降的趋势,使自己写的书和文章免受其害。

\noindent%不缩进

%下面是特殊字符#$%^&_{}~\ …的输入

\#\$\%\^{}\&\_\{\}\~{}$\backslash$\ldots

\indent  %恢复缩进

%不用CJKulem包时,\textit{我a}或\emph{我a}或{\em我a}使英文斜体、中文变字体

%用CJKulem包后,\textit{我a}依然是英文斜体、中文变字体,后两者变为加下划线

\textit{中文textit}\emph{中文emph}{\em中文em}

\textbf{粗体textbf}%粗体,对于中文推荐用黑体字代替粗体

\uline{下划线uline}%下划线(需要CJKulem包)

\textcolor{yellow}{黄yellow}%颜色(需要color包)

{\color{blue}蓝blue}{\color{red}红red}{\color{green}绿green}

{\hei黑体}{\sihao四号}{\song\xiaosi宋体小四}%字体大小

{\tinyhi}{\smallhi}{\normalsizehi}{\largehi}{\Largehi}{\hugehi}

\clearpage%换页,\newpage也可以,推荐\clearpage

我们现在使用的~\TeX{}~系统是在~1982~年发布的,1989~年又略作改进,增进了

对~8~字节字符和多语言的支持。

\TeX{}~以具有优异的稳定性,可以在各种不同

类型的计算机上运行,以及几乎没有错误而著称。

\TeX{}~的版本号不断趋近于~$\pi$,

现在为$3.14159$。

\clearpage

\end{CJK*}    %结束中文环境

\end{document}%结束正文

一个简单的latex模板

15Oct,2007 NoComment

这是一个简单的latex模板,这里有设置页眉,页脚的范例,用命令将”abstract”设置成”摘要”(\renewcommand\abstractname{摘要}),还有中文日期的设置(\renewcommand\today{\number\year年\number\month月\number\day日}), 在latex中书写化学式的例子.等等.值得大家参考.模板转自于这里.

\documentclass[english,12pt]{article}

\usepackage[T1]{fontenc}

\usepackage[latin1]{inputenc}

\usepackage{geometry}

\geometry{verbose,a4paper,tmargin=2cm,bmargin=2cm,lmargin=2cm,rmargin=2cm}

\pagestyle{empty}

\usepackage{graphicx}

\usepackage[collision]{chemsym}

\usepackage{hetarom,carom,epic,ccycle,aliphat}

\usepackage{CJK}

\usepackage{fancyhdr}

\usepackage{indentfirst}

\makeatletter

\@addtoreset{equation}{section}

\renewcommand{\theequation}{\thesection.\arabic{equation}}

\makeatother

\usepackage{babel}

\begin{document}

\begin{CJK*}{GBK}{song}

\renewcommand\contentsname{目录}

\renewcommand\listfigurename{插图目录}

\renewcommand\listtablename{表格目录}

\renewcommand\refname{参考文献}

\renewcommand\indexname{索引}

\renewcommand\figurename{图}

\renewcommand\tablename{表}

\renewcommand\abstractname{摘要}

\renewcommand\partname{部分}

\renewcommand\appendixname{附录}

\renewcommand\today{\number\year年\number\month月\number\day日}

\providecommand{\CJKnumber}[1]{\ifcase#1\or{一}\or{二}\or{三}\or{四}\or{五}\or{六}\or{七}\or{八}\or{九}\or{十}\fi}

\makeatletter

\def\chaptermark#1{\markboth{\MakeUppercase{\ifnum\c@secnumdepth>\m@ne\if@mainmatter第\CJKnumber{\thechapter}章\\fi\fi#1}}{}}

\def\sectionmark#1{\markright{\MakeUppercase{\ifnum\c@secnumdepth>\z@\S\thesection\\fi#1}}}

\def\@makechapterhead#1{\vspace*{50\p@}{\parindent\z@\raggedright\normalfont

\ifnum\c@secnumdepth>\m@ne\if@mainmatter\huge\bfseries第\CJKnumber{\thechapter}章\\\par\nobreak\vskip20\p@\fi\fi\interlinepenalty\@M\Huge\bfseries#1\par\nobreak\vskip40\p@}}

\makeatother

\pagestyle{fancy}\fancyhead{}

\fancyfoot{}\renewcommand{\chaptermark}[1]{\markboth{#1}{}}

\renewcommand{\sectionmark}[1]{\markright{\thesection\#1}}

\fancyhf{}

\fancyhead[LE,RO]{\thepage}

\fancyhead[LO]{\bfseries\CJKfamily{song}\rightmark}

\fancyhead[RE]{\bfseries\CJKfamily{song}\leftmark}

\fancyfoot[LE]{\footnotesize\CJKfamily{song}cod}

\fancyfoot[LO]{\footnotesize\CJKfamily{song}doc}

\fancyfoot[RO]{\scriptsizefirefox}

\renewcommand\headrulewidth{0.4pt}

\renewcommand\footrulewidth{0pt}

\title{学习笔记}

\author{firefox}

\maketitle

\section{引言}

%\thispagestyle{fancy}

$\lambda\!

\!

\!

\raisebox{.5ex}{–}\,$

\bzdrh{1==Br;4==Br}\bzdrv{1==Br;4==Br}

\bzdrv[l]{1==Br;4==Br}\bzdrv[c]{1==Br;4==Br}\\[4pt]

\bzdrv[pa]{1D==O;4D==%

\lmoiety{CH$_{3}$SO$_{2}$–N};%

2==CH$_{3}$}

\bzdrv[pa]{1D==O;4D==%

\rmoiety{N–SO$_{2}$CH$_{3}$};%

2==CH$_{3}$}\\[4pt]

\cyclohexanev{1==1;%

2d==2D;%

3A==3A;%

4B==4B;%

5Sa==5Sa;5Sb==5Sb;%

6Sa==6Sa;6Sb==6Sb}\\[4pt]

\cyclohexaneh

[bdf]{1==Br;4==Br}

\cyclohexanev

[A]{1==Br;4==Br}\\[4pt]

\sixheterov[eb]{1==N}

{1D==0;

4SA==MeO;4SB==OMe;

5==C1;

6==Cl}

\threehetero[H]{2==C}

{2Sa==COOH;2Sb==COOH}\\[4pt]

\pyrazinev[l{1+}{4+}]

{1==H;4==H;2==Cl;6==Cl}\\[4pt]

\cyclohexanev

{1D==O;2Sa==F;2Sb==F}

\cyclohexaneh[c]

{1==Cl;4==F;2==CH$_{3}$}\\[4pt]

\naphdrv[ob]

{1Sb==Br;1Sa==Br;3D==O}

\naphdrh[A]

{1==Cl;4==F;2==CH$_{3}$}\\[4pt]

\decaheterov[af]{4==O}

{1==CH$_3$;6==H$_3$C;9A==H;%

{{10}A}==\lmoiety{HOCH$_2$}}

\nonaheterov[bjge]{1==S;2==N}{3==Cl}\\[4pt]

\chair{1D==O;%

2Se==H$_3$C;2Sa==CH$_3$;%

6Se==CH$_3$;6Sa==CH$_3$}\\[4pt]

\tetrahedral{0==C;1D==O;2==Cl;%

4==Cl}

\qquad

\tetrahedral[{0+}]{0==N;%

1==H;2==CH$_3$;3==H;4==H}

\square{0==C;1D==O;2==Cl;4==Cl}\\[4pt]

\rtrigonal{0==C;1D==O;2==Cl;3==F}

\qquad

\ltrigonal{0==C;1D==O;2==Cl;3==F}

\utrigonal{0==C;1D==O;2==Cl;3==F}

\Utrigonal{0==C;1D==O;2==Cl;3==F}

\dtrigonal{0==C;1D==O;2==Cl;3==F}

\qquad

\Dtr

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 解决方案 > 学习计划

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2