• 常用实验报告LaTex 模板


    模板1-无首页有表格头

    % -*- coding: utf-8 -*-
    documentclass{article}
    usepackage{listings}
    usepackage{ctex}
    usepackage{graphicx}
    usepackage[a4paper, body={18cm,22cm}]{geometry}
    usepackage{amsmath,amssymb,amstext,wasysym,enumerate,graphicx}
    usepackage{float,abstract,booktabs,indentfirst,amsmath}
    usepackage{array}
    usepackage{booktabs} %调整表格线与上下内容的间隔
    usepackage{multirow}
    usepackage{url}
    usepackage{diagbox}
    
    enewcommandarraystretch{1.4}
    usepackage{indentfirst}
    setlength{parindent}{2em}
    
    usepackage{listings}
    usepackage{xcolor}
    lstset{
    	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} ,
    	escapeinside=``, % 英文分号中可写入中文
    	xleftmargin=2em,xrightmargin=2em, aboveskip=1em,
    	basicstyle=footnotesize,
    	framexleftmargin=2em
    } 
    
    
    geometry{left=2.8cm,right=2.2cm,top=2.5cm,bottom=2.5cm}
    %geometry{left=3.18cm,right=3.18cm,top=2.54cm,bottom=2.54cm}
    
    graphicspath{{figures/}}
    
    	itle{heiti 实验一 远程过程调用中间件及数据访问中间件 }
    
    egin{document}
        maketitle
        %	ableofcontents
        
        egin{center}
        	%LARGE{{	extbf{heiti 实验一 远程过程调用中间件及数据访问中间件}}}
        	%
    ewline
        	%
    ewline
        	%date{2019年4月2日}
        	egin{table}[H]
        		centering
        		egin{tabular}{p{3cm}p{4cm}<{centering}p{3cm}p{4cm}<{centering}}
        			班quad 级: & ****** & 学qquad 号:   & ***** \ cline{2-2} cline{4-4} 
        			姓quad 名: & ****       & 指导老师: & *****        \ cline{2-2} cline{4-4} 
        		end{tabular}
        	end{table}
        end{center}
        
        section{实习目的}
    	
        
        section{实习要求}
    	   
    	section{实习过程}
    
    		
    
    section{实习总结}
    	
    		
    	
    end{document}
    
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%Library%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    
    % 1. 脚注用法
        LaTeXfootnote{Latex is Latex} is a good software
    
    %2. 强调
        emph{center of percussion} %[Brody 1986], %lipsum[5]
    
    %3. 随便生成一段话
        lipsum[4]
    
    %4. 列条目
        egin{itemize}
        item the angular velocity of the bat,
        item the velocity of the ball, and
        item the position of impact along the bat.
        end{itemize}
    
    %5. 表格用法
        egin{table}[h]
        centering  
        egin{tabular}{c|cc}
            hline
            年份 & multicolumn{2}{c}{指标}\
            hline
            2017 & 0.9997 & 0.0555 \
            2018 & 0.9994 & 0      \
            2019 & 0.9993 & 0      \
            hline
        end{tabular}
        caption{NAME}label{SIGN}
        end{table}
    
        egin{center}
            egin{tabular}{c|cclcrcc}
                hline
                Year & theta & $S_1^-$ & $S_2^-$ & $S_3^-$ & $S_4^+$ & $S_5^+$ & $S_6^+$ \%表格标题
                hline
                2016 & 1      & 0      & 0 & 0.0001 & 0      & 0      & 0 \
                2017 & 0.9997 & 0.0555 & 0 & 0.2889 & 0.1844 & 0.463  & 0 \
                2018 & 0.9994 & 0      & 0 & 0.0012 & 0.3269 & 0.7154 & 0 \
                2019 & 0.9993 & 0      & 0 & 0      & 0.4325 & 1.0473 & 0 \
                2020 & 0.9991 & 0      & 0 & 0      & 0.5046 & 1.2022 & 0 \
                2021 & 0.999  & 0      & 0 & 0      & 0.5466 & 1.2827 & 0 \
                2022 & 0.9989 & 0.0017 & 0 & 0.3159 & 0.562  & 1.2995 & 0 \
                2023 & 0.9989 & 0      & 0 & 0.0109 & 0.5533 & 1.2616 & 0 \
                2024 & 0.9989 & 0      & 0 & 0      & 0.5232 & 1.1769 & 0 \
                2025 & 0.9989 & 0      & 0 & 0.1009 & 0.4738 & 1.0521 & 0 \
                2026 & 0.9991 & 0      & 0 & 0      & 0.4071 & 0.8929 & 0 \
                2027 & 0.9992 & 0.0004 & 0 & 0.1195 & 0.3248 & 0.7042 & 0 \
                2028 & 0.9994 & 0.0164 & 0 & 0.046  & 0.2287 & 0.4902 & 0 \
                2029 & 0.9997 & 0      & 0 & 0.0609 & 0.12   & 0.2545 & 0 \
                2030 & 1      & 0      & 0 & 0      & 0      & 0      & 0 \
                hline
            end{tabular}
        end{center}
    
    %6. 数学公式
        egin{equation}
            a^2 = a * alabel{aa}
        end{equation}
        
        [
        egin{pmatrix}{*{20}c}
        {a_{11} } & {a_{12} } & {a_{13} }  \
        {a_{21} } & {a_{22} } & {a_{23} }  \
        {a_{31} } & {a_{32} } & {a_{33} }  \
        end{pmatrix}
        = frac{{Opposite}}{{Hypotenuse}}cos ^{ - 1} 	heta arcsin 	heta
        ]
        
        [
        p_{j}=egin{cases} 0,&	ext{if $j$ is odd}\
        r!\,(-1)^{j/2},&	ext{if $j$ is even}
        end{cases}
        ]
        
        
        [
        arcsin 	heta  =
        mathop{{int!!!!!int!!!!!int}mkern-31.2mu
            igodot}limits_varphi
        {mathop {lim }limits_{x 	o infty } frac{{n!}}{{r!left( {n - r}
                    
    ight)!}}} eqno (1)
        ]
    
    %7. 双图并行
        egin{figure}[h]
            % 一个2*2图片的排列
            egin{minipage}[h]{0.5linewidth}
                centering
                includegraphics[width=0.8	extwidth]{./figures/0.jpg}
                caption{Figure example 2}
            end{minipage}
            egin{minipage}[h]{0.5linewidth}
                centering
                includegraphics[width=0.8	extwidth]{./figures/0.jpg}
                caption{Figure example 3}
            end{minipage}
        end{figure}
    
    %8. 单张图片部分
        egin{figure}[h]
            %small
            centering
            includegraphics[width=12cm]{./figures/mcmthesis-aaa.eps}
            caption{Figure example 1} label{fig:aa}
        end{figure}
    
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    egin{minipage}{0.5linewidth}
        egin{tabular}{|c|c|c|}
            hline
            multicolumn{2}{|c|}{multirow{2}{*}{合并}}&测试\
            cline{3-3}
            multicolumn{2}{|c|}{}& 0.9997  \
            hline
            2019 & 0.9993 & 0 \
            hline
        end{tabular}
    end{minipage}
    
    egin{minipage}{0.5linewidth}
        egin{tabular}{c|ccc}
            hline
            年份 & multicolumn{3}{c}{指标}\
            hline
            multirow{3}{*}{合并}&2017 & 0.9997 & 0.0555 \
            &2018 & 0.9994 & 0      \
            &2019 & 0.9993 & 0      \
            hline
        end{tabular}
    end{minipage}
    
    
    
        egin{table}[h]
        centering  
        egin{Large}
            egin{tabular}{p{4scm} p{8cm} < {centering}}
                hline
                院qquad 系: & 信息工程学院 \
                hline
                团队名称: & PlantBook Team \
                hline
                分qquad 组: & 第0组1号 \
                hline
                日qquad 期: & 2017年10月28日 \
                hline
                指导教师: & 吱吱吱\
                hline
            end{tabular}
        end{Large}
    end{table}
    
    
    ctexset{
        section={
            format+=heiti 
    aggedright,
            name={,、},
            number=chinese{section},
            beforeskip=1.0ex plus 0.2ex minus .2ex,
            afterskip=1.0ex plus 0.2ex minus .2ex,
            aftername=hspace{0pt}
        },
    }
    
        egin{table}[h]
        centering
        egin{Large}
            egin{tabular}{p{3cm} p{7cm}<{centering}}
                院  qquad  系: & ***          \ cline{2-2}
            end{tabular}
        end{Large}     
    end{table}
    	hispagestyle{empty}
    
    ewpage
    	hispagestyle{empty}
    	ableofcontents
    	hispagestyle{empty}
    
    ewpage
    setcounter{page}{1}
    

    模板2-有首页

    % -*- coding: utf-8 -*-
    documentclass{article}
    usepackage{listings}
    usepackage{ctex}
    usepackage{graphicx}
    usepackage[a4paper, body={18cm,22cm}]{geometry}
    usepackage{amsmath,amssymb,amstext,wasysym,enumerate,graphicx}
    usepackage{float,abstract,booktabs,indentfirst,amsmath}
    usepackage{array}
    usepackage{booktabs} %调整表格线与上下内容的间隔
    usepackage{multirow}
    usepackage{diagbox}
    
    enewcommandarraystretch{1.4}
    usepackage{indentfirst}
    setlength{parindent}{2em}
    
    geometry{left=2.8cm,right=2.2cm,top=2.5cm,bottom=2.5cm}
    %geometry{left=3.18cm,right=3.18cm,top=2.54cm,bottom=2.54cm}
    
    graphicspath{{figures/}}
    
    	itle{heiti 题目 }
    
    egin{document}
    
    	maketitle
    	
    	vspace{5cm}
    	
    	egin{table}[h]
    		centering
    		egin{Large}
    			egin{tabular}{p{3cm} p{7cm}<{centering}}
    				学  qquad  校: &  *********     \ cline{2-2}
    				学 qquad 院:      & ****学院   \ cline{2-2}
    				成  qquad  员: & *** quad ** quad *** \ cline{2-2}
    				& **quad ** quad *** \ cline{2-2}
    				指导教师:       & **** \ cline{2-2}
    			end{tabular}
    		end{Large}		
    	end{table}
    	
    	
    ewpage
    
    		ableofcontents
    	
    	
    ewpage
    	
    	section{系统概述}
    	
    	
    
    end{document}
    
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%Library%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    
    % 1. 脚注用法
    	LaTeXfootnote{Latex is Latex} is a good software
    
    %2. 强调
    	emph{center of percussion} %[Brody 1986], %lipsum[5]
    
    %3. 随便生成一段话
    	lipsum[4]
    
    %4. 列条目
    	egin{itemize}
    	item the angular velocity of the bat,
    	item the velocity of the ball, and
    	item the position of impact along the bat.
    	end{itemize}
    
    %5. 表格用法
    	egin{table}[h]
    	centering  
    	egin{tabular}{c|cc}
    		hline
    		年份 & multicolumn{2}{c}{指标}\
    		hline
    		2017 & 0.9997 & 0.0555 \
    		2018 & 0.9994 & 0      \
    		2019 & 0.9993 & 0      \
    		hline
    	end{tabular}
    	caption{NAME}label{SIGN}
    	end{table}
    
    	egin{center}
    		egin{tabular}{c|cclcrcc}
    			hline
    			Year & theta & $S_1^-$ & $S_2^-$ & $S_3^-$ & $S_4^+$ & $S_5^+$ & $S_6^+$ \%表格标题
    			hline
    			2016 & 1      & 0      & 0 & 0.0001 & 0      & 0      & 0 \
    			2017 & 0.9997 & 0.0555 & 0 & 0.2889 & 0.1844 & 0.463  & 0 \
    			2018 & 0.9994 & 0      & 0 & 0.0012 & 0.3269 & 0.7154 & 0 \
    			2019 & 0.9993 & 0      & 0 & 0      & 0.4325 & 1.0473 & 0 \
    			2020 & 0.9991 & 0      & 0 & 0      & 0.5046 & 1.2022 & 0 \
    			2021 & 0.999  & 0      & 0 & 0      & 0.5466 & 1.2827 & 0 \
    			2022 & 0.9989 & 0.0017 & 0 & 0.3159 & 0.562  & 1.2995 & 0 \
    			2023 & 0.9989 & 0      & 0 & 0.0109 & 0.5533 & 1.2616 & 0 \
    			2024 & 0.9989 & 0      & 0 & 0      & 0.5232 & 1.1769 & 0 \
    			2025 & 0.9989 & 0      & 0 & 0.1009 & 0.4738 & 1.0521 & 0 \
    			2026 & 0.9991 & 0      & 0 & 0      & 0.4071 & 0.8929 & 0 \
    			2027 & 0.9992 & 0.0004 & 0 & 0.1195 & 0.3248 & 0.7042 & 0 \
    			2028 & 0.9994 & 0.0164 & 0 & 0.046  & 0.2287 & 0.4902 & 0 \
    			2029 & 0.9997 & 0      & 0 & 0.0609 & 0.12   & 0.2545 & 0 \
    			2030 & 1      & 0      & 0 & 0      & 0      & 0      & 0 \
    			hline
    		end{tabular}
    	end{center}
    
    %6. 数学公式
    	egin{equation}
    		a^2 = a * alabel{aa}
    	end{equation}
    	
    	[
    	egin{pmatrix}{*{20}c}
    	{a_{11} } & {a_{12} } & {a_{13} }  \
    	{a_{21} } & {a_{22} } & {a_{23} }  \
    	{a_{31} } & {a_{32} } & {a_{33} }  \
    	end{pmatrix}
    	= frac{{Opposite}}{{Hypotenuse}}cos ^{ - 1} 	heta arcsin 	heta
    	]
    	
    	[
    	p_{j}=egin{cases} 0,&	ext{if $j$ is odd}\
    	r!\,(-1)^{j/2},&	ext{if $j$ is even}
    	end{cases}
    	]
    	
    	
    	[
    	arcsin 	heta  =
    	mathop{{int!!!!!int!!!!!int}mkern-31.2mu
    		igodot}limits_varphi
    	{mathop {lim }limits_{x 	o infty } frac{{n!}}{{r!left( {n - r}
    				
    ight)!}}} eqno (1)
    	]
    
    %7. 双图并行
    	egin{figure}[h]
    		% 一个2*2图片的排列
    		egin{minipage}[h]{0.5linewidth}
    			centering
    			includegraphics[width=0.8	extwidth]{./figures/0.jpg}
    			caption{Figure example 2}
    		end{minipage}
    		egin{minipage}[h]{0.5linewidth}
    			centering
    			includegraphics[width=0.8	extwidth]{./figures/0.jpg}
    			caption{Figure example 3}
    		end{minipage}
    	end{figure}
    
    %8. 单张图片部分
    	egin{figure}[h]
    		%small
    		centering
    		includegraphics[width=12cm]{./figures/mcmthesis-aaa.eps}
    		caption{Figure example 1} label{fig:aa}
    	end{figure}
    
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    egin{minipage}{0.5linewidth}
    	egin{tabular}{|c|c|c|}
    		hline
    		multicolumn{2}{|c|}{multirow{2}{*}{合并}}&测试\
    		cline{3-3}
    		multicolumn{2}{|c|}{}& 0.9997  \
    		hline
    		2019 & 0.9993 & 0 \
    		hline
    	end{tabular}
    end{minipage}
    
    egin{minipage}{0.5linewidth}
    	egin{tabular}{c|ccc}
    		hline
    		年份 & multicolumn{3}{c}{指标}\
    		hline
    		multirow{3}{*}{合并}&2017 & 0.9997 & 0.0555 \
    		&2018 & 0.9994 & 0      \
    		&2019 & 0.9993 & 0      \
    		hline
    	end{tabular}
    end{minipage}
    
    
    
    	egin{table}[h]
    	centering	
    	egin{Large}
    		egin{tabular}{p{4cm} p{8cm} < {centering}}
    			hline
    			院qquad 系: & 信息工程学院 \
    			hline
    			团队名称: & PlantBook Team \
    			hline
    			分qquad 组: & 第0组1号 \
    			hline
    			日qquad 期: & 2017年10月28日 \
    			hline
    			指导教师: & 吱吱吱\
    			hline
    		end{tabular}
    	end{Large}
    end{table}
    
    
    ctexset{
    	section={
    		format+=heiti 
    aggedright,
    		name={,、},
    		number=chinese{section},
    		beforeskip=1.0ex plus 0.2ex minus .2ex,
    		afterskip=1.0ex plus 0.2ex minus .2ex,
    		aftername=hspace{0pt}
    	},
    }
    
    	egin{table}[h]
    	centering
    	egin{Large}
    		egin{tabular}{p{3cm} p{7cm}<{centering}}
    			院  qquad  系: & 信息工程学院           \ cline{2-2}
    		end{tabular}
    	end{Large}		
    end{table}
    	hispagestyle{empty}
    
    ewpage
    	hispagestyle{empty}
    	ableofcontents
    	hispagestyle{empty}
    
    ewpage
    setcounter{page}{1}
    
    % 9. 代码
    
    usepackage{listings}
    usepackage{xcolor}
    lstset{
    	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} ,
    	escapeinside=``, % 英文分号中可写入中文
    	xleftmargin=2em,xrightmargin=2em, aboveskip=1em,
    	basicstyle=footnotesize,
    	framexleftmargin=2em
    }
    
    
  • 相关阅读:
    VS2012 窗口布局, update1 和 英语语言包 离线安装方法
    C/C++ 笔记
    MFC学习笔记
    理解虚基类、虚函数与纯虚函数的概念
    ffmpeg使用
    gif制作 & word2007插入gif
    WIN8电脑开机怎么进入安全模式啊?
    vs2012 win8 64 visual assistX 中文 ??
    21 获取文件大小的方法
    20 线程中添加超时的方法
  • 原文地址:https://www.cnblogs.com/pprp/p/10026411.html
Copyright © 2020-2023  润新知