zoukankan      html  css  js  c++  java
  • Latex: article模板

    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
    
    
    
    
    
    umberwithin{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
    	itle{article module}
    author{Nan}
    date{	oday}
    
    
    
    
    egin{document}large %HugehugeLARGELargelarge
    ormalsize(default)smallfootnotesizescriptsize	iny 
    maketitle{Large}
    	hispagestyle{empty} % hide the page number of first title page
    	ableofcontents % generate content index
    
    
    section{citation}
    Here we test the new citation stylecite{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 appliedcite{Freidberg_Ideal_MHD}.   
    
    
    
    
    section{source code highlight}
    % --------- code without grammer highlight
    egin{lstlisting}
    int main()
    {
        print('Hello World! /n')
    }
    end{lstlisting}
    
    
    % --------- code with grammer highlight
    egin{lstlisting}[ language=C] 
    int main(int argc, char ** argv) 
    { 
    	
    	printf("Hello world! 
    "); 
    		
    	return 0; 
    } 
    end{lstlisting}
    
    
    % --------- code with line number and edge box
    egin{lstlisting}[language={[ANSI]C},numbers=left, numberstyle=	iny,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! 
    "); 
    		
    		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
    egin{equation}
    S=int_{t1}^{t2}L(q,dq/dt,t)dt
    end{equation}
    
    
    
    
    section{figure insertion}
    subsection{fig draw by latex}
    draw a curve.
    egin{center}
    	centering
    	fbox{egin{picture}(120,60)
    		put(10,10){circle*{3}}
    		put(50,50){circle*{3}}
    		put(110,10){circle*{3}}
    			hinlines
    		put(5,5){line(1,1){50}}
    		put(117.5,5){line(-3,2){75}}
    			hicklines
    		qbezier(10,10)(50,50)(110,10)
    		end{picture}}
    	captionof{figure}{test fig: curve}
    end{center}
    
    Insert a ruler picture.
    egin{center}
    	centering
    	{unitlength=1cm
    		egin{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}
    
    
    
    
    egin{thebibliography}{l}
    	ibitem{BaiduBaikeMaxwellequation}{Baidubaike,Mexwellurl{http://baike.baidu.com/link?url=IaXpxAp8JARmOGSW7cEtJWlNK3O9-6vTnLxyG-8FNIsxCtFmIbWjhTbImV_yR_hQDiZESTQlXWCiy4ShZ_tPH_}}
    	ibitem{Colton1996}{A L Colton, R J Buttery, S J Fielding, et al.,Plasma Physics and Controlled Fusion, 1996, Vol.38,P.1359-1365}
    	ibitem[Fielding1996paper]{Fielding1996}{S. J. Fielding, J. D. Ashall, P. G. Carolan, et al.,Plasma Physics and Controlled Fusion, 1996, Vol.38,P.1091-1102}
    	ibitem{Han2000}{W. E. Han, A. Thyagaraja, S. J. Fielding, et al.,Plasma Physics and Controlled Fusion, 2000, Vol.42,P.181-201}
    	ibitem{Guoshuohong}{郭硕鸿,电动力学,北京:2008年6月,第3版,高等教育出版社 P14}
    	ibitem{citekey}{details}
    end{thebibliography}
    end{document}
    
  • 相关阅读:
    Mac OS terminal 查看内存使用情况的命令
    【教程】5分钟在以太坊上发行自己的代币
    Mac下eclipse的快捷键
    Mac上编辑文本的一些实用快捷键:跳转、选中等操作
    Mysql数据库用source命令导入SQL文件,利用navicat修改MySQL用户root密码,忘记mysql密码如何修改
    比特币1个确认和6个确认的区别在哪里?什么是双花问题?
    以 1、3、bc1 开头的比特币地址都有啥区别?转账手续费那种便宜,隔离见证地址为什么手续费便宜?
    以太坊 2.0 中的 DeFi:城市、郊区、农村
    Mac版navicat生成ER图把表结构导出pdf
    下载文件(API接口,Angularjs前端)
  • 原文地址:https://www.cnblogs.com/docnan/p/7270583.html
Copyright © 2011-2022 走看看