博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Latex: article模板
阅读量:7098 次
发布时间:2019-06-28

本文共 4026 字,大约阅读时间需要 13 分钟。

\documentclass[hyperref,UTF8]{article}\usepackage[colorlinks,linkcolor=blue,anchorcolor=yellow,citecolor=blue,urlcolor=blue]{hyperref}% set hyber link color as 'blue'\usepackage{geometry}% adjust pdf page geometry\usepackage{xcolor}% package to get color\usepackage{graphicx}% package to insert figures\usepackage{listings}% insert source codes using list\usepackage{indentfirst}% zoom out at paragraph's fisrt line\usepackage{float}% figure float effect\usepackage{fancyhdr}% set the page upper and lower line style\usepackage{amsmath}% insert Math functions \usepackage{caption} % caption for figures, auto number fig\numberwithin{equation}{section} % number the equations according to section\lstset{breaklines}\lstset{extendedchars=false}%solve cross line equations\geometry{b5paper,scale=0.85,centering} \pagestyle{fancy}\setlength{\parindent}{2em} %zoom in at the start line\title{article module}\author{Nan}\date{\today}\begin{document}\large %\Huge\huge\LARGE\Large\large\normalsize(default)\small\footnotesize\scriptsize\tiny \maketitle{\Large}\thispagestyle{empty} % hide the page number of first title page\tableofcontents % generate content index\section{citation}Here we test the new citation style\cite{Fielding1996}.Due to the strong neutron radiation's damage to in vessel RMP coil, the DT burning aimed Demo reactor will not take this approach to control ELM burst, while in the current ITER's design, the RMP coil will be applied\cite{Freidberg_Ideal_MHD}.   \section{source code highlight}% --------- code without grammer highlight\begin{lstlisting}int main(){    print('Hello World! /n')}\end{lstlisting}% --------- code with grammer highlight\begin{lstlisting}[ language=C] int main(int argc, char ** argv) {         printf("Hello world! \n");             return 0; } \end{lstlisting}% --------- code with line number and edge box\begin{lstlisting}[language={[ANSI]C},numbers=left, numberstyle=\tiny,keywordstyle=\color{blue!70},commentstyle=\color{red!50!green!50!blue!50},frame=shadowbox, rulesepcolor=\color{red!20!green!20!blue!20}]     int main(int argc, char ** argv)     {                 printf("Hello world! \n");                 return 0;     } \end{lstlisting}\section{equation}* very simple inline equation:$S=\int_{t1}^{t2}L(q,dq/dt,t)dt$\\* line equation:$$S=\int_{t1}^{t2}L(q,dq/dt,t)dt$$* line equation with label\begin{equation}S=\int_{t1}^{t2}L(q,dq/dt,t)dt\end{equation}\section{figure insertion}\subsection{fig draw by latex}draw a curve.\begin{center}    \centering    \fbox{\begin{picture}(120,60)        \put(10,10){\circle*{3}}        \put(50,50){\circle*{3}}        \put(110,10){\circle*{3}}        \thinlines        \put(5,5){\line(1,1){50}}        \put(117.5,5){\line(-3,2){75}}        \thicklines        \qbezier(10,10)(50,50)(110,10)        \end{picture}}    \captionof{figure}{test fig: curve}\end{center}Insert a ruler picture.\begin{center}    \centering    {\unitlength=1cm        \begin{picture}(10,0.7)        \put(0,0){\line(1,0){10}}        \multiput(0,0)(1,0){11}{\line(0,1){0,7}}        \multiput(0,0)(0.5,0){20}{\line(0,1){0.5}}        \multiput(0,0)(0.1,0){100}{\line(0,1){0.3}}        \end{picture}}    \captionof{figure}{test fig: ruler}\end{center}\begin{thebibliography}{l}    \bibitem{BaiduBaikeMaxwellequation}{Baidubaike,Mexwell\url{http://baike.baidu.com/link?url=IaXpxAp8JARmOGSW7cEtJWlNK3O9-6vTnLxyG-8FNIsxCtFmIbWjhTbImV_yR_hQDiZESTQlXWCiy4ShZ_tPH_}}    \bibitem{Colton1996}{A L Colton, R J Buttery, S J Fielding, et al.,Plasma Physics and Controlled Fusion, 1996, Vol.38,P.1359-1365}    \bibitem[Fielding1996paper]{Fielding1996}{S. J. Fielding, J. D. Ashall, P. G. Carolan, et al.,Plasma Physics and Controlled Fusion, 1996, Vol.38,P.1091-1102}    \bibitem{Han2000}{W. E. Han, A. Thyagaraja, S. J. Fielding, et al.,Plasma Physics and Controlled Fusion, 2000, Vol.42,P.181-201}    \bibitem{Guoshuohong}{郭硕鸿,电动力学,北京:2008年6月,第3版,高等教育出版社 P14}    \bibitem{citekey}{details}\end{thebibliography}\end{document}

转载于:https://www.cnblogs.com/docnan/p/7270583.html

你可能感兴趣的文章
34个漂亮的应用程序后台管理界面(系列三)
查看>>
double free or corruption (!prev): 0x080644c8 ***
查看>>
在VMware上搭建iPhone开发环境(转)
查看>>
MongoCola使用教程 1 - MongoDB的基本操作和聚合功能
查看>>
2012年3月份30个优秀的jquery插件集合 功能强大
查看>>
公共的Json操作C#类
查看>>
WebService如何调试及测试工具
查看>>
HDU-2091 水题
查看>>
【转】条件编译#ifdef的妙用详解_透彻
查看>>
jQuery.autocomplete 支持中文输入
查看>>
配置ubuntu的mac主题
查看>>
makefile文件的两种常用书写格式(搜索路径式+递归式)
查看>>
eclipse 快捷键大全,eclipse查找类,文件,添加注释
查看>>
Android4.0蓝牙使能的详细解析
查看>>
Freemarker常用技巧(三)
查看>>
Java Gradle入门指南之依赖管理(添加依赖、仓库、版本冲突) (转)
查看>>
使用反射生成并操作对象
查看>>
开源jabber(XMPP)架设内部即时通讯服务的解决方案
查看>>
行为统计学第二章知识总结(未完)
查看>>
关闭注册表编辑器,重新启动计算机后生效。这样资源管理器重启后就不会自动重启了。...
查看>>