当前位置:   article > 正文

一个简单的latex模板_\\[4pt]

\\[4pt]

这是一个简单的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\vskip 20\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]{\scriptsize firefox}
\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
\Dtrigonal{0==C;1D==O;2==Cl;3==F}\\[4pt]

\ethylene{1==C;2==C}
{1==F;2==Cl;3==H;4==Br}
\qquad
\ethylenev[t{2+}]{1==C;2==N}
{1==H$_3$C;2==CH$_3$;3==H} \\[4pt]
\clearpage

\end{CJK*}
\end{document}

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家自动化/article/detail/238040?site
推荐阅读
相关标签
  

闽ICP备14008679号