数学建模论文常用LaTeX代码(2021美赛)

3 篇文章 0 订阅
3 篇文章 0 订阅

数学建模论文常用LaTeX代码

图片

% 单图
\begin{figure}[htbp]
    \centering
    \includegraphics[width=.9\textwidth]{XXX.pdf} 	% 图片相对位置
    \caption{xxx}		% 图片标题 
    \label{fig:xxx}							% 图片标签
\end{figure}

\begin{figure}[H]
    \centering
    \includegraphics[width=.4\textwidth]{ex2-3jie.pdf} 	% 图片相对位置
    \caption{xxx}		% 图片标题 
    \label{fig:ex4-9}
\end{figure}
% 多图
\begin{figure}[htbp]
    \centering    
    \subfigure[Hot Map of one Room]{				% 图片1([]内为子图标题)
    \label{fig:sub.roomhot}							% 子图1的标签
    \includegraphics[width=0.45\textwidth]{XXX.jpg}}% 子图1的相对位置
    \subfigure[Hot Map of one Floor]{				% 图片2
    \label{fig:sub.floorhot}						% 子图2的标签
    \includegraphics[width=0.45\textwidth]{XXX.jpg}}% 子图2的相对位置
    \caption{Hot Map of one Room and one Floor}		% 总图标题
    \label{fig:hot}									% 总图标签
\end{figure}

表格

% 三线表
\begin{table}[!htbp]
\begin{center}
\caption{Notations}							% 表格标题
\begin{tabular}{c|l}			% 三线表格式('c'居中,'l'左对齐,'|'表示竖框线)
	\toprule								% 上框线
	\multicolumn{1}{m{3cm}}{\centering Symbol}
	&\multicolumn{1}{m{8cm}}{\centering Definition}\\
	\midrule								% 中框线
    $\rho$      &   the people density\\
    $\mathit{SD_i}$ & the spatial danger of the $i^{th}$ cellular\\
    $v_i$       &   the velocity of the $i^{th}$ visitor\\
    $\overrightarrow{F_{Mi}}$   &   the attractive force (spatial danger and velocity) on the $i^{th}$ visitor\\
    $\overrightarrow{F_{ppi}}$  &   the people-to-people interaction force on the $i^{th}$ visitor\\
    $\overrightarrow{d_i}$  &   the expected movement direction the $i^{th}$ visitor\\
	$\alpha$ &the weight of the spatial danger and visitors’ velocity in $\overrightarrow{d_i}$\\
    $\beta$ &the weight of interaction force between people in $\overrightarrow{d_i}$\\
    $p$ &   the ratio of the crowd decentralization\\
    \bottomrule								%底框线
\end{tabular}\label{tb:notation}
\end{center}
\end{table}

代码高亮

% 硬件语言 VHDL
\begin{lstlisting}[language=vhdl]
process(sel3) --根据音调编码,分配分频系数
begin
    case sel3 is
        when"000"=>count_ld<="0111011101110"; --3822    -- 1(中音do!)
        when"001"=>count_ld<="0000000110010"; --50      -- 1(低音do)
        when"010"=>count_ld<="0000000010100"; --20      -- 2(低音re)
        when"011"=>count_ld<="0000000001010"; --10      -- 3(低音mi)
        when"100"=>count_ld<="0000000000101"; --5       -- 4(低音fa)
        when"101"=>count_ld<="0000000000010"; --2       -- 5(低音sol)
        when"110"=>count_ld<="1000111000000"; --4544    -- 6(低音la)
        when"111"=>count_ld<="0111111010000"; --4048    -- 7(低音si)
        when others=>count_ld<="0111011101110"; --3822
end case;
end process;   
\end{lstlisting}

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值