How To Write Latex Package In Chinese 1199690669246624 2

49
? L A T E X 9A^ ¯aZ LittleLeo@newsmth u˘O¯Xp5U/ 2007.9.27

Transcript of How To Write Latex Package In Chinese 1199690669246624 2

Page 1: How To Write Latex Package In Chinese 1199690669246624 2

?� LATEX ÷�9ÙA^ÅaZ

LittleLeo@newsmth

�u�ÆO�ÅXp5U¤

2007.9.27

Page 2: How To Write Latex Package In Chinese 1199690669246624 2

��w�8�

ý��£

XÛ?� LATEX÷�

ThuThesis�'

Ù§

Page 3: How To Write Latex Package In Chinese 1199690669246624 2

��w�8�

Ø´ TEXÄ:ù�

Ø´��¦^0�

شة���H

�ش;�J� TEX

�ش\D Anti MS

Page 4: How To Write Latex Package In Chinese 1199690669246624 2

ý��£

Page 5: How To Write Latex Package In Chinese 1199690669246624 2

�o /́{0º

¤k{�ÀÜÑ-<� µ{µ!{ !{å!{�,,

—é�5·��7��6

Page 6: How To Write Latex Package In Chinese 1199690669246624 2

�o /́{0º

¤k{�ÀÜÑ-<� µ{µ!{ !{å!{�,,

—é�5·��7��6

{´5K�8Ü

ÙÛ'~

iNÀJ

��

1©äi

¥=·ü

I:BK

UÞ/�

�� O

�mmm

�w��

��?Ò

Ù§5Ý

Page 7: How To Write Latex Package In Chinese 1199690669246624 2

�o /́��0º

SN�/ª�Í�Å��y

♣ ù´�öµ

\author{ÅaZ}

♣ ù´IKµ

\title{?�÷�}

Page 8: How To Write Latex Package In Chinese 1199690669246624 2

�o /́��0º

SN�/ª�Í�Å��y

♣ ù´�öµ

\author{ÅaZ}

♣ ù´IKµ

\title{?�÷�}

¢y�ª5��·-�8Ü

♣ Ù!mm§çN§nÒ

\def\chapter#1{\cleardoublepage\hei\sanhao #1}

Page 9: How To Write Latex Package In Chinese 1199690669246624 2

7�EU

ÖA�ÖµThe TEXbook, The LATEX Companion, TEX for the Impatient

Page 10: How To Write Latex Package In Chinese 1199690669246624 2

7�EU

ÖA�ÖµThe TEXbook, The LATEX Companion, TEX for the Impatient

7Ö©�µLATEX2ε for class and package writers

Page 11: How To Write Latex Package In Chinese 1199690669246624 2

7�EU

ÖA�ÖµThe TEXbook, The LATEX Companion, TEX for the Impatient

7Ö©�µLATEX2ε for class and package writers

èA�èµLATEX

Page 12: How To Write Latex Package In Chinese 1199690669246624 2

7�EU

ÖA�ÖµThe TEXbook, The LATEX Companion, TEX for the Impatient

7Ö©�µLATEX2ε for class and package writers

èA�èµLATEX

öÄ�õµÄ�� TEXÚ LATEX·-

Page 13: How To Write Latex Package In Chinese 1199690669246624 2

7�EU

ÖA�ÖµThe TEXbook, The LATEX Companion, TEX for the Impatient

7Ö©�µLATEX2ε for class and package writers

èA�èµLATEX

öÄ�õµÄ�� TEXÚ LATEX·-

�Ö©�µ~�÷��/��0ÙG

Page 14: How To Write Latex Package In Chinese 1199690669246624 2

7�EU

ÖA�ÖµThe TEXbook, The LATEX Companion, TEX for the Impatient

7Ö©�µLATEX2ε for class and package writers

èA�èµLATEX

öÄ�õµÄ�� TEXÚ LATEX·-

�Ö©�µ~�÷��/��0ÙG

'5Ø�µcomp.text.tex

Page 15: How To Write Latex Package In Chinese 1199690669246624 2

7�EU

ÖA�ÖµThe TEXbook, The LATEX Companion, TEX for the Impatient

7Ö©�µLATEX2ε for class and package writers

èA�èµLATEX

öÄ�õµÄ�� TEXÚ LATEX·-

�Ö©�µ~�÷��/��0ÙG

'5Ø�µcomp.text.tex

^ÐóäµGoogle

Page 16: How To Write Latex Package In Chinese 1199690669246624 2

7�EU

ÖA�ÖµThe TEXbook, The LATEX Companion, TEX for the Impatient

7Ö©�µLATEX2ε for class and package writers

èA�èµLATEX

öÄ�õµÄ�� TEXÚ LATEX·-

�Ö©�µ~�÷��/��0ÙG

'5Ø�µcomp.text.tex

^ÐóäµGoogle

��«%µ#�ö

Page 17: How To Write Latex Package In Chinese 1199690669246624 2

O��£

é TEXÚ LATEX�ó�Å�k¤)

♣ 8¹´XÛ¢y�

♣ Ù!·-´©=AÜ©¢y�

♣ aux/bbl©�´�oÀÀ

♣ ��o�õg$1 latex

Page 18: How To Write Latex Package In Chinese 1199690669246624 2

O��£

é TEXÚ LATEX�ó�Å�k¤)

♣ 8¹´XÛ¢y�

♣ Ù!·-´©=AÜ©¢y�

♣ aux/bbl©�´�oÀÀ

♣ ��o�õg$1 latex

~^·-�^{ÚõU

\newif, \ifcondition, \show, \par, \csname, \endcsname, \hbox,\hskip, \vbox, \vskip, \hrule, \vrule, \hspace, \parbox,\minipage, \fontsize, \clearpage, \cleardoublepage, \pagestyle,\setlength, \addtolength, \AtBeginDocument, \AtEndDocument,......

Page 19: How To Write Latex Package In Chinese 1199690669246624 2

O��£ (2)

Ø%·-�^{ÚõU

♣ \defX�µ\def, \let, \newcommand, \renewcommand

♣ \ifX�µ\ifx, \ifnum, \@ifnextchar

♣ \expandX�µ\expandafter, \noexpand

♣ AáÕ1X�µ\relax, \empty

Page 20: How To Write Latex Package In Chinese 1199690669246624 2

O��£ (2)

Ø%·-�^{ÚõU

♣ \defX�µ\def, \let, \newcommand, \renewcommand

♣ \ifX�µ\ifx, \ifnum, \@ifnextchar

♣ \expandX�µ\expandafter, \noexpand

♣ AáÕ1X�µ\relax, \empty

LATEX��.~

♣ \m@ne, \z@, \@ne, \@tempa

♣ \hb@x, \hb@xt@, \@namedef, \@nameuse

♣ \fnum@type, \ext@type, \l@type

♣ \ps@type, \c@counter

Page 21: How To Write Latex Package In Chinese 1199690669246624 2

� LATEXE|

\author´XÛ¢y�º

\def\author#1{\def\@author{#1}}

Page 22: How To Write Latex Package In Chinese 1199690669246624 2

� LATEXE|

\author´XÛ¢y�º

\def\author#1{\def\@author{#1}}

\@ifnextchar´�o¿gº

\def\chapter{\@ifnextchar * {\@chapter[]}{\@chapter}}

\def\@chapter[#1]#2{%\ifopenright\cleardoublepage\else\clearpage\fi\begingroup\hei\san #2\endgroup\vskip20pt\addcontentsline{toc}{#1}}

Page 23: How To Write Latex Package In Chinese 1199690669246624 2

� LATEXE| (2)

XÛ*Ð��·-º

\let\oldcmd=\cmd\def\cmd#1{\precmd\oldcmd#1\postcmd}

Page 24: How To Write Latex Package In Chinese 1199690669246624 2

� LATEXE| (2)

XÛ*Ð��·-º

\let\oldcmd=\cmd\def\cmd#1{\precmd\oldcmd#1\postcmd}

�¸Ú·-k�oØÓº

\newenvironment{\envname}{begin code}{end code}

\def\envname{begin code} % \begin{envname}\def\endenvname{end code} % \end{envname}

\def\begin#1{\csname #1\endcsname}\def\end#1{\csname end#1\endcsname}

Page 25: How To Write Latex Package In Chinese 1199690669246624 2

A�~f

½ÂiÒ

\newlength\thu@linespace\newcommand{\thu@choosefont}[2]{%

\setlength{\thu@linespace}{#2*\real{#1}}%\fontsize{#2}{\thu@linespace}\selectfont}

\def\thu@define@fontsize#1#2{%\expandafter\newcommand\csname #1\endcsname[1][\baselinestretch]{%

\thu@choosefont{##1}{#2}}}

\thu@define@fontsize{chuhao}{42bp}

Page 26: How To Write Latex Package In Chinese 1199690669246624 2

A�~f (2)½Â�w��

\def\ps@thu@headings{%\def\@oddhead{\vbox to\headheight{%

\hb@xt@\textwidth{%\hfill\wuhao\song\leftmark\ifthu@bachelor\relax\else\hfill\fi}

\vskip2pt\hbox{\vrule width\textwidth height0.4pt depth0pt}}}\def\@evenhead{\vbox to\headheight{%

\hb@xt@\textwidth{\wuhao\song%\ifthu@bachelor\thu@schoolename\thu@bachelor@subtitle%\else\hfill\leftmark\fi\hfill}%

\vskip2pt\hbox{\vrule width\textwidth height0.4pt depth0pt}}}\def\@oddfoot{\hfil\wuhao\thepage\hfil}\let\@evenfoot=\@oddfoot}

\pagestyle{thu@headings}

Page 27: How To Write Latex Package In Chinese 1199690669246624 2

A�~f (3)N����L

\RequirePackage{paralist}\def\thu@item@space{%

\let\itemize\compactitem\let\enditemize\endcompactitem\let\enumerate\compactenum\let\endenumerate\endcompactenum\let\description\compactdesc\let\enddescription\endcompactdesc}

\AtBeginDocument{\thu@item@space}

Page 28: How To Write Latex Package In Chinese 1199690669246624 2

A�~f (4)½Â����

\def\thu@define@term#1{\expandafter\gdef\csname #1\endcsname##1{%

\expandafter\gdef\csname thu@#1\endcsname{##1}}\csname #1\endcsname{}}

\thu@define@term{cauthor}% \gdef\cauthor#1{\gdef\thu@cauthor{#1}}

Page 29: How To Write Latex Package In Chinese 1199690669246624 2

A�~f (5))Û'�c

\def\thu@parse@keywords#1{\expandafter\gdef\csname thu@#1\endcsname{} % todo: need or not?\expandafter\gdef\csname #1\endcsname##1{

\@for\reserved@a:=##1\do{\expandafter\ifx\csname thu@#1\endcsname\@empty\else

\expandafter\g@addto@macro\csname thu@#1\endcsname{%\ignorespaces\csname thu@#1@separator\endcsname}

\fi\expandafter\expandafter\expandafter\g@addto@macro%

\expandafter\csname thu@#1\expandafter\endcsname%\expandafter{\reserved@a}}}}

\thu@parse@keywords{ckeywords}\thu@parse@keywords{ekeywords}% \ekeywords{\LaTeX, thesis, fault tolerance}

Page 30: How To Write Latex Package In Chinese 1199690669246624 2

A�~f (6)½ÂÎÒL

\newenvironment{denotation}[1][2.5cm]{\thu@chapter*[]{\thu@denotation@name} % no tocline\noindent\begin{list}{}%

{\vskip-30bp\xiaosi[1.6]\renewcommand\makelabel[1]{##1\hfil}\setlength{\labelwidth}{#1} % label box width\setlength{\labelsep}{0.5cm} % label to text\setlength{\itemindent}{0cm} % label indent\setlength{\leftmargin}{\labelwidth+\labelsep} % left margin\setlength{\rightmargin}{0cm}\setlength{\parsep}{0cm} %\setlength{\itemsep}{0cm} % label vspace

\setlength{\listparindent}{0cm} % parindent from the second par\setlength{\topsep}{0pt} % vskip to top text

}}{\end{list}}

Page 31: How To Write Latex Package In Chinese 1199690669246624 2

XÛ?� LATEX÷�

Page 32: How To Write Latex Package In Chinese 1199690669246624 2

LATEX��aO

�ó«

class: \documentclass{thuthesis}

style: \usepackage{thutils}

äN ª�

Page 33: How To Write Latex Package In Chinese 1199690669246624 2

Ä��ª

l�©

^� ¶¡[9Ï&E] �è

\NeedsTeXFormat{LaTeX2e}[1999/12/01]\ProvidesClass{thuthesis}

[2007/05/13 3.0 Tsinghua University Thesis Template]

%\ProvidesPackage{thutils}% [2007/05/13 3.0 Tsinghua University Thesis Template]

% code body

\endinput

Page 34: How To Write Latex Package In Chinese 1199690669246624 2

��Y~

LATEX÷������8Ü

÷�¶¡ �©iÒ �ܺ�

%%%% Minimal LaTeX class file.%%

\NeedsTeXFormat{LaTeX2e}\ProvidesClass{minimal}[2001/05/25 Standard LaTeX minimal class]

\renewcommand\normalsize{\fontsize{10pt}{12pt}\selectfont}

\setlength{\textwidth}{6.5in}\setlength{\textheight}{8in}

\pagenumbering{arabic} % but no page numbers are printed because:\pagestyle{empty} % this is actually already in the kernel

Page 35: How To Write Latex Package In Chinese 1199690669246624 2

©��o

Õá©��æ�

;�óä�`³

♣ How to Package Your LATEX Package

♣ The Docstrip Program

♣ The doc and shortvrb Packages

♣ ëwþgù��'Ü©

Page 36: How To Write Latex Package In Chinese 1199690669246624 2

y3ÒeÃ�

ØeY[�ÆجiY�

Ŭ

♣ ��

♣ {{

♣ ,,

èA@�Ͷ÷� è

õulͶ÷�/^�è

í�óäµEmacs+AucTEX+RefTEX+CDLTX

Page 37: How To Write Latex Package In Chinese 1199690669246624 2

ThuThesis

Page 38: How To Write Latex Package In Chinese 1199690669246624 2

0�

�u�ÆÆ Ø©��

Ƭ!a¬!Ƭة

ÏL CJK�|±¥©

¦^ Doc�+n©�

http://thuthesis.sf.net

Page 39: How To Write Latex Package In Chinese 1199690669246624 2

Ø%©�µthuthesis.ins, thuthesis.dtx, thubib.bst

Ù§µ«~©�

^{µëw thuthesis.pdf½¦^Ãþ��¡

Page 40: How To Write Latex Package In Chinese 1199690669246624 2

(�

8 ¹

1 ������000��� 1

2 SSSCCC 1

2.1 e1 . . . . . . . . . . . . . . . 1

2.2 ���|¤Ü© . . . . . . . . 2

2.3 O�ó� . . . . . . . . . . . . 3

2.4 m©SC . . . . . . . . . . . . 3

2.4.1 dvi→ps→pdf . . . . . . 4

2.4.2 dvipdfm(x) . . . . . . . 4

2.4.3 pdflatex. . . . . . . . . 4

2.4.4 gÄzL§ . . . . . . 5

2.5 ,? . . . . . . . . . . . . . . . 6

3 ¦¦¦^̂̂`̀̀²²² 6

3.1 'uJ¯ . . . . . . . . . . . . 6

3.2 TT¦^�� . . . . . . 6

3.3 TT«~©� . . . . . . 7

3.4 À� . . . . . . . . . . . . . . . 8

3.5 ·- . . . . . . . . . . . . . . . 9

3.5.1 Ä���·- . . . . . 10

3.5.2 µ¡·- . . . . . . . . 12

3.5.3 ٧ܩ . . . . . . . . 14

3.6 êÆ�¸ . . . . . . . . . . . . 16

3.7 g½Â±9Ù§ . . . . . . . . 17

4 ������ 17

5 ¢¢¢yyy[[[!!! 19

5.1 �&E . . . . . . . . . . . . 19

5.2 ½ÂÀ� . . . . . . . . . . . . 19

5.3 C1÷� . . . . . . . . . . . . 20

5.4 Ì©��ª . . . . . . . . . . . 22

5.4.1 Three matters. . . . . . 22

5.4.2 iN . . . . . . . . . . 23

5.4.3 �¡�� . . . . . . . . 25

5.4.4 �w�� . . . . . . . . 26

5.4.5 ãá . . . . . . . . . . 27

5.4.6 �5 . . . . . . . . . . 28

5.4.7 êÆ�' . . . . . . . . 29

5.4.8 2Äé�±9L� . . 31

5.4.9 ¥©IK½Â . . . . . 32

5.4.10 Ù!IK . . . . . . . . 33

5.4.11 8¹�ª . . . . . . . . 36

5.4.12 µ¡Úµ. . . . . . . 37

5.4.13 Á��ª . . . . . . . . 44

5.4.14 Ì�ÎÒL . . . . . . 45

5.4.15 ��±9(² . . . . . 46

5.4.16 ¢ÚÜ© . . . . . . . . 47

5.4.17 �z . . . . . . . . 48

5.4.18 N¹ . . . . . . . . . . 49

5.4.19 �<{{ . . . . . . . . 49

5.4.20 ÖB . . . . . . . . . . 50

5.4.21 ¢Ú . . . . . . . . . . 51

5.4.22 g½Â·-Ú�¸ . . 51

5.4.23 Ù§ . . . . . . . . . . 52

???UUUPPP¹¹¹ 53

¢¢¢ ÚÚÚ 57

Page 41: How To Write Latex Package In Chinese 1199690669246624 2

Øv

9��#

ÞD�ë�©zµbst

XETEX£�

¢Ú

�è�nµ/{z0!̀ z

Page 42: How To Write Latex Package In Chinese 1199690669246624 2

Øv

9��#

ÞD�ë�©zµbst

XETEX£�

¢Ú

�è�nµ/{z0!̀ z

\�J�µ¢�¿!��!±��z��<�

\�ë�Ú�z�

Page 43: How To Write Latex Package In Chinese 1199690669246624 2

Ù§

Page 44: How To Write Latex Package In Chinese 1199690669246624 2

LATEXY~ (1)\begin{document}

\vspace\vspace\vspace

\vspace

*{0.5cm}\begin\begin\begin

\begin

{center}{\zihao\zihao\zihao

\zihao

{2}\heiti\heiti\heiti

\heiti

{\huge\huge\huge

\huge

\bf\bf\bf

\bf

LaSalle} 定理及其在稳定性分析中的应用{\huge\huge\huge

\huge

$^̂̂

^

*$}}\\[0.7cm]{\zihao\zihao\zihao

\zihao

{4} 无名氏\qquad\qquad\qquad

\qquad

{\large\large\large

\large

$^\dagger^\dagger^\dagger

^\dagger

$}}\\[0.2cm]{\zihao\zihao\zihao

\zihao

{6}(山东大学控制科学与工程学院~~~山东济南 \quad\quad\quad

\quad

邮编 :~{\footnotesize\footnotesize\footnotesize

\footnotesize

\tt\tt\tt

\tt

250061})}\\[0.1cm]\end\end\end

\end

{center}

\begin\begin\begin

\begin

{table}[b]\begin\begin\begin

\begin

{tabular}{l}\rule\rule\rule

\rule

[0.2ex]{5cm}{0.1mm}\\\parbox\parbox\parbox

\parbox

[t]{0.95\textwidth\textwidth\textwidth

\textwidth

}{\setlength\setlength\setlength

\setlength

{\baselineskip\baselineskip\baselineskip

\baselineskip

}{0.8\baselineskip\baselineskip\baselineskip

\baselineskip

}} {\zihao\zihao\zihao

\zihao

{6}\hspace\hspace\hspace

\hspace

{-2mm}{\small\small\small

\small

$^̂̂

^

*$}本研究得到国家自然科学基金资助(批准号:~{{\footnotesize\footnotesize\footnotesize

\footnotesize

}})和山东省科技发展计划资助(批准号:~{{ \footnotesize\footnotesize\footnotesize

\footnotesize

}}).}\\[-1.5mm]{\zihao\zihao\zihao

\zihao

{6}\,\,\,\,\hspace\hspace\hspace

\hspace

{-2mm}{{\small\small\small

\small

$^\dagger^\dagger^\dagger

^\dagger

$}联系人:~\heiti\heiti\heiti

\heiti

}: 山东大学, 控制科学与

工程学院(邮编: {\footnotesize\footnotesize\footnotesize

\footnotesize

250061},~电话:~{ \footnotesize\footnotesize\footnotesize

\footnotesize

{\tt\tt\tt

\tt

0111-1234?678}},电子邮箱:~{\footnotesize\footnotesize\footnotesize

\footnotesize

{\tt\tt\tt

\tt

[email protected]}}).}\\[-1.5mm] {\,\,\,\zihao\zihao\zihao

\zihao

{6}{\heiti\heiti\heiti

\heiti

无名氏}的电子邮箱:~\footnotesize\footnotesize\footnotesize

\footnotesize

{\tt\tt\tt

\tt

[email protected].}}\end\end\end

\end

{tabular}\end\end\end

\end

{table}

Page 45: How To Write Latex Package In Chinese 1199690669246624 2

LATEXY~ (2)

{\Large\Large\Large

\Large

1~~~\zihao\zihao\zihao

\zihao

{4}引~~言}

\vskip\vskip\vskip

\vskip

3mm系统理论中最基本的问题是动态系统的稳定性.对非线性动态系统的稳定性分析有最大

贡献的应属Lyapunov[ ].Lyapunov定理及Barbashin-Krasovskii-LaSalle不变集原理

\\[5mm]{\Large\Large\Large

\Large

2~~~\zihao\zihao\zihao

\zihao

{4}LaSalle 定理}\vskip\vskip\vskip

\vskip

3mm首先给出如下两个定义.

{\heiti\heiti\heiti

\heiti

\bf\bf\bf

\bf

定义 \,1}~{\kaishu\kaishu\kaishu

\kaishu

如果系统\,\dref\dref\dref

\dref

{eq.sys}\,的解 \,$x(t)$\,起始于 \,$ M$\,并始终在

\,$M$\,内,~那么称\,$M$\,为系统\,\dref\dref\dref

\dref

{eq.sys}\,的不变集.}\\[5mm]{\Large\Large\Large

\Large

3~~~\zihao\zihao\zihao

\zihao

{4}LaSalle 定理的推广}

\vskip\vskip\vskip

\vskip

3mm

Page 46: How To Write Latex Package In Chinese 1199690669246624 2

��´���{�oº

û½Ô��K�´<§ Ø´Éì

—fÌR

û½ü��J�´<§ Ø´óä

—·

��JøÅ�§�´XÛ¦^d^rû½�

Ö©�§w«~§w�@´

Page 47: How To Write Latex Package In Chinese 1199690669246624 2

��´���{�oº

û½Ô��K�´<§ Ø´Éì

—fÌR

û½ü��J�´<§ Ø´óä

—·

��JøÅ�§�´XÛ¦^d^rû½�

Ö©�§w«~§w�@´

\ù�<Øùħ\ØU@´ÑýB�

—�Ó�

Page 48: How To Write Latex Package In Chinese 1199690669246624 2

�_l

vkN�Òvkuó�

—fÌR

·Ø?�Word§�?�lØ��ª�ÛÔ�Word^r¶

·U� TEX§�ØU�UWordÐ?^r�g´¦^ TEX�^r¶

Word¿��ô?§TEX½����{�

Page 49: How To Write Latex Package In Chinese 1199690669246624 2

Thank you!

Address: Institute of Structural Mechanics, CAEP, P.O.Box 919-414, Mianyang, Sichuan, China, 621900

E_mail: [email protected] & [email protected]

Tel: 08162485474(O), 08162482055(H), 13981148905(M)

Fax: 08162281485

Ruini Xue