Upload
others
View
1
Download
0
Embed Size (px)
Citation preview
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
Version 1.0
LATEX\\\���ùùù���
ܹ&zhjx [email protected]
M�Tû��Æ êÆ�A^êÆ
2015c 1�
Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
SNJ�
1 Ä:�£
2 ©�ü�
3 êÆúª
4 �ãÚL�
5 ��¡
6 p?õU
Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
LaTeX0�
;��ü�^�1¶
�Word�«O�`�¶áu?§¢y§Ø�Word “¤�=¤�”¶p�þ§cÙ´êÆúª¶gÄ?Ò!��Ú^�¶ØXWord´^"
uÐ{§£ØäuÐ�õ�¤@�÷�8¤µ
TEX→ Plain TEX→ AMS-LATEX2 → LATEX
→ LATEX 2ε → XeLATEX→ LuaTEX
MiKTEX—TEX3Windowse�?ÈXÚ"CTEX—rMiKTEXÚ~^óäX GSview, WinEdt3�µC¤�¥©@C"
1y3NõÖ7ü�§SCIÏrÝvÚü�Ñm©æ^ LaTeX.2�5�Ü� {amsmath}÷�§K\� LATEX.3LaTeX §S�?6ì.
Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
LaTeX^�SC
4 ïÆe1: Basic �§Full �NÈ� 5-6 �§ì�"I��÷�§¤±ØX^ Basic� +ƬgC\÷���{.
48c�#���µ2.9.2.164. e1/�µhttp://www.ctex.org/
CTeXDownload
Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
XÛÆÐ LaTeX?
(1) ÀJÐ�\�]�5§kXÚ/Æ�HÄ��“�{”�£§Ø��m©ÒïĦ^,���¶
(2) õöS§¢�¥ÅÚJp"
LaTeXÆSØ�µhttp://bbs.ctex.org/index.php
http://bbs.chinatex.org/forum.php
5'Xµlshort-zh-cn, LaTeX Notes.Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
WinEdt.¡
Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
÷�
*.sty
�Or LATEX�õU§ ?��9Ï©�"\÷�§´�¦^÷�¥½Â�·-½�¸"
NoV\÷�º �ó«\·-µ\usepackage{÷�¶}
$1�§gÄ�Ñ\1I�V\¶½ö§¦^÷�+nìV\÷�6¶½ö§ÃÄe1÷�§¿V\��½8¹eµ
X:\CTEX\MiKTeX\tex\latex
V\�÷�I�M# TEXXÚ7§Ú½µ
m©—§S—CTeX—MiKTeX—Maintenance(Admin)—Setting(Admin)—Refresh FNDB
6WinEdtI�§Accessories—MiKTeX—MiKTeX Package Manager, é�÷�¶m� Install.
74 TEXXÚ��#÷���3.Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
~^÷�
÷�¶¡ ÷�0�CJK |±¥F¸�Àæ�óü�
amsmath êÆÎÒ�úªamssymb êÆÎÒ�iNamsthm êƽn�ª��
color ôÚnatbib +n©zÚ^lineno )¤1Òtitlesec )¤Ù!IK�ªfancyhdr ½��wÚ��
geometry ½��w�ªmulticol õ9ü�hyperref � pdf©�Mï�?ó�
algorithm �{ü�float +n2ÄN{� �£ã!L�¤
Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
©�(�
\documentclass[a4paper,11pt]{article} %©�a.(²\usepackage{amssymb} %\\÷�\begin{document} %�©m©\title{A Example\footnote{By ...}} %"IK"Ú"�5"·-\author{Zhang Jingxin\thanks{The ...}} %"�ö"Ú"�ö5"·-\maketitle %")¤IK"·-\tableofcontents %")¤8¹"·-\begin{abstract} %"Á�"�¸First Document are as follows ...
\end{abstract}
\section{Some Interesting Words} %"!"·-Well, and here begins my lovely article.
\subsection{Good Bye World} %"f!"·-Here it ends.
\begin{thebibliography}{9} %"ë�©z"�¸\bibitem{1} ...
\end{thebibliography}
\end{document} %�©(å
*$1 §Sµ:óä9\oUÜ”B”�>��n�§À“pdfLATEX”.
Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
A:`²
(1) ïƦ^ pdfLATEX?È8¶
(2) ©���é©�µ·-!êâÚ5º9¶·-{ÊÏ·-—– \·-¶;�¸10 —– \begin{�¸¶}...\end{�¸¶}.
(3) “\begin{document}”c¡Ü©�“�ó«”µ©�a.!\÷�!·-½Â!�Û��·-¶
(4) ©�a.£*.cls¤§�)g�� article, book, report, letter�§±9¤k����ª©�¶
(5) ©�Ü6(�µIK!�ö!Á�!Ù!!!ë�©z�"
8kP��?È�ª´ dvipdfmx, I�k LATEX)¤ dvi©�§2 dvitopdf)¤ pdf©�.
9±%å©. 5ºõ1µÀ¥—m� Insert Comment.10�¸§Ò´^5?n uÙS�©��“¬”·-.
Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
¥©©�
\documentclass[11pt,a4paper]{article}
\usepackage{CJK} % |±¥©�÷�\newcommand{\song}{\CJKfamily{song}} % ½ÂyN\newcommand{\sihao}{\fontsize{14pt}{\baselineskip}\selectfont}
%i��\begin{document}
\begin{CJK*}{GBK}{song}
{\sihao ù´��CJK~f§¦^GBK?èÚsongiN"}
\end{CJK*}
\end{document}
`²µ
(1) ¥©©�I�“\\¥©÷�”Ú“½Â¥©iN”±|±¥©11"
(2) {CJK*}�¸�{CJK}�¸«O§cöÎÜÇ�S./gÄ�ÑÇi����§�=©Ú¥©q�?Ò¬C�“�@”§d�I�3¥m�\˜"
11XeLATEX�±gÄN^>MXÚiN, ý�¿Âþ�Ó�|±¥=©.Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
©�(�¥©z
¦^ {abstract}�¸µ\begin{abstract} ...\end{abstract}. ÑÑ�J�µAbstract, �·Ü=©©�"XÛ¢y¦^Ó��·-§ÑÑ�J´¥©�“ÁÁÁ���”Qº�I3�ó«#½Â·-µ
\renewcommand{\contentsname}{8¹} 12
\renewcommand{\listfigurename}{ã8¹}\renewcommand{\listtablename}{L8¹}\renewcommand{\partname}{1 \thepartÜ}\renewcommand{\chaptername}{1 \thechapterÙ}\renewcommand{\figurename}{ã}\renewcommand{\tablename}{L}\renewcommand{\bibname}{ë�©z}\renewcommand{\appendixname}{N¹}\renewcommand{\indexname}{¢Ú}\renewcommand{\abstractname}{Á�}\renewcommand{\refname}{ë�©z}
12�±��Çi�ª, 'X\o!çN�.Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
ãá�må
�1!��µr��1^ \\, Ï~ LATEX¬gÄ�1§ã��1ïÆ^“��1”¶r���^ \newpage;
�!m!Ø¥éà�¸µ {flushleft}, {flushright}, {center};Ä1 ?µ \indent, \noindent;
1åµ�� 1.5�1å13µ\linespread{1.5};��ü1m�xålµ \vspace{?¿�Ý}, \smallskip, \medskip,\bigskip, \vfill14.
~^��Ýü
in—=�¶ cm—f�¶ mm—Î�¶ pt—:, 1�¶
em—�ciNe‘M’�°Ý¶ ex—�ciNe‘x’�pݶ
mu—êÆ�¸e�ü �ݧ1/18 em.
13ù´UC��©�1å. UCÜ©1å^÷� {setspace}.14W÷��. ·^ur,1©i^�xí��¡�.Ü.
Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
AÏÎÒ��x°Ý
AÏiε£åAÏ�^���Τ
iÎ # $ % & { } ˜ \·- \# \$ \% \& \ \{ \} \˜{} \textbackslash
AÏÎÒ15µ
ÎÒ ‘ ’ “ ” —16 ∼ ◦C·- ` ' `` '' --- $\sim$ $ˆ\circ \mathrm{C}$
�x°Ýµ
\quad —�ciNº���x¶ \qquad—2�\quad¶
\, \; \: —�TI:�°Ý§êÆ�¸¥¦^¶
~—¥©�¸ {CJK*}e=©i1Ú¥©�m^��x¶\hspace{?¿�Ý}—�?¿�ݶ \hfill—W÷�1"
15Ù¦AÏÎÒ�WinEdtI�§ÎÒ8µSymbolsÚ International9.16�»òÒµ\raisebox{0.5mm}{-----}. p1–3: p1--3.
Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
iNÚiÒ
=©iNµ
\textrm{...} roman \textbf{...} bold face\textsf{...} sans serif \textit{...} italic\emph{...}17 emphasized \underline{...} underline
=©iÒl���µ
\tiny, \scriptsize, \footnotesize, \small, \normalsize, \large, \Large,
\LARGE, \huge, \Huge
¥©iNÚiÒ18µ
\newcommand{\song}{\CJKfamily{song}}\newcommand{\wuhao}{\fontsize{10.5pt}{10.5pt}\selectfont}{\song \wuhao ¥©ÊÒyNÿÁ} % ¦^½Â�iNiÒ
17rN£âÑØÓ¤. ±��N, K�N; ±��N, K�N.18Ù¦¥©iN£fs, kai, hei, li, you¤!iÒ�½Âaq.
Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
��Ú^Ú�5
��Ú^µ
LATEX¥Ù!!!êÆúª!ã!L!�è��?Ò´d“�¸”gÄ¢y�§�¦^ù?Ò
1. ½ÂI\µ3 \begin{�¸¶}�¡§^ \label{I\¶};2. ¦^I\Ú^µ\ref{I\¶}19.
�5µ�©¥I�\�5� �§\þ \footnote{�5SN}.e�UC�5?Ò/ª20µ
\renewcommand{\thefootnote}{\roman{footnote}}
19�èÚ^: \pageref{I\¶}; êÆúªÚ^��±^\eqref{I\¶}, gÄ�þ�m�)Ò.
20Ï^�?Ò/ªk 5«µ\arabic, \alph, \Alph, \roman, \Roman.Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
�z
ë�©z�¸µ
\begin{thebibliography}{99} 21
\bibitem{Ú^IP} J.K. Rowling, Harry Potter and the
Philosopher ’s Stone. Bloomsbury, London, 1997.
\end{thebibliography}
Ú^ë�©zµ
d©z \cite{Ú^IP}� · · ·
þIÚ^ë�©zµ3�ó«\þ
\newcommand{\upcite}[1]{\textsuperscript{\cite{#1}}}
Ø Ú^ë�©z�?Òµ\÷�
\usepackage[numbers,sort&compress]{natbib}21 ‘99’w� LATEX©z?Ò�õÓâü ê, éà?Ò^.
Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
�L�¸
\begin{itemize}\item C++\item Java\end{itemize}
C++
Java
22
\begin{enumerate}\item C++\item Java\end{enumerate}
1. C++
2. Java
\begin{description}\item [C++] ?§�ó\item [Java] ?§�ó\end{description}
C++ ?§�óJava ?§�ó
22 {enumerate}�¸, �±g½Âêi?Ò�ª, ~X: \item [(1)].Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
AÏ�¸
Á¹�¸23µ{quote}!{quotation}!{verse}quoteüàÑ ?§quotation3 quoteÄ:þO\Ä1 ?§verse' quoteõ1�1å� ?"
��Ñѵ 24
\begin{verbatim}scanf(“%f\n”, &x);printf(“Hello , world!”);\end{verbatim}
scanf(“%f\n”, &x);printf(“Hello , world!”);
½öµ
\verb|printf(”Hello , world!”);| % ·^uü1©i.
23·^uS w«�Ú©!Á¹!�y�.24e^ {verbatim*}½ \verb*, ��^ w«.
Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
Ýf
\mbox{ü1©�}µÃµ§�^uêÆúª¥m�\©i¶\fbox{ü1©�}µkµ§�^5\>µ¶\makebox[°Ý][éà�ª]{ü1©�}µÃµ¶\framebox[°Ý][éà�ª]{ü1©�}µkµ¶p?Ýfµ 25
\fbox{\parbox[c][50pt][c]{125pt} {À�µ°Ý!pÝ!Üé
à!SÜéà¶\\t—Ø º §c—Ø ¥ §b—Ø
."}}
À�µ°Ý!pÝ!Üéà!SÜéà¶t—غ§c—Ø¥§b—Ø."
25\parbox�±�¤{minipage}�¸.Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
ôÚ
¦^ {color}, {xcolor}÷�"
©iôÚ
À¥�\Ú�©i§: WinEdtI� RGB ColorUܧÀJ,«ôÚ¶½ö¦^ôÚ÷�¥½Â�ôÚµred, green, blue, black,
white, cyan, magenta, yellow, gray� \color{red}{...}
�µôÚµ
\usepackage{color}\definecolor{DarkBlue}{rgb}{0.00,0.08,0.45} % g½ÂôÚ\pagecolor{DarkBlue} % ���µôÚ\color{red} % ��©iôÚ
Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
nÜ`²
êÆ�ªeµ
1. �ó«\þ {amsmath}÷�¶2. CþÑ� italic�N¶4i1�áµ\mathrm{...};3. ØU�1§ØU�1£\\¤§�Ñ��¶3�xmå^µ˜\, \; \: \quad \qquad \! 26
4. ©ü«/ªµ1Súª $...$ Ú1múª£Ø¥§ÕÓ�1¤ \[...\]; eé1múª£gĤ?Òµ
\begin{equation}. . . \end{equation}
5. úªSB�“©i”µ\mbox{. . . }½ö \textrm{. . . }27.
6. úªmå!iN��għ�r��½o«iN��µ\displaystyle —1múª��; \textstyle —1Súª��;
\scriptstyle —�Iúª��; \scriptscriptstyle —�?�I��.26�xmå©O�µ1/4em, 3/18em, 4/18em, 5/18em, 1em, 2em, -3/18em.
KÒL«~�må.27ü�·-p¡���ÑØ�Ñ.
Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
���
éuÐÆö§k��/Ï MathType Ñ\êÆúª�$»(F"Åì{øù«�6): �mMathType,
ëê—=�—Ù¦�ó—‘=�’À“Latex 2.09 and later”§(½
ù�§lMathTypeI�E��úª§Êb�WinEdt, Ò´Tú
ª� LaTeX �è"
�ÎÒµ
�êµ\|...\| ýé�µ|...|½ \lvert...\rvert〈...〉: \langle...\rangle ∅: \emptyset A\B: A \setminus B
�ÑÒ(. . . · · ·...
. . .)µ\ldots \cdots \vdots \ddots(n
k
): n \choose k f ′(x): f ’(x)½ fˆ\prime (x)
126C: {}ˆ{12} {\phantom{0}6}\textrm{C}
Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
���
~^�êÆiNµ
\mathrm ABCFLMNXYZ \mathbb ABCFLMNXYZ\mathcal28 ABCFLMNXYZ \mathfrak ABCFLMNXYZ
oNêÆÎÒµ
{\boldmath{$\mu, M, N$}} µ,M,N 29
F1i1µ �WinEdtI�§ÎÒ8µGreek9¶
þeIÚ�Òµ30 þIµˆ{...}; eIµ {...}; �Òµ\sqrt{...}©êµ \frac{©f}{©1}, \dfrac{©f}{©1}31.
28I� {amssymb}÷�.29d�´©��ª.30��i1½ÎÒ�þeIØ^\�)Ò. �Ò�±�ëê§~X 3
√2:
\sqrt[3]{2}31L«1múª���©ê. aq� \tfrac.
Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
���
$�ε
\pm \mp \times \cdot\div \cap \cup \geq\leq \neq \approx \equiv\notin \ll \gg \triangleq
± ∓ × ·÷ ∩ ∪ ≥≤ 6= ≈ ≡/∈ � � ,
Ú!È!4�!È©µ\sum, \prod, \lim, \int. «~µ32
\sum {n=1}ˆ\infty x n 1Sµ∑∞
n=1 xn 1mµ∞∑
n=1xn
er�þeI3þe�Úmý§^ \limits, \nolimits. ~X,
\sum\limits {n=1}ˆ\infty x n
32ÙþIeI, gÄ3mý(1S), ½þe�(1m). ·-�Ó.Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
���
AÏ4�µ\limsup {n \to \infty}\liminf {n \to \infty}\lim {{n,m \to \infty} \atop {n \neq m}}
lim supn→∞
lim infn→∞
limn,m→∞
n 6=m
E,È©µ33µ \iint, \iiint, \idotsint, \oint∫∫ ∫∫∫ ∫
·· ·∫ ∮
��޵34
←− \longleftarrow −→ \longrightarrow←→ \longleftrightarrow ⇐= \Longleftarrow=⇒ \Longrightarrow ⇐⇒ \Longleftrightarrow
AÏ�Þµ x n \xrightarrow[n≥N]{w} x 0 xnw−−−→
n≥Nx0
33�Ð�õ�È©·-^ {esint}÷�.34���Þ, WinEdtI�, ÎÒ8: --->...
Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
���
5ÑÎÒµ
a \bar{a} a \tilde{a} a \hat{a}~a \vec{a} a \dot{a} a \ddot{a}
ı—\imath —\jmath
�I5ÎÒµ 35
abc \overline{abc}︷︸︸︷abc \overbrace{abc}
−→abc \overrightarrow{abc}
←→abc \overleftrightarrow{abc}
abc \widehat{abc} abc \widetilde{abc}
x = (\underbrace{1,\cdots,1} {n\mbox{\scriptsize�}},0,\cdots)
x =(
1, · · · , 1︸ ︷︷ ︸n�
, 0, · · ·)
35eI5, r‘over’�¤‘under’.Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
���
UC“)Ò”��µ ( ) [ ] { } 〈 〉 | | ‖ ‖ /
gÄN!��36µ\left \right
äNN!��µ
\big — 1.5�¶\Big — 2�¶\bigg — 2.5�¶\Bigg — 3�
~µ
\left\| \frac{x+y}{2} \right\|\big([(a+b)ˆ2+cˆ2]+d \big)ˆ2
∥∥x+y2
∥∥ ([(a+b)2+c2]+d
)2
36vk 1.5�.Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
array�¸(Ý)
{array}�¸37^u�à/ÑÑ n1§m����|"^ \\©1§^ &©�"
\begin{array}{ccc}x {11} & x {12} & \cdots \\x {21} & x {21} & \cdots \\\vdots & \vdots & \ddots\end{array}
x11 x12 · · ·x21 x22 · · ·
......
. . .
* {ccc}, L«‘3’�Ñ‘Ø¥’éà"
^ {array}�¸ÑÑݵ
\left( \!\! \begin{array}{cc}1 & 2 \\3 & 4\end{array} \!\! \right)
(1 23 4
)
377L3êÆ�ªe.Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
array�¸(©|úª)
Ù¦Ý�¸38: {pmatrix}, {bmatrix}, {Bmatrix}, {vmatrix}.«~µ
\begin{bmatrix}a & b \\c & d\end{bmatrix}
[a bc d
]
^ {array}�¸ÑÑ©|úªµ
y = \left\{ \begin{array}{cc}\!\! \dfrac{ax}{b} & \mbox{e } x \geq0 \\\!\! 0 & \mbox{Ù¦}\end{array} \right)
y =
{ ax
be x ≥ 0 ;
0 Ù¦.
38 smallmatrix�¸�±)¤1SÝ.Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
õ1úªéà
{eqnarray}�¸39^uõ1úªéà"^ &...&Y4“éàÎÒ”¶^ \\�1"Ø�?Òµ
\begin{eqnarray*}f(x,y) &=& a(x-y)ˆ2 \\&=& axˆ2 - 2axy + ayˆ2 \\&\leq& \cdots\end{eqnarray*}
f(x, y) = a(x− y)2
= ax2 − 2axy + ay2
≤ · · ·
\begin{eqnarray*}&& x = a + b + c + d \\&\leq& a + b + c + d \\&& + e + f \\&\leq& \cdots\end{eqnarray*}
x = a + b + c + d
≤ a + b + c + d
+e + f
≤ · · ·
39�kéõÙ¦�¸, Ø��\ã.Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
õ1úªéà
�?Òµ
\begin{eqnarray}f(x,y) &=& a(x-y)ˆ2 \nonumber \\&=& axˆ2 - 2axy + ayˆ2 \\&\leq& \cdots \nonumber\end{eqnarray}
f(x, y) = a(x− y)2
= ax2 − 2axy + ay2 (3.1)
≤ · · ·
Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
½n�¸
¦^ {amsthm}÷�§T÷�¥½Â {proof}�¸§±9½Â“½na�¸”�·-µ\newtheorem.
\newtheorem{½n�¸¶}[?ÒOêì]{½n¶ÑÑ�ª}[section]
* section, L«½n?Ò�“!Ò”, “ÙÒ”K^ chapter.
\newtheorem{thm}{Theorem}[section]\newtheorem{cor}[thm]{Corollary} 40
\theoremstyle{definition} 41
\newtheorem{definition}{Definition}[section]\begin{thm} \cdots \end{thm}\begin{proof} \cdots \end{proof}\begin{cor} \cdots \end{cor}\begin{definition} \cdots \end{definition}
Theorem 3.1. · · ·Proof. · · ·Corollary 3.2. · · ·Definition 3.1. · · ·
* [thm], L« Corollary�?ÒÚ Theorem�^��Oêì.40Ù¦ Lemma, Proposition, Example�aq.41 definitionº�: IKoN, SN�á.
Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
½n�¸¥©z
�I�rþ�½Â¥�“½n¶ÑÑ�ª”U�¥©§±9proof¶¡¥©z§�±��Ù�ª"
\newtheorem{dingli}{\indent \song \textbf{½n }}[section]\newtheorem{yinli}[dingli]{Ún }\newtheorem{dingyi}{\indent \song \textbf{½Â }}[section]\renewcommand{\proofname}{\indent \hei y²}
¦^þ¡�½Âµ
\begin{dingli} ... \end{dingli}
Ö¿µ ½ÂØ?Ò�½n�¸ {thm1}:
\newtheorem*{thm1}{\textbf{Remark}}
Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
Oêì�úª?Ò
Oêì(counter): LATEX¥Ù!!½n!½Â!úª!ã!L�gÄ?ÒÅ�´ÏLSÜ�“Oê씢y�"
± section�~§�m© sectionOêì�� 0, Ñy�g\section{...}, Ù�\ 1; Oêì�UC§ÙláOêìgÄ�"§'XÙÚ!"�±UCOêì��µ
\setcounter{Oêì¶}{�} 42
��úª?Ò�!Òµ
\numberwithin{equation}{section}
?Uúª?Ò�w«�ªµ(d (2.1)U� (2-1)
)\renewcommand{\theequation}{\thesection-\arabic{equation}}
42'X, \setcounter{equation}{2}, e�úª?ÒÒ´ *.3Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
½núªÚ^
\begin{thm} \label{thm3}Let $a, \, b, \, c$ be ...\end{thm}By the Theorem \ref{thm3}, we have\begin{equation} \label{eq2}cˆ2 = aˆ2 + bˆ2\end{equation}By \eqref{eq2}, ... 43
Theorem 3.3. Let a, b, c be ...
By the Theorem 3.3, we have
c2 = a2 + b2 (3.2)
By (3.2), ...
43Ú^úª�, \eqref� \ref�«O: cögÄ�k�)Ò.Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
�ã
LATEX|±±�êÆã/µ�ã!�þ!�±9Ù¦{üêÆã/"¦^ {picture}�¸Ú�±ã·-44"
�㧦^ {graphicx}÷�§¿üçüã¡I� {subfigure}÷�45§(¹��ã¡ �I� {float}÷�"46
\includegraphics[width=...,height=...,angle=...,scale=...]{´»+㡶}
*width—°Ý; height—pÝ; angle—_��^=�Ý; scale— �'
~.47
5¿: pdfLATEX?È�ª, Ø|± eps�ªã¡. 48
44�[SNë� lshort-zh-cn.45½/Ï {minipage}�¸.46�õ�ã�£ÚE|ë�5LATEX 2ε �ã�H6.47°ÝÚpÝ�������§,���âã¡�'~gÄCz.48I�=�¤Ù¦ã¡�ª, ��´ pdf.
Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
�ã
\begin{figure}[!h] 49
\centering\includegraphics[width=0.3\textwidth]{images/pic1.jpg} 50
\caption{This is a test}\end{figure}
Figure 1: This is a test
49ëê [!h]4ã¡3�½ �. Ï~^ [htbp], L«`k?O´: here—top—bottom—page. k�ãLc¦^ \clearpage·-¬ék^.
50ã¡´»l tex©�¤3�e?8¹�å.Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
L�
^ {tabular}�¸"\hlinexî�¶|xç�¶&©�¶ \�1"{üL�µ51
\begin{tabular}{|l|c|r|}\hlineö�XÚ &u1� &?6ì \\\hlineWindows & MikTeX & TexMakerX \\\hlineUnix/Linux & teTeX & Kile \\\hline\end{tabular}
ö�XÚ u1� ?6ìWindows MikTeX TexMakerXUnix/Linux teTeX Kile
51�m���±^ | |xVç�.Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
n�LÚ���°
\begin{tabular}{p{80pt}p{80pt}p{80pt}} 52
\toprule 53
ö�XÚ &u1� &?6ì \\\midruleWindows & MikTeX & TexMakerX \\Unix/Linux & teTeX & Kile \\\bottomrule\end{tabular}
ö�XÚ u1� ?6ì
Windows MikTeX TexMakerXUnix/Linux teTeX Kile
52���°�L�, SNgÄ�éà. e��Ø¥½méà, ^·-“>{\centering}p{...pt}”, “>{\raggedleft}p{...pt}”.
53I� {booktabs}÷�.Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
E,L�
\begin{table}\centering\begin{tabular}{|c|c|c|c|c|}\hline\multirow{2}{*}{multi-rows} & \multicolumn{2}{c|}{multi-columns}& \multicolumn{2}{c|}{\multirow{2}{*}{multi-row and col}} \\\cline{2-3} % \cline{i-j}L«l1 i�xî��1 j�& column-1 & column-2 & \multicolumn{2}{c|}{} \\\hlinelabel-1 & label-2 & label-3 & label-4 & label-5 \\\hline\end{tabular}
multi-rowsmulti-columns
multi-row and colcolumn-1 column-2
label-1 label-2 label-3 label-4 label-5
Table 1: A Example of Complex Table
Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
Beamer��
©�aÚÌK
\documentclass[15pt,CJK,compress]{beamer} 54
\usetheme{Warsaw}\usecolortheme{lily}
ÌN(�
\section{...} % ^u)¤8¹!Ö\Ú�Ê^\begin{frame}\frametitle{�IK}......\end{frame}
z� {frame}�¸éA��¡���, p¡�±¦^�L�¸ {itemize}Ú¬�¸µ
\begin{block}{¬¶¡}...\end{block}54%@´7x�µ, ëê\þ red, KC¤ùç�µ.
Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
Beamer��
IK�
\begin{frame}\titlepage % )¤IK�\end{frame}
IK����¹ \title{...}, \subtitle{...}, \author{...}, \date{...},\institute{...}, \titlegraphic{...}.8¹�
\begin{frame}\frametitle{SNJ�}\tableofcontents[�À�55]\end{frame}
55 pausesections —Å^w«8¹.Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
Beamer��
½n�¸=©½n�¸µtheorem, lemma, corollary, definition... ®½Â§��¦^"¥©½n�¸I�3�ó«#½Âµ56
\newtheorem{dingli}{\hei ½n }
Theorem
Let ...
½n
�...
beamer½n�¸%@Ø?Ò§e?Ò3�ó«\þ·-µ
\setbeamertemplate{theorems}[numbered]
56Ù¦Ún!íØ!·K�aq.Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
pdfscreen��
pdfscreen��� beamer��¦^aq§Øõ\ã"
©�aKÞ
\documentclass[a4paper]{article}\usepackage[screen,panelright,gray]{pdfscreen}\usepackage{CJK}
ÌN(�
\section{...} % ^u)¤8¹!Ö\Ú�Ê^\begin{slide}......\end{slide}
Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
�¡ÙÛ
©9§¦^ {multicol}÷�57
\documentclass[twocolumn]{article} 58
©�S¦^ \onecolumn, \twocolumn·-§L«,å#�Uü9½V9�ªü�©�"
\setlength{columnsep}{12pt} % ��9må\setlength{columnseprule}{1pt} % ��9m©��o[59
\begin{multicols}{2} % ü9�¸. . .\end{multicols}
57T÷�é2ÄN|±ØЧI��*§~µ\begin{figure*}.58%@� onecolumn.59%@� 0.
Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
�¡ÙÛ
�¡º�Ú>姦^ {geometry}÷�§ü«�ªµ
\usepackage[paperwidth=100mm,paperhight=150mm]{geometry}\usepackage[top=2in,bottom=1in,left=1in,right=1in]{geometry}
�¡�ª§=�w���ª§�o«µ
empty �w!���xplain �w�x§��Ø¥w«�è60
headings �ww«Ù!¶Ú�è§���x61
myheadings �ww«�èÚ^r½Â&E§���x
\pagestyle{plain} % ����©�\thispagestyle{empty} % ���c�
60Ø book§Ù¦©�a%@Xd.61 book©�a%@Xd.
Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
½��w��
¦^ {fancyhdr}÷�
\pagestyle{fancy}\fancyhf{} % �Ø��w��\fancyhead[CE]{*****�ÆnÆa¬Æ Ø©}\fancyhead[CO]{\leftmark}\fancyfoot[LO,RE]{\rightmark}\fancyfoot[C]{- \thepage -} 62
\fancypagestyle{plain}{ \renewcommand{\headrulewidth}{1.2pt} }\renewcommand{\chaptermark}[1]{\markboth {\chaptername\thechapter \ #1}{}} % ½ÂÙIP \chaptermark\renewcommand{\sectionmark}[1]{\markright {\thesection \ #1}}
� ëê LCR©OL«�¥m¶OL«Ûê�¶EL«óê�¶
� \leftmark, ��¿N^ÙIP \chaptermark; \rightmark, ��¿N^!IP \sectionmark.
62%@Ø©Ûó�"��^{ü·-µ\cfoot{...}. aq�k \lhead�.Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
¢Ú
ü�¢Ú§¦^ {makeidx}÷�
\usepackage{makeidx}\makeindex......\begin{document}�©0��«S�\index{S�}�{... % �©¥IP¢Ú �......\printindex % ©�(��<¢Ú\end{document}
� $1^Sµk pdfLATEX?ȧ2$1“Make Index”(a-zUÜ)¶2 pdfLATEX?È"
Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
¢Ú
õ«¢Ú§¦^ {multind}÷�
\makeindex{Terms}\makeindex{Names}......Mann\index{Names}{Mann}S�\index{Terms}{S�}�{.........\printindex{Terms}{Index of terms}\printindex{Names}{Index of Names}
� $1�{µ$1 pdfLATEX,�mCommand Prompt: Ñ\“makeindex Terms.idx”,£�;Ñ\“makeindex Names.idx”,£�¶2$1pdfLATEX
Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
�ó�
¦^ {hyperref}÷�63§gÄ���Ú^!ë�©zÚ^!���\þ�ó�
\usepackage[colorlinks,linkcolor=red,anchorcolor=blue,citecolor=green]{hyperref} % ëê´�½�«ó�ôÚ64
\hypertarget{ó�¶}{8I©�}\hyperlink{ó�¶}{ó�} % :“ó�”gĽ �8I©�
\url{www.baidu.com}\hurl{zÝ}{www.baidu.com} % w«ó�©i“zÝ”§Ûõ��
\href{mailto:***@163.com}{***@163.com} % ó�� Email
*ã 1, L 2, �ó�êi?Ò§eó�“ã 1”Ú^�^ \autoref.63^ pdfLATEX?È, �;�ÀâT÷���Ù¦÷��¡.64e��3�ó�Ø�ôÚK^ black.
Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
#ï·-!�¸
#ï·-65
\newcommand{·-¶}[ëê�ê]{·-�½Â}
^#1,...,#9��ëCþD4ëêSN"
#�66
\newenvironment{�¸¶}[ëê�ê]{before}{after}
Ù¥§before—d�¸©��c�£�ª�¤?n¶after—d�¸©����£�ª�¤?n"
65½Â·-^ \renewcommand[...]{...}.66½Â�¸^ renewenvironment.
Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
BibTeX
5�z+nڦ^�z:
ò�aë�©zw«�ªÕáÑ5���©� *.bst, �)article, book, conference, proceedings, phdthesis�õ«a.;
�\ bib©�c\·-µ \bibliographystyle{bst©�¶}
z��ë�©z3¤áa.eUì�êâ�¹\§��*.bibÚ�+n§~µ
@book{Rowling97,author = “Joanne K. Rowling”,title = “Harry Potter and the Sorcerer’s Stone”,publisher = “Bloomsbury, London”,year = “1997”,pages = “1-270”,}
* $1 pdfLATEX, 2$1 BibTex(BibUÜ), 2$1 pdfLATEX.
Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
natbib
�´Ú bib©��@¦^
\usepackage[authoryear,sort&compress]{natbib}
Ü©ëêµ67
authoryear—U�öcÚ^; numbers— UêiÚ^;round—�)ÒÚ^; curly—s)ÒÚ^; angle—k)ÒÚ^;super—þI?ÒÚ^; sort—õ�Ú^UÄi1üS;sort&compress—üS¿Ü¿Ú^(~, 2-6)
U [�ö-c]Ú^�ë�©z
\citet{...} % �J: “�ö¶ [2012]”\citep{...} % �J: “[�ö¶, 2012]”......\bibliographystyle{plainnat} % *.bst, ��ë�©z�ª68
\bibliography{bib©�¶} % l bib©��\ë�©z
67%@´ authoryear, sqare (�)ÒÚ^), colon (©Ò©�õ�Ú^).68�k abbrvnat, unsrtnat.
Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
�©�©�
Ö!.�Ø©��©�§�±^ \input{...}Ú \include{...}69 ©¤õ�f©��|Ü"
\documentclass[12pt,openany,twoside]{book}\input{setup/package.tex} 70
\begin{document}\input{setup/format.tex}\input{preface/cover.tex}\tableofcontents\include{body/chapter1.tex}......\bibliography{reference.bib}\end{document}
69«O´§cö��¹?5¶�ö�#å��.70L«�\©�¤38¹e, setup©�Yp� package.tex©�, �M¶�±
�Ñ.Ìù<µÜ¹& LATEX\�ù�
Ä:�£ ©�ü� êÆúª �ãÚL� ��¡ p?õU
�z
¥© TEX �¬. �°Ø�{á� LATEX 2ε 0�—½ 140 ©¨Æ¬ LATEX 2ε. ftp://ftp.dante.de/tex-archive/info/lshort/chinese/lshort-zh-cn.pdf
��X. X�âü�XÚ{0(1��). ALPHA CULCTURE& EDUCATION. 2010. http://mirrors.xmu.edu.cn/CTAN/info/latex-notes-zh-cn/latex-notes-zh-cn.pdf
�ïÕ. LATEX�Eü�ùÂ(��¡). uÀ���ÆêÆX,2007.
Herbert Voβ. Math mode v. 2.47. http://www.tex.ac.uk/
tex-archive/info/math/voss/mathmode/Mathmode.pdf
Ìù<µÜ¹& LATEX\�ù�