数学建模社区-数学中国
标题:
数学建模论文常用LaTeX代码(2021美赛)
[打印本页]
作者:
杨利霞
时间:
2021-7-19 16:58
标题:
数学建模论文常用LaTeX代码(2021美赛)
3 \8 B$ y" Z2 i# D D: T
4 M* _% i: Y) Y( P3 K( I8 A
数学建模论文常用LaTeX代码(2021美赛)
4 q C( M T2 h
: S0 x$ Z8 L( l6 t9 v
' b$ @ \2 R# l5 K4 u4 y8 c0 D
; Q! i; E3 }, A( l( M, [4 p
数学建模论文常用LaTeX代码
1 ]7 `- _% F! N) N. u& R6 Q0 J4 G/ i
图片
4 M+ O2 j, ~' v$ k1 \
% 单图
2 G- B4 a! ~8 \( S
\begin{figure}[htbp]
g, W4 j+ V% t$ p9 r7 ^" S
\centering
0 Z( d. d& Z8 M( I3 T# ]4 {
\includegraphics[width=.9\textwidth]{XXX.pdf} % 图片相对位置
! S6 I& P6 h& l/ C9 d4 |3 D
\caption{xxx} % 图片标题
5 E7 E7 [% a( ^: N+ l
\label{fig:xxx} % 图片标签
7 H" |% G0 A6 D1 D( K
\end{figure}
& B7 c% N0 M" q& e; \
: T/ y6 ~* C; c; H9 s$ t) \
\begin{figure}[H]
( F1 `4 h0 v0 }6 X) n6 e( d
\centering
* {; r7 P |; R% i2 w) k
\includegraphics[width=.4\textwidth]{ex2-3jie.pdf} % 图片相对位置
' k( A2 T& T0 S: U& _( P
\caption{xxx} % 图片标题
* B5 N8 L4 @/ r" m6 T# u
\label{fig:ex4-9}
# T: p$ K# m$ ]. u+ ]6 k
\end{figure}
- ?6 \ \$ y y" q( E! u1 E0 P
% 多图
8 P( @( c7 c' L
\begin{figure}[htbp]
" W, [( q4 j2 i( ?( S3 k
\centering
& I1 l, j$ F0 r& c
\subfigure[Hot Map of one Room]{ % 图片1([]内为子图标题)
7 h$ S( A' y9 x2 q( l
\label{fig:sub.roomhot} % 子图1的标签
! h( A3 v0 u" V" K, Y) N
\includegraphics[width=0.45\textwidth]{XXX.jpg}}% 子图1的相对位置
/ y" R8 M2 u) D9 n) ?) [* W3 T1 c
\subfigure[Hot Map of one Floor]{ % 图片2
6 }" x* }/ D7 _* o. k, [
\label{fig:sub.floorhot} % 子图2的标签
9 u' L* Z+ F. z% ?! n5 U- b! B* _
\includegraphics[width=0.45\textwidth]{XXX.jpg}}% 子图2的相对位置
' M4 X$ D5 \7 Q" P9 N8 [1 |
\caption{Hot Map of one Room and one Floor} % 总图标题
( X) {* |$ S* g! v( e% O4 _: Y
\label{fig:hot} % 总图标签
8 M6 C: U9 N1 ]8 O: y
\end{figure}
% k/ ~- ^) n) n e2 j. I
表格
" G) |& c7 O& `. q) m- f: c8 @8 W' h
% 三线表
- b; \5 f/ Z' Z- b9 F+ w8 s
\begin{table}[!htbp]
5 k% v# ^) \* X( j: K* c- w
\begin{center}
3 C' w3 i u \$ h
\caption{Notations} % 表格标题
, y3 Y3 _4 B' D$ o' y
\begin{tabular}{c|l} % 三线表格式('c'居中,'l'左对齐,'|'表示竖框线)
3 X" ?7 R3 J8 w6 u. T
\toprule % 上框线
d6 L, G9 l7 p
\multicolumn{1}{m{3cm}}{\centering Symbol}
4 j( w$ y. @' S0 T
&\multicolumn{1}{m{8cm}}{\centering Definition}\\
6 d3 V9 I. m c
\midrule % 中框线
9 k! }; o. ~: E1 `. P
$\rho$ & the people density\\
' g+ {, J( H, [3 k( C& l0 `, ^
$\mathit{SD_i}$ & the spatial danger of the $i^{th}$ cellular\\
- w6 o6 t! R4 s" X+ Q. k
$v_i$ & the velocity of the $i^{th}$ visitor\\
8 U. c7 `) l0 v
$\overrightarrow{F_{Mi}}$ & the attractive force (spatial danger and velocity) on the $i^{th}$ visitor\\
- k9 w% }1 L2 P4 f1 I% r( U: ~$ z
$\overrightarrow{F_{ppi}}$ & the people-to-people interaction force on the $i^{th}$ visitor\\
- A3 M! p1 h0 G2 ` D' r, C
$\overrightarrow{d_i}$ & the expected movement direction the $i^{th}$ visitor\\
; O6 P" v3 h2 p
$\alpha$ &the weight of the spatial danger and visitors’ velocity in $\overrightarrow{d_i}$\\
: s+ ?) Q3 ?9 |3 g7 T3 f
$\beta$ &the weight of interaction force between people in $\overrightarrow{d_i}$\\
n5 _# J, i$ c# Q/ g. O
$p$ & the ratio of the crowd decentralization\\
2 H. J/ p: }& N4 L, k& A
\bottomrule %底框线
8 Y' y: J0 ^" S+ L8 w( V' L
\end{tabular}\label{tb:notation}
9 L$ W+ }4 v7 e+ A7 e" r, T: Q& R9 q
\end{center}
' i2 Y# R2 ?5 C: b1 G
\end{table}
; }% l9 r8 a8 W" Y. R6 l% V
代码高亮
( e( X3 s2 x a5 N i; R, z
% 硬件语言 VHDL
. C) D4 A ?, Q, T9 m& p
\begin{lstlisting}[language=vhdl]
- F# k: R4 ^3 e- {9 ?
process(sel3) --根据音调编码,分配分频系数
. ^6 D5 }/ Y4 [1 {3 Z T
begin
, y/ H7 T3 w! p7 B3 s! V
case sel3 is
0 `5 q4 n8 I8 O
when"000"=>count_ld<="0111011101110"; --3822 -- 1(中音do!)
8 u, C0 E4 K9 p3 G" p$ H3 Z: I
when"001"=>count_ld<="0000000110010"; --50 -- 1(低音do)
" S5 G# Z& Z* n9 U8 t5 k, w# e9 d
when"010"=>count_ld<="0000000010100"; --20 -- 2(低音re)
$ J3 S1 _* Q5 D
when"011"=>count_ld<="0000000001010"; --10 -- 3(低音mi)
) j) D8 g8 M* Q' T6 o
when"100"=>count_ld<="0000000000101"; --5 -- 4(低音fa)
7 F9 \7 x# [: g6 M
when"101"=>count_ld<="0000000000010"; --2 -- 5(低音sol)
6 x7 Q& L: L6 e/ T% a* k3 b: x
when"110"=>count_ld<="1000111000000"; --4544 -- 6(低音la)
: F4 [4 `7 S# ~$ e5 f( A: _
when"111"=>count_ld<="0111111010000"; --4048 -- 7(低音si)
' B# L3 Z+ l8 \0 U8 @
when others=>count_ld<="0111011101110"; --3822
( o0 K6 k4 @. r9 i, c3 N
end case;
; B3 P' m- V9 f/ Y/ ?6 d' X
end process;
, N% C- d+ Z$ M } e
$ `" Q8 x, g4 v: K9 @6 N
" l5 J/ L) L2 B' M7 j. T" ^
————————————————
3 }; i( N+ I3 A
版权声明:本文为CSDN博主「von van」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
" n6 I" I3 h- _/ ~
原文链接:https://blog.csdn.net/weixin_46325577/article/details/113522972
" t3 m% K4 K" e2 k
( a6 d' J: X( z7 R1 h0 `
: J" s: _% q4 U5 W
欢迎光临 数学建模社区-数学中国 (http://www.madio.net/)
Powered by Discuz! X2.5