`
lc52520
  • 浏览: 369210 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

latex常用样式

阅读更多

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%一些最基本的环境
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%居中环境
\begin{center}

\end{center}
%左对齐环境
\begin{flushleft}

\end{flushleft}
%右对齐环境
\begin{flushright}

\end{flushright}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%小页环境(可嵌入上面那三种环境中形成组合)
\begin{minipage}{**cm}

\end{minipage}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%列举样式
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% itemize 列举样式1:· · · ·
\begin{itemize}
\vspace{-2.8mm}\item
\vspace{-2.8mm}\item
\end{itemize}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% itemize 列举样式2:*  *  *  *
\begin{itemize}
\vspace{-2.8mm}\item[*]
\vspace{-2.8mm}\item[**]
\end{itemize}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% itemize 列举样式3:任意符号
\begin{itemize}
\renewcommand\labelitemi{}%这里面写符号
\vspace{-2.8mm}\item
\vspace{-2.8mm}\item
\end{itemize}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% itemize 列举样式4:彩色符号
\begin{itemize}
\setlength\baselineskip{12pt} %用这个命令来调整间距应该比较具有通用性
  \item[\textcolor{black}{$\spadesuit$}]  文字。。。
  \item[\textcolor{red}{$\heartsuit$}]  文字。。。
  \item[\textcolor{black}{$\clubsuit$}]  文字。。。
  \item[\textcolor{red}{$\diamondsuit$}] 文字。。。
\end{itemize}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% enumerate 列举样式1:1. 2. 3. 4.
\begin{enumerate}
\vspace{-2.8mm}\item
\vspace{-2.8mm}\item
\end{enumerate}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% enumerate 列举样式2:(1) (2) (3) (4)
\begin{enumerate}
\renewcommand\labelenumi{    \theenumi    }%就在前面那个括号的空格处加符号
%\setlength\itemindent{}%这个会使列举的左移或右移指定的距离
\vspace{-2.8mm}\item
\vspace{-2.8mm}\item
\end{enumerate}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%图形插入样式
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%图形排版样式1:定点
%图形排版时名称一般都在下方
\begin{center}
\includegraphics[width=10cm,height=6cm]{*.eps}%就在前面括号中写图片名
\renewcommand{\figurename}{图}
\caption{}
\label{}
\end{center}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%图形排版样式2:浮动
%图形排版时名称一般都在下方
\begin{figure}
\begin{center}
\includegraphics[width=10cm,height=6cm]{*.eps}%就在前面括号中写图片名
\renewcommand{\figurename}{图}
\caption{}
\label{}
\end{center}
\end{figure}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%图形排版样式3:两个图片并列,统一取名
%图形排版时名称一般都在下方
\begin{figure}
\begin{center}
\begin{minipage}[c]{0.5\textwidth}
\centering\includegraphics[width=5cm,height=3cm]{*.eps}%就在前面括号中写图片名
\end{minipage}%
\begin{minipage}[c]{0.5\textwidth}
\centering\includegraphics[width=5cm,height=3cm]{*.eps}%就在前面括号中写图片名
\end{minipage}
\renewcommand{\figurename}{图}
\caption{}
\label{}
\end{center}
\end{figure}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%图形排版样式4:两个图片并列,分别取名
%图形排版时名称一般都在下方
\begin{figure}
\begin{center}
\begin{minipage}[c]{0.5\textwidth}
\centering\includegraphics[width=5cm,height=3cm]{}%就在前面括号中写图片名
\renewcommand{\figurename}{图}
\caption{ }
\label{}
\end{minipage}%
\begin{minipage}[c]{0.5\textwidth}
\centering\includegraphics[width=5cm,height=3cm]{}%就在前面括号中写图片名
\renewcommand{\figurename}{图}
\caption{ }
\label{}
\end{minipage}
\end{center}
\end{figure}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%图形排版样式5:两个图片作为子图并列,分别取名。四个可形成图形阵列。在下方有一个总名称
\begin{figure}
\centering
\subfigure[子标题]{\includegraphics[width=0.45\textwidth]{*.eps}}
%\mbox{\hspace{0.5cm}}
\subfigure[子标题]{\includegraphics[width=0.45\textwidth]{*.eps}}
\\
\subfigure[子标题]{\includegraphics[width=0.45\textwidth]{*.eps}}
%\mbox{\hspace{0.5cm}}
\subfigure[子标题]{\includegraphics[width=0.45\textwidth]{*.eps}}
\renewcommand{\figurename}{图}
\caption{总标题}
\label{}
\end{figure}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%图形排版样式6:图片在盒子中
\begin{figure}
\begin{center}
\fbox{\includegraphics[width=10cm,height=6cm]{*.eps}}%就在前面括号中写图片名
\renewcommand{\figurename}{图}
\caption{}
\label{}
\end{center}
\end{figure}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%图形排版样式7:图文混排,段落插入图片用picins宏包和\parpic命令
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
\parpic{%
\includegraphics[width=3.0cm]%
{*.eps}}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 表格样式
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 基本表格样式
% 在下面那个括号中,用|表示画竖线,而l表示单元格中的内容在单元格中左对齐,
% c表示单元格中的内容在单元格中中对齐,r表示单元格中的内容在单元格中右对齐。
% 如|c|c|c|就表示画一个3列有竖线的表,当然|也可略,就不画竖线出来;
% 用\hline画横线,一般是表的一行内容输入完并强制换行(\\)后,在后面写
% \hline,然后后面再写下一行内容。当然\hline也可略,就不画横线出来;
% 下面这个表格是一个3行3列的表格
\begin{tabular}{|c|c|c|}
\hline
*** & *** & ***\\
\hline
*** & *** & ***\\
\hline
*** & *** & ***\\
\end{tabular}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 下面这种形式可以指定表格的宽度。在下面那个括号中写上0.5\textwidth
% 就可得到一个半张纸宽的一个表格;
% 写上\textwidth就可得到一个整张纸宽的一个表格。
\begin{tabular*}{***}{|c|c|c|}
\hline
*** & *** & ***\\
\hline
*** & *** & ***\\
\hline
*** & *** & ***\\
\end{tabular*}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 表格样式1:标题在图表上方,去掉了冒号
\begin{table}
\begin{center}
%\makeatletter\def\@captype{table}\makeatother
\renewcommand{\tablename}{表}
\caption{}
\label{}
\begin{tabular}{}

\end{tabular}
\end{center}
\end{table}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%表格样式2:用tabularx宏包
\begin{center}
\begin{tabularx}{350pt}{|c|X|c|X|}
\hline
\multicolumn{2}{|c|}{Multicolumn entry!}& THREE& FOUR\\
\hline
one&
\raggedright\arraybackslash\setlength\baselineskip{12pt}
The width of this column depends on the width of the table.& three&
\raggedright\arraybackslash\setlength\baselineskip{12pt}
Column four will act in the same way as column two, with the same width. \\
\hline
\end{tabularx}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%表格样式3:高级表格控制
\begin{table}
\begin{center}
\scriptsize
\renewcommand{\arraystretch}{1.3}
\caption{Quasi-normal frequencies for the scalar perturbation in
the stationary Schwarzschild background. \label{tab:1}}
\begin{tabularx}{380pt}{*{5}{>{\centering\arraybackslash}X|}>{\centering\arraybackslash}X}
\hline &&\multicolumn{2}{c|}
{\textbf{Exact solution}}&\multicolumn{2}{c}{\textbf{Numerical solution}} \\
\hline
$\sqrt{M}$&$m$&$\omega_R$&$\omega_I$&$\omega_R$&$\omega_I$ \\
\hline
0.2&1&1&-0.4&1.002&-0.400 \\
0.4&1&1&-0.8&0.965&-0.799 \\
0.4&2&2&-0.8&2.003&-0.800 \\
0.4&3&3&-0.8&3.004&-0.800 \\
0.4&4&4&-0.8&4.005&-0.800 \\
0.5&2&2&-1&1.999&-1.000 \\
0.5&3&3&-1&2.993&-1.000 \\
0.5&4&4&-1&4.007&-1.000 \\
1&4&4&-2&4.004&-2.001 \\
2&10&10&-4&10.014&-4.001 \\
3&10&10&-6&10.028&-6.011 \\
4&10&10&-8&9.973&-7.983 \\
\hline
\end{tabularx}
\end{center}
\end{table}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%公式样式

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%摘引环境1:段摘引
\begin{verbatim}


\end{verbatim}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%摘引环境2:行内摘引
\verb|*********|
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%程序清单样式
\lstset{language=matlab}
\begin{lstlisting}[frame=trBL]{}
clf;
k=-80:80;
a(k~=0)=sin(pi*k(k~=0)/2)./(k(k~=0)*pi);
a(k==0)=0.5;
stem(k,a);
t=-3:0.01:3
\end{lstlisting}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%  参考文献样式
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\small
\renewcommand\refname{\hei 参考文献}
\begin{thebibliography}{99}
\setlength{\parskip}{0pt}  %段落之间的竖直距离
\bibitem{tang}
\bibitem{liu}
\end{thebibliography}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 参考文献结束
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

分享到:
评论

相关推荐

    Latex常用模板下载

    本资源包含了一系列常用的LaTeX模板,可以帮助用户快速搭建文档结构,提高工作效率。 在LaTeX中,模板扮演着至关重要的角色。它们是预设的布局和格式,适用于特定类型的文档,如论文、报告、简历、幻灯片等。使用...

    Latex常用包说明.zip

    "Latex常用包说明.zip"这个压缩包很可能是为了帮助用户理解并有效利用LaTeX中的常用包。下面将详细介绍一些LaTeX中不可或缺的常用包。 1. **amsmath**: 这是用于数学公式的标准包,它提供了更复杂的数学环境,如...

    latex心得 latex心得 latex心得

    本文将从多个方面分享使用LaTeX的心得体会,包括但不限于安装配置、常用技巧、高级应用等。 #### 一、LaTeX的基础配置与环境搭建 ##### CJK与Emacs的集成 - **CJK**: 是一套支持中文排版的LaTeX宏包,能够帮助用户...

    latex常用模板(简历-论文-讲座-问题集).zip

    这份"latex常用模板(简历-论文-讲座-问题集).zip"压缩包包含了几个关键领域的LaTeX模板,对于正在进行毕业设计的学生来说,这些模板将是非常实用的资源。 首先,让我们详细了解一下每个模板: 1. **简历模板**:...

    LaTeX常用宏包全攻略:提升文档排版的神器

    LaTeX使用一种特殊的标记语言来描述文档的结构和样式,这使得它在排版复杂文档时比传统的文字处理软件更为高效和精确。然而,这也意味着用户需要学习LaTeX的语法和命令。尽管有学习曲线,但许多科研工作者和学者认为...

    2024最新美赛latex模板

    LaTeX模板提供了一系列优化过的排版设置,比如合理的字体和行距、美观的标题和章节样式等,使得报告在视觉上更加专业和美观。不需要花费过多的时间和精力去调整格式和样式,参赛者可以更专注于内容的撰写和表达。 ...

    一款非常不错的Latex转rtf的工具:latex2rtf

    尽管无法完美转换所有LaTeX特性,但其对大部分常用元素的支持使得它成为LaTeX用户与非LaTeX用户之间协作的理想桥梁。 需要注意的是,由于LaTeX的复杂性和RTF的局限性,转换过程可能会遇到一些挑战,如某些特殊字体...

    93分钟学会LATEX2 LATEX2入门指南 使用

    - 常用命令和环境:掌握一些基础命令,如`\documentclass{}`,`\begin{document}`和`\end{document}`,以及常用的环境如`equation`、`figure`和`table`。 - 字体和样式:了解如何改变字体大小、样式以及创建列表、...

    Springer 施普林格 期刊的LaTex模版

    使用这些模版撰写论文时,用户需要在LaTeX源文件中加载相应的类文件,设置参考文献样式,然后在文章中插入参考文献。LaTeX会自动处理格式化,生成整洁且一致的输出。对于包含复杂数学表达式的论文,LaTeX的优势尤为...

    CCC-LaTeX-v2.1_latexcls_LaTeX模板_tex_中国控制会议Latex英文模板_

    CCC-LaTeX-v2.1模板可能预加载了一些常用宏包,例如`graphicx`(插入图形),`amsmath`(数学环境),`url`(网址格式化)等。理解这些宏包的用法能更好地利用模板功能。 5. 提交与审阅流程: 完成论文后,作者需...

    ACS杂志的latex模板

    同时,理解LaTeX的基本语法和常用宏包的功能,如`biblatex`(替代BibTeX处理引用)和`graphicx`(处理图像),也有助于提高文档编写的效率和质量。通过不断实践和学习,你将能够充分利用ACS LaTeX模板,创作出符合...

    word-to-latex

    总结来说,“word-to-latex”工具提供了一个便捷的途径,将常用的Word文档转换成专业的LaTeX格式,适合于需要高质量排版和公式处理的场合。通过理解和掌握这个工具,用户可以在不同的文档处理系统之间灵活切换,满足...

    latex英文论文模板

    8. **参考文献(Bibliography)**:LaTeX支持多种引用样式,如APA、MLA等。`biblatex`或`natbib`宏包与`.bib`文件配合,可以自动化管理参考文献。模板中可能已有预设的引用样式和示例参考文献。 9. **编译...

    数学建模常用比赛latex模板合辑.zip

    本合辑"数学建模常用比赛latex模板合辑.zip"提供了一套完整的 LaTeX 模板资源,帮助参赛者快速高效地完成模型报告的撰写。主要包含的文件是 "mcmlatex-master",这是一个 LaTeX 工程目录,里面包含了多个模板和示例...

    latex graphics (latex 作图)

    其中最常用的是EPS格式,这是因为EPS格式支持矢量图形,能够无损地放大或缩小,并且易于与其他LaTeX元素整合。 **1.1 Encapsulated PostScript (EPS)** EPS是一种封装的PostScript格式,它可以嵌入到其他文档中而...

    LaTeX数学试卷排版指南

    ### LaTeX数学试卷排版指南 ...通过对 LaTeX 的基本语法和常用包的掌握,不仅可以提高试卷的质量,还能显著提升工作效率。希望这份指南能帮助你在实际应用中更好地利用 LaTeX 来创建美观且功能齐全的数学试卷。

    LaTex美赛写作模板 经典

    例如,你可以更改标题样式、页眉页脚、页边距,甚至添加自定义命令来简化常用操作。使用Notepad++这样的文本编辑器打开模板文件(.tex格式),可以查看和编辑其源代码,然后再通过LaTeX编译器将文本转换为PDF或其他...

    LaTeX技巧心得 LaTeX技巧心得

    例如,你可以定义新的环境(如`\newtheorem`)或者自定义命令(`\newcommand`)来简化常用操作。 LaTeX中的图形插入也很关键。`graphicx`宏包允许插入外部图像,并通过`\includegraphics[width=<尺寸>,height=<尺寸...

    Latex入门中文版,latex入门教程

    - **包引入**:通过 `\usepackage` 命令可以引入外部的 LaTeX 包,这些包提供了额外的功能和样式选项。 - **样式配置**:文档的样式可以通过 `\documentclass` 后跟不同的选项来进行配置,例如 `\documentclass[12pt...

Global site tag (gtag.js) - Google Analytics