数学建模社区-数学中国

标题: 美赛latex写作相关 [打印本页]

作者: zhangtt123    时间: 2020-2-12 10:24
标题: 美赛latex写作相关
一、引用宏
# E5 J% W( ~& g, u: }这个在每个模板里都有,还有页眉页脚页数,不必赘述。# Y! e- H- Q& X; q9 f) X8 z" q) b4 w
1\documentclass[final,3p,times]{elsarticle}
+ j# a# k% O4 D5 _8 E2& |) h3 R0 O& m0 u. |5 ?" [; V
3\usepackage{graphicx, amssymb}
% h, I1 U* ~# `; U5 v6 b4\usepackage{amsthm}
2 V* D6 [. i& Q! G% B! j% C# V/ u5\usepackage{amsmath}
% F5 s, a& D$ c) R7 ]6 L/ P6\usepackage{epsfig}- d. g9 Y; M8 |
7\usepackage{graphicx}: p# B: {. p, v, c- o3 l' T. ?
8\usepackage{subfigure}+ x6 y0 ?; j# Y: a: U* D1 O
9\usepackage{graphics}
5 S6 u- L8 u; M7 t; B$ P$ N10\usepackage{multirow}2 `( q. B$ \0 b. }
11\usepackage{threeparttable}
; Y8 G+ u  Q; u# F! z* G12\usepackage{amsthm}7 ^% w' M( O2 r% D: ~
13\usepackage[noend]{algpseudocode}
9 H3 S6 _8 ^" Y3 y8 R7 t14\usepackage{algorithmicx,algorithm}
$ K: O) a9 X) G7 M7 |/ [, |15$ ?- n* [% _) {$ \5 k2 M
16\newtheorem{theorem}{Theorem}
( p5 A7 P# h7 a& r- S9 u* t17\theoremstyle{definition}; Y" _0 s4 u7 d9 o$ s1 O
18\newtheorem{definition}{Definition}
: e( c* Q& a, O1 a19\theoremstyle{remark}5 F. a0 m& k9 ~- n3 g. T! `! ]( X
20\newtheorem{remark}{Remark}
2 K5 y8 C  \7 i21\theoremstyle{proposition}$ b5 s9 }! D$ O6 d& ]! [- {
22\newtheorem{proposition}{Proposition}
1 E; l2 g, s" U2 ~23\theoremstyle{example}
1 x; B. s1 p# j1 Q- G/ J" U8 u24\newtheorem{example}{Example}0 G* d* A; f0 `$ k' ?1 w
25\theoremstyle{corollary}9 c3 T  T$ Z# T( L' C- z2 s
26\newtheorem{corollary}{Corollary}3 b: A/ s# ?, |' E8 T5 K
27\theoremstyle{property}% {6 r( G/ {4 e/ ?, x& N- \
28\newtheorem{property}{Property}, e5 O  c  g) ^9 s3 s
29\renewcommand{\algorithmicrequire}{ \textbf{Input:}} %Use Input in the format of Algorithm
& ?' O* N0 X. C5 x8 q& K: r30\renewcommand{\algorithmicensure}{ \textbf{Output:}} %UseOutput in the format of Algorithm
: d, x3 v; F2 k- g. S6 b- \9 w2 h' s31
. C8 _8 b2 Z- o+ l  `32\begin{document}# }/ M0 T9 p, j
33Please write here.
  ?# Z; o/ B5 U34\end{document}
& O* M3 f* D; q! Z. B3 t
- \0 _! N3 n  w3 g8 X二、数学符号相关
9 O4 u9 B3 t! r& F( x2 F两种控制符
8 u; i+ v. E% k& x0 Y( o) g1 w2 W$ P; E5 r" M3 S% u+ a
1.$     $生成行内公式
5 W! T- M" P2 W' F2.生成数学块公式2 X  K9 Y& a, g1 x
   $_{}需要转义字符,前加\2 ?. u7 ?5 X, W5 }  }2 V

& p" ]5 D! A/ M/ W6 B+ A' _一些常用的数学符号表示:# B' H! k: l, p+ |
1指数^1 _3 j, P7 _* E7 U5 {
2下标_
: Q0 R* Q/ ?- W+ y6 x9 C; C- l2 A. K3平方根\sqrt[n]  y( o  B5 X2 m
4上下水平线\overline    \underline6 K6 k. k: v! U* l& D  k3 a; O* k8 E
5上下大括号\overbrace   \underbrace7 D  q/ m0 j) T% R) N
6向量  \vec      \overrightarrow 和\overleftarrow
) j6 `1 i( G6 b1 W  v" s7分数  \frac
+ F$ L# \. m4 _2 t* ?' `% j8积分运算符    \int4 V  g* k) z% [" O, q0 N4 e* [
9求和运算符    \sum
# R' n  F! ~* ^. E* I: ~4 [10乘积运算符  \prod
5 s' h3 J( E0 c- X- i9 g
5 C8 G( R+ K. F! j( E详情:常用符号3 c1 a* x3 \' F- i0 s. B
% H  _% d9 `: G! P. W& O% ]" Z5 ^
三、论文格式排版
' t1 b% M# z6 _) r+ ?1.整体格式
& d4 j" Z$ z% y  ~1\begin{XXX}...\end{XXX}
' T# d7 d% H# r2表示一个段落,XXX填写document表示整篇文章
3 q" G' {7 W3 @# p2 h3abstruct表示摘要
9 c  i* G7 f: j9 r; h
* I" v' i1 K+ r- i; t. f1\newpage   
+ B2 R$ E/ Y0 w2新起一页0 T3 V8 h) i4 Y& x" G+ B3 d9 q

4 C  e/ R  [5 h2 S$ u; [1\setcounter{page}{1}
/ u" v9 q: L2 V$ w% t' p2设置页码计数器从当前页面开始之后: s) q* C/ Q" v8 a6 C
3每页自动加上代码5 `' b4 N+ |7 N) Z% B6 @: W6 G& y
/ p2 v4 D8 d4 l: i! U8 M8 X
1\section{XXX}
% M' Z. f2 F, N- ^0 T( K2段落,XXX为段落标题
3 D) ~0 _+ H, @/ O+ s& d/ Q/ Y2 `6 }
1\subsection{XXX}
2 Z7 ^* T( q+ L, e$ o4 k+ [2子段落4 J4 v5 V) {& O8 r  }. I+ L7 W

4 G1 m; q5 D; H2.语句编辑: d& T& `8 J: X7 v
1\indent
' c! Y5 o2 H* d+ j% u) c  b% [2缩进3 i, P4 S( ?  E

$ A3 Y1 S. c; n1\\
. o  Y, M1 v0 t- ]. R6 G2换行,另起一段
7 l5 E  |  S1 d# Z3 h+ F3\par
. Q) @- ^0 S8 m# h4换行,另起一段(首行缩进)# \4 m5 N2 N: x5 ]! y" f

5 c: K: a3 Z- z7 l* ?1\bf
7 l1 H! Y1 W1 p8 h/ U2加粗4 n+ o+ ?) n1 D5 I4 j
8 m$ |0 V/ B- W- K; ?5 q3 Q, F
1{...}
* }# k3 |( x; Q; W5 H6 O3 S5 j9 I2语句块) Q: `; y2 Y3 ]

7 ?4 J0 q( u& l9 a6 k1$...$' t8 q( Y# f3 z  I" a
2行内数学公式, m1 h; t& x- t) _

/ `6 @( l& a% u  S0 p. t1\url) h% `9 L" b1 d
2加入超链接1 u1 t" N! r8 J0 _4 W
8 S$ c3 u  L8 ~& Y
3.插入图片" Y1 L, s5 |: h" J
1\centerline{\inludegraphics[height=X.Xcm]{图片名.后缀名}}1 r. @+ L. x* ]& {4 x
2设置插入图片高度,要插入的图片放在figures文件夹里
0 k9 a! K: O9 y- D& k! U3\centerline{XXXX}/ O+ D2 ~1 _3 ^1 g. {: [' h
4图片下方文字标注. ?. `- ^7 C$ v+ v& u0 M

* l; c7 p! M" s) j4.插入表格
: k0 S# u! I* j1\begin{table}...\end{table}
2 C  i8 K9 e: E; f2插入表格快控制语句  d. u9 L  @: D% k9 Z' b) T
3\begin{tabular}
1 |; K: \- h) |" ~5 s1 k4 B3 n4{{p{3cm}|p{3cm}....}
8 Q) [1 t7 V3 t* d5\end{tabular}5 z- B9 _" V/ ^: \" E- C4 s* v

$ F5 E' q9 B4 S- w1\centering
: V1 f4 w9 r* P( }$ K9 X# L2居中! Z$ v' w& A, P2 P/ \$ f6 o
3\hline" r- e' i4 v: N. W" w' v/ j: J
4表格每一行的横线
, J+ U& ?1 Q  a1 i: i5&
) V) T2 n6 I& B- n: g* {5 T8 U6\\
0 j8 j7 Y: R. Y/ b& z7每一行的结束
+ ]! s" d- n; F+ H$ }3 ~0 A8\rowcolor[gray]{0.9}
  b; ]" M/ V2 k9设置一行的颜色
0 q( N. g6 \- ]) D" @- k$ b————————————————# @  b/ I9 y9 M: g% V
版权声明:本文为CSDN博主「你的小猫咪」的原创文章。$ K, {& f7 z6 h& ^
原文链接:https://blog.csdn.net/jcjbusbjk/article/details/103571711$ S% _# W2 ]( `( d





欢迎光临 数学建模社区-数学中国 (http://www.madio.net/) Powered by Discuz! X2.5