ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

latex学习(1)

2022-01-29 17:30:55  阅读:182  来源: 互联网

标签:latex begin end expert height 学习 width includegraphics


1、latex中插入图片(需要调用\usepackage{graphicx}和\usepackage{float}宏包)

\begin{figure}[H]   
	\small
	\centering
	\includegraphics[width=13cm,height=8cm]{fig31}
    %\includegraphics[scale=0.6]
	\caption{sensitivity analysis results of damping trend model} \label{fig-29}
\end{figure}
  • 其中[H]是为了固定图片位置,htbp分别为:h 此处(here)t 页顶(top)b 页底(bottom)p 独立一页(page)
  • 改变width和height的参数值来改变图片的大小,也可以改变缩放因子scale改变图片大小。

 

2、两张图片并排插入(调用\usepackage{subfigure}宏包)

\begin{figure}[htbp]
	\centering
	\subfigure[predicted cumulative diagnosis]{\includegraphics[height=6cm,width=7cm]{fig7}}
	\subfigure[forest daily additions]{\includegraphics[height=6cm,width=7cm]{fig8}}
	\caption{ change curve of daily new number and cumulative confirmed number}
	\label{fig-7}
\end{figure}

其中\subfigure[每个图片的标签或说明]{\includegraphics[height=6cm,width=7cm]{fig7}},没有标签可去掉\subfigure。

 3、多张图片并排插入(与两张图片类似)

  • 3张照片
\begin{figure}[H]
	\centering
	{\includegraphics[height=5cm,width=4.7cm]{fig10}}
	{\includegraphics[height=5cm,width=4.6cm]{fig11}}
	{\includegraphics[height=5cm,width=4.7cm]{fig12}}
	\caption{virus transmission process when the infection rate parameter changes}
	\label{fig-8}
\end{figure}

其中\label{}为标签(通常放在\caption后),\ref{}为引用图片

  • 4张图片
\begin{figure}[H]
	\centering
	{\includegraphics[height=5cm,width=6cm]{fig13}}
	{\includegraphics[height=5cm,width=6cm]{fig14}}
	{\includegraphics[height=5cm,width=6cm]{fig15}}
	{\includegraphics[height=5cm,width=6cm]{fig16}}
	\caption{cellular automata grid diagram of different population sizes}
	\label{fig-16}
\end{figure}

 

 4、插入普通表格


\begin{table}[htbp]
	\centering  %居中排版
	\setlength{\tabcolsep}{2mm}  %调整表格列宽
	\caption{Effect of infection rate parameters on prevalence}\label{tab-8}
	\begin{tabular}{|c|c|c|c|c|} %l为左对齐,c为居中对齐,r为右对齐
		\hline 
		 & Infection rate & cure rate & New patient probability &Stable prevalence \\
		\hline
		group 1 & 0.1 & 0.1 & 0.01 &0.381 \\
		\hline
		group 2 &  0.3 & 0.1 & 0.01 & 0.756 \\
		\hline
		group 3 & 0.5 & 0.1 & 0.01 & 0.831 \\
		\hline
	\end{tabular}
\end{table}

 

\begin{table}[htbp]
	\centering  %居中排版
	\setlength{\tabcolsep}{5mm}
	\caption{consistency inspection RI value}\label{tab-3}
		\begin{tabular}{|c|c|c|c|c|c|c|c|c|c|} %l为左对齐,c为居中对齐,r为右对齐
			\hline 
			n & 1 & 2 & 3 &4&5&6&7&8&9 \\
			\hline
			RI & 0 & 0 & 0.58 &0.90&1.12&1.24&1.32&1.41&1.45 \\
			\hline
	\end{tabular}
\end{table}

 5、插入三线表

\begin{table}[H]
	\centering  %居中排版
	\caption{Notations used in this paper}      \label{tab-2}
	%\setlength{\tabcolsep}{12mm}{
	\begin{tabularx}{\textwidth}{C{4cm} X} \toprule[1.5pt]
		Scale  &  Meaning  \\
		\midrule[1.5pt]
		1  & Indicates that the two factors have the same importance compared to each other \\ 
		4  & Indicates that the former is slightly more important than the latter  \\
		5  & Indicates that the former is obviously more important than the latter  \\
		7  & Indicates that the former is more important than the latter \\
		9  & Indicates that the former is more important than the latter \\
		2,4,6,8  & Represents the intermediate value of the above adjacent judgment  \\
		reciprocal & If the factor $i$ to factor $j$ importance ratio is $a_{ij}$ , then the factor $j$ to $i$ factor importance ratio is $a_{ji}=\frac{1}{a_{ij}}$ \\
		\bottomrule[1.5pt]		
	\end{tabularx}
	%}
\end{table}

 

\begin{table*}[!htbp]
	\centering  %居中排版
	\caption{Determination of $SEIR^{CIA}$  model parameter values}      \label{tab-7}
	%\setlength{\tabcolsep}{12mm}{
	\begin{tabularx}{12cm}{X X X} \toprule[1.5pt]
%	\begin{tabularx}{\textwidth}{C{4cm} X X} \toprule[1.5pt]
		parameter  & numerical value & Setting basis  \\
		\midrule[1.5pt]
		$S$  & 1.3$\times$ $10^{7}$   & Xi’an population  \\ 
		$E$  &7 & E(0) Latency length \\
		$\beta$  & $10^{-6}$ & expert opinion \\
		$\rho$ & 0.5 &expert opinion  \\
		$\phi$ & 0.5 & expert opinion  \\
		$\epsilon$ & 0.2 & expert opinion  \\
		$\alpha$ & 1/7 & reference \\
		$\omega$ &0.01 & expert opinion \\
		$\eta$ & 0.9 & expert opinion  \\
		\bottomrule[1.5pt]		
	\end{tabularx}
	%}
\end{table*}

 居中:

\begin{table*}[!htbp]
	\centering  %居中排版
	\caption{Determination of $SEIR^{CIA}$  model parameter values}      \label{tab-7}
	%\setlength{\tabcolsep}{12mm}{
	\begin{tabularx}{15cm}{C{5cm} C{5cm} C{5cm}} \toprule[1.5pt]
%	\begin{tabularx}{\textwidth}{C{4cm} X X} \toprule[1.5pt]
		parameter  & numerical value & Setting basis  \\
		\midrule[1.5pt]
		$S$  & 1.3$\times$ $10^{7}$   & Xi’an population  \\ 
		$E$  &7 & E(0) Latency length \\
		$\beta$  & $10^{-6}$ & expert opinion \\
		$\rho$ & 0.5 &expert opinion  \\
		$\phi$ & 0.5 & expert opinion  \\
		$\epsilon$ & 0.2 & expert opinion  \\
		$\alpha$ & 1/7 & reference \\
		$\omega$ &0.01 & expert opinion \\
		$\eta$ & 0.9 & expert opinion  \\
		\bottomrule[1.5pt]		
	\end{tabularx}
	%}
\end{table*}

 

标签:latex,begin,end,expert,height,学习,width,includegraphics
来源: https://blog.csdn.net/weixin_45877147/article/details/122745081

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有