-platex2 by MiYaGG 1 Hello, TEX World! 2 1.1 TEX... 2 1.2 pl A TEX2... 3 1.3 TEX... 4 1.4 TEX... 4 1.5 To err is human......... 6 1.6 UNIX... 6 2 7 2.1... 7 2.2... 8 2.3... 8 2.4... 9 2.5... 10 2.6... 10 2.7... 11 2.8... 13 2.9... 13 3 13 3.1... 13 3.2... 14 3.3... 14 3.4... 14 4 15 4.1... 15 4.2... 16 4.3... 16 1
4.4... 17 4.5... 18 4.6... 18 4.7 sin log lim... 18 5 19 6 20 6.1... 20 6.2... 21 7 22 7.1... 22 7.2... 23 8 Deutsch 24 9 24 1 Hello, TEX World! 1.1 TEX TEX Donald E. Knuth TEX ( ) ( UNIX Windows Mac ) () TEX ½ ܵ ½ ܾ Ü Ò µ Ò ½ ¾ ¾ Ò ¾Òµ ¾Òµ µ ½ ½ ½ 2
Und weil das Rote im weißen Schnee so schön aussah, dachte sie bei sich:,,hätt ich ein Kind so weiß wie Schnee, so rot wie Blut und so schwarz wie das Holz an dem Rahmen. () 1.2 pl A TEX2 TEX L A TEX TEX TEX ( control sequence ) ( mm ) Knuth ( ) TEX plain TEX L A TEX DEC(Compaq) Leslie Lamport plain TEX L A TEX \section ( ) \sectionms P 16pt MS P 16pt \section L A TEX L A TEX!! TEX L A TEX ASCII ptex ptex L A TEX pl A TEX TEX 99.9% pl A TEX2 (pl A TEX ) 3
1.3 TEX TEX TEX WYSIWYG(What you see is what you get: ) TEX ( PostScript) (device independent) dvi dvi PostScript () UNIX xdvi ( ) 1.4 TEX UNIX TEX Emacs sample1.tex.tex \documentclass{jarticle} \begin{document} Hello, \TeX! \[ \int 2x \, dx = xˆ2 + C \] \end{document} 4
TEX \begin{document} TEX \Y= TEX Emacs \ pl A TEX >platex sample1 Enter This is ptex, Version p2.1.9, based on TeX, Version 3.14159 (SJIS) (Web2C 7.3.3) (format=platex 2000.9.26) 13 JUN 2003 22:05 **sample1.tex (./sample1.tex platex2e <2000/02/29>+2 (based on LaTeX2e <2000/06/01> patch level 0) (c:/usr/local/share/texmf/ptex/platex/base/jarticle.cls Document Class: jarticle 1999/05/18 v1.1q Standard platex class ( ) Output written on sample1.dvi (1 page, 428 bytes). sample1.tex xdvi sample1 Enter Hello, TEX! ¾Ü Ü Ü ¾ 5
1.5 To err is human TEX! Undefined control sequence. l.3 Hello, \tex!?? TEX 3 (l.3) \tex (Undefined control sequence.) \TeX TEX? x Enter pl A TEX Emacs sample1.dvi ( \author \auther ) 1.6 UNIX Windows TEX UNIX dvi UNIX kterm dvips sample1 Enter dvi PostScript ls sample1.ps dvips sample1 - o sample1.ps dvips sample1 > sample1.ps 6
PS lpr sample1.ps -Ppr009 -P pr009 Fax 2 2.1 sample2.tex ( ) \documentclass{jarticle} \begin{document} \title{ 1 } \author{} \date{2003 6 13 } \maketitle \section{} 1 7
\section{} \subsection{ } \section{} \end{document} 2.2 L A TEX \documentclass{jarticle}\documentclass (document) (class) jarticle( ) jreport( ) jbook( ) \documentclass[b5paper, 12pt]{jarticle} 11pt 12pt 11(12) ( 10 ) b5paper B5 ( a4paper) b5j a4j 2.3 \documentclass{jarticle} \begin{document} \usepacage{times} times.sty ( ) Times 8
Computer Modern \pagestyle{empty} \documentclass[b5paper, 12pt]{jarticle} \usepackage{times} \pagestyle{empty} \begin{document} Times \usepackage{times} 2.4 \title{...} () \author{...} \date{...} \date{\today}( ) \maketitle \maketitle \\ 2 9
\title{ 3.14 \\3.14159265358979323846 } 2.5 L A TEX2 \part{...} \chapter{...} (jarticle jreport ) \section{...} \subsection{...} \subsubsection{...} \paragraph{...} \subparagraph{...} \section \subsubsection L A TEX2 \section*{...} * L A TEX2 \tableofcontents L A TEX2 TEX 2 2 2.6 \ {} [] TEX 10
0 1 2 3 4 5 6 7 8 9! " ( ) + - * / =, ; :.? @ [ ] A B C D E F G H I J K L M N O P Q R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z # $ % & _ { } < > \ ˆ \ TEX \TeX \TeX TEX \TeX \TeX \TeX{} {} TEX Hello, \TeX World! Hello, TEXWorld! \TeX World ( TEX ) Hello, \TeX{} World! {} 2.7 TEX 2 TEX 2 1 a b c d a bcd TEX a b c d 11
a. b c. da. b c. d b c a. bc. d TEX ( a ) ( ) 2 ( ) () () 12
Trial & Error 2.8 \# # \_ $<$ \$ $ \{ $>$ \% % \} $ $ \& & \yen Y= 2.9 L A TEX \ {...} : \subsection{} \begin{ } \end{ } : \begin{document} \end{document} 3 pl A TEX 3.1 ( ) \textrm( ): () (Roman) \textsf( ): (Sans serif) \texttt( ): (Type Writer) \textmc( ): ( ) \textgt( ): () 13
: \texttt{type writer } type writer 3.2 ( ) \textmd: ( ) (Medium) \textbf: ( ) (Bold Face) : \textbf{bold face } bold face 3.3 () \textup: ( ) (Upshape) \textit: (Italic) \textsc: (SMALL CAPITAL) \textsl: (Slanted) : \textit{italic } italic 3.4 \tiny: \scriptsize: AaBcXyZ09 AaBcXyZ09 \footnotesize: AaBcXyZ09 \small: AaBcXyZ09 \normalsize: AaBcXyZ09 \large: AaBcXyZ09 \Large: \LARGE: \huge: \Huge: AaBcXyZ09 AaBcXyZ09 AaBcXyZ09 AaBcXyZ09 14
{ } : \textbf{\large } 4 TEX TEX 2 4.1 Ü ¾ ÔÝ $ : $xˆ2+\sqrt{y}$ \( \) : \(xˆ2+\sqrt{y}\) math : \begin{math}xˆ2+\sqrt{y}\end{math} Ü ¾ ÔÝ $$ : $$xˆ2+\sqrt{y}$$ \[ \] : \[xˆ2+\sqrt{y}\] displaymath : \begin{displaymath}xˆ2+\sqrt{y}\end{displaymath} TEX $$ fleqn ( ) x y Ü Ý 15
È Ü Ò ½ Ü Ò ½ 4.2 ˆ _ 2 {}( ) \[y_n=xˆn+xˆ{-n}\] Ý Ò Ü Ò Ü Ò 4.3 \frac{ }{ } 16
\[\frac{xˆ2+3xyˆ{-t}}{9x}+\frac{1}{2}\] $\frac{xˆ2+3xyˆ{-t}}{9x}+\frac{1}{2}$ Ü ¾ ÜÝ Ø Ü ½ ¾ Ü ¾ ÜÝ Ü Ø ½ ¾ 4.4 \sqrt[ ]{ } [ ] \[\sqrt{1+xˆ2}+\frac{1}{\sqrt[3]{1+xˆ2}}\] $\sqrt{1+xˆ2}+\frac{1}{\sqrt[3]{1+xˆ2}}$ Ô ½ Ü ¾ ½ Ô ½ Ü ¾ Ô ½ Ü ¾ ½ Ô½ Ü ¾ 17
4.5 \int \sum (ˆ) (_) \[\int_0ˆx \frac{dt}{1+tˆ2} + \sum_{i=1}ˆx i\] $\int_0ˆx \frac{dt}{1+tˆ2} + \sum_{i=1}ˆx i$ Ê Ü ¼ Ø ½ Ø ¾ ÈÜ ½ Ü ¼ Ø ½ Ø ¾ Ü ½ 4.6 \ : $\pi, \sigma, \xi, \Gamma$ A(alpha) B(beta) 4.7 sin log lim $sin x$ ÒÜ 18
$\sin x$ Ò Ü sin log lim TEX 5 enumerate: itemize: description: \item ( ) \item[...] \begin{enumerate} \item \item[1a.] \item \end{enumerate} \begin{itemize} \item \item[ ] \item \item \begin{enumerate} \item \item \end{enumerate} 19
\end{itemize} \begin{description} \item[he] (Helium); 2; 4.002 \item[ne] (Neon); 10; 20.18 \item[ar] (Argon); 18; 39.95 \end{description} 1. 1a. 2. 1. 2. He (Helium); 2; 4.002 Ne (Neon); 10; 20.18 Ar (Argon); 18; 39.95 6 6.1 flushleft: ( ) center: 20
flushright: \begin{flushleft} \end{flushleft} \begin{center} \end{center} \begin{flushright} \end{flushright} 6.2 quote Donald Knuth \begin{quote} 21
is my Chinese name, given to me in 1977 by Frances Yao. Today I have to use a GIF image to get it on a webpage, but I hope HTML and a vanilla Linux browser will soon routinely allow Unicode for non-latin characters. \end{quote} Donald Knuth is my Chinese name, given to me in 1977 by Frances Yao. Today I have to use a GIF image to get it on a webpage, but I hope HTML and a vanilla Linux browser will soon routinely allow Unicode for non-latin characters. GIF 7 7.1 tabular \begin{tabular}{}\end{tabular} ( ) (l) (c) (r) &\\ \\ \hline \begin{tabular}{ c cr }\hline abc & def & 12345 \\\hline\hline 22
gh & i & 67 \\ klmno & pq & 890 \\\hline \end{tabular} abc def 12345 gh i 67 klmno pq 890 7.2 \multicolumn{ }{}{} \begin{tabular}{ c cr }\hline abc & def & 12345 \\\hline\hline gh & i & 67 \\\hline \multicolumn{3}{ c }{klmno} \\\hline \end{tabular} abc def 12345 gh i 67 klmno 23
8 Deutsch ( ) \usepackage[german]{babel} \selectlanguage{german} ä "a Ö "O ß "s TEX ( ) 9 TEX TEX TEX TEX! [1] [ ] L A TEX2e (, 2000) [2] L A TEX2e (, 2003) [3] Donald E. Knuth. Don Knuth s Home Page (http://sunburn.stanford.edu/ knuth/). 2003.06.28. 24