L A TEX 1 1.1 Emacs Emacs, (, CTRL, CTL ) (, )., CONTROL META,. C-< >, < >., C-f, f. ESC < >, < >. < >,. Emacs, C-x C-c.,. C-v. ESC v. 1.2., (previous) (next) (forward) (backward)., C-p, C-n, C-f, C-b,. 1.3 C-g,.,, 2,, C-g. 1.4, Emacs.,, Emacs,,,. 1
1.5,. ( A, 7, * ) Emacs,., <Return>., <Delete>. <Delete>, Delete. <Delete>,. 1.6,.,, Emacs.,. ( ), ( ),,. C-x,., Emacs.,. C-x C-f ( )... C-x C-s. Emacs.,.. 1.7, C-x C-c., Emacs 2 L A TEX 2.1 L A TEX,. L A TEX,. ( Emacs). \documentclass{jarticle} \begin{document} Hello!!, \LaTeX \LaTeXe. \end{document} Hello!!, L A TEX L A TEX 2ε. 2
,. \, L A TEX. L A TEX. \LaTeX L A TEX.. \documentclass, \begin, \end, { }.., { } [ ].. L A TEX, \begin{ } \end{ }. 2,., \begin{document} \end{document} document..,. 2.2 \begin{document} \end{document}. L A TEX. 1,. L A TEX., 1., \\., 2 1.. 2.2.1 1 L A TEX \maketitle \maketitle \documentclass{... } \begin{document} \title \author \maketitle \begin{document} \documentclass{jarticle} \title{ \LaTeX} \author{ \\ 012345} \begin{document} \maketitle Hello!!, \LaTeX \LaTeXe. \end{document} L A TEX : 012345 24 6 28 Hello!!, L A TEX L A TEX 2ε. 2.2.2,. 1.1, 2.3,..... 3
,. L A TEX.,. \subsection \subsubsection,, 1. 2.2.3 itemize. itemize \item. L A TEX \item. itemize enumerate,. \begin{itemize} \item FORTRAN \item C \item PASCAL \end{itemize},. FORTRAN C PASCAL 2.3 L A TEX, tabular. tabular,, tabular, 350 2800 1 250 100 200 2.3.1 ( ). tabular 1,. c( ), l( ), r( ) 3. &, 1 \\. (, \\. ), & 4
\begin{tabular}{lcr} & & 350 \\ & & 2800 \\ & 1 & 250 \\ & & 100 \\ & & 200 \end{tabular} 350 2800 1 250 100 200 2.3.2 2 \begin{tabular}{ l cr } & & 350 \\ & & 2800 \\ & 1 & 250 \\ & & 100 \\ & & 200 \end{tabular} 350 2800 1 250 100 200 2.3.3 \\ 1 \hline. 2 \begin{tabular}{ l cr } \hline & & 350 \\ & & 2800 \\ \hline 350 2800 & 1 & 250 \\ 1 250 & & 100 \\ \hline 100 & & 200 \\ \hline \end{tabular} 200 \hline, \cline \cline \cline{i-j} i j \begin{tabular}{ l cr } \hline & & 350 \\ \cline{2-3} & & 2800 \\ \hline & 1 & 250 \\ \cline{1-1} \cline{3-3} & & 100 \\ \hline & & 200 \\ \hline \end{tabular} 350 2800 1 250 100 200 5
2.3.4 table table \caption \begin{table} \caption{ } \begin{center} \begin{tabular}{ l cr } \hline & & 350 \\ \cline{2-3} & & 2800 \\ \hline & 1 & 250 \\ \cline{1-1} \cline{3-3} & & 100 \\ \hline & & 200 \\ \hline \end{tabular} \end{center} \end{table} 1: 350 2800 1 250 100 200,. center 2.4 L A TEX,. n x i = 1 i=0 0,, L A TEX.,. f 2.4.1, math displaymath 2. math \( \), math. ($ $. ),. 6
displaymath \[ \], displaymath.,., italic..,. 2.4.2 ( ) ^, _.. $a_{2} > x^{2n}/y^{2n}$ $x^{y}_{1}, x^{y_2}, x^{y^3}$ a 2 > x 2n /y 2n x y 1, xy2, x y3 /. $n/2$, $(m+n)/2$. n/2, (m + n)/2., \frac.,. \[\frac{ }{ }\],. \[ x=\frac{x+y}{1+\frac{y}{z+1}} \] x = x + y 1 + y z+1 \sqrt \root. $ \sqrt{x+y} $ x + y, \root \of. \root \of $n$ $\root n \of 2$. n n 2. 2.4.3. 7
2.4.4,.,, \sum. \[ \sum_{x=0}^{n}x \] n x x=0. 2.4.5 log,., $log x$ logx,., Roman. L A TEX, \log,. $ \log xy = \log x + \log y $ log xy = log x + log y. \arccos arccos \cos cos \exp exp \limsup lim sup \min min \sinh sinh \cosh cosh \lg lg \ln ln \arcsin arcsin \arctan arctan \cot cot \lim lim \log log \sec sec \tan tan 2.4.6 array. array,. \[ \begin{array}{ } \end{array} \] tabular, c( ), l( ), r( ). &., \\. \\. \[ \begin{array}{clr} a+b+c & UV & 27 \\ a+b & U+V & 134 \\ a & 3U+V & 1234 \end{array} \] a + b + c UV 27 a + b U + V 134 a 3U + V 1234, array \left( ), \right( ). \left, \right ( ). \[ \left( \begin{array}{clr} a+b+c & UV & 27 \\ a+b & U+V & 134 \\ a & 3U+V & 1234 \end{array} \right) \] a + b + c UV 27 a + b U + V 134 a 3U + V 1234 8
.,. ( ( ) ) [ [ ] ] \{ { \} } \right \left. ( ),. \[ x = \left\{ \begin{array}{ll} y & \mbox{if $y>0$} \\ z+y & \mbox{otherwise} \end{array} \right. \] x = { y if y > 0 z + y otherwise, \mbox{}. 3 L A TEX 3.1 \section,, 3.1, \label \ref \section{ }, \label{hoge}, hoge \ref{hoge} \label, \ref,, equation, enumerate platex L A TEX,. platex,, 2 platex 3.2, thebibliography enumerate,. \bibitem{...}..., \cite{...} 3.3 Postscript L A TEX Postscript, graphicx, preamble(\documentclass \begin{document} ), \usepackage{graphicx}, graphicx \includegraphics Postscript 9
\documentclass{jarticle} \usepackage{graphicx} \begin{document}. \includegraphics[scale=1.2]{ridai.ps}.. \end{document} 3.4 table, figure,,, \caption,,, \caption \label, \ref 1: Postscript 1 \begin{figure}[h]\begin{center} \includegraphics[scale=1.2]{ridai.ps}\\ \caption{postscript } \label{psex} \end{center}\end{figure} \ref{psex}. 3.5 TEX (.tex ) %, ( )..tex. % \% 10
3.6 Error Warning L A TEX TEX, Warning Error, L A TEX TEX TEX 1, ( ).dvi, 1, [] [2] [3], 2, 3., 3 Error Warning,, ( ) l.24.,.tex 24, Error Warning, 24, 3.7 \verb, verbatim,,, \verb \verb,, \verb, *,., verbatim typewriter-face {, \verb { 3.8,,,,,,,,. L A TEX Leslie Lamport,, 1, (, ).,,, 1.,,,,,,., n, n, n, n,, n, n n math-italic, $n$,, verbatim, a2ps Postscript, typewriter-face.,, typewriter-face \ {}, \tt \verb 11
caption., caption, caption.,, 12
A C-x C-c Emacs ESC < C-g ESC > C-x C-f C-v C-x C-s ESC v C-p 1 <Ret> C-n 1 <Del> C-f 1 C-d C-b 1 C-k C-a C-l C-e C- C-\ / <Spc>(C-w) C-b <Ret>(C-l) C-f C-n C-i C-p C-o q n p B latexsym \sum \bigcap \bigodot \prod \bigcup \bigotimes \coprod \bigsqcup \bigoplus \int \bigvee \biguplus \oint \bigwedge 13
Γ \Gamma Λ \Lambda Σ \Sigma Ψ \Psi \Delta Ξ \Xi Υ \Upsilon Ω \Omega Θ \Theta Π \Pi Φ \Phi α \alpha θ \theta o o τ \tau β \beta ϑ \vartheta π \pi υ \upsilon γ \gamma ι \iota ϖ \varpi φ \phi δ \delta κ \kappa ρ \rho ϕ \varphi ɛ \epsilon λ \lambda ϱ \varrho χ \chi ε \varepsilon µ \mu σ \sigma ψ \psi ζ \zeta ν \nu ς \varsigma ω \omega η \eta ξ \xi ± \pm \cap \diamond \oplus \mp \cup \bigtriangleup \ominus \times \uplus \bigtriangledown \otimes \div \sqcap \triangleleft \oslash \ast \sqcup \triangleright \odot \star \vee \lhd \bigcirc \circ \wedge \rhd \dagger \bullet \ \setminus \unlhd \ddagger \cdot \wr \unrhd \amalg \leq \geq \equiv = \models \prec \succ \sim \perp \preceq \succeq \simeq \mid \ll \gg \asymp \parallel \subset \supset \approx \bowtie \subseteq \supseteq = \cong \Join \sqsubset \sqsupset \neq \smile. \sqsubseteq \sqsupseteq = \doteq \frown \in \ni \propto \vdash \dashv 14
\leftarrow \longleftarrow \uparrow \Leftarrow = \Longleftarrow \Uparrow \rightarrow \longrightarrow \downarrow \Rightarrow = \Longrightarrow \Downarrow \leftrightarrow \longleftrightarrow \updownarrow \Leftrightarrow \Longleftrightarrow \Updownarrow \mapsto \longmapsto \nearrow \hookleftarrow \hookrightarrow \searrow \leftharpoonup \rightharpoonup \swarrow \leftharpoondown \rightharpoondown \nwarrow \rightleftharpoons \leadsto ℵ \aleph \prime \forall \infty h \hbar \emptyset \exists \Box ı \imath \nabla \neg \Diamond j \jmath \surd \flat \triangle l \ell \top \natural \clubsuit \wp \bot \sharp \diamondsuit R \Re \Vert \ \backslash \heartsuit I \Im \angle \partial \spadesuit \mho C Error Warning Error TEX Error,. Error,!. Error.! LaTeX Error: Bad math environment delimiter. (\( \), \[ \]). ({ }).! LaTeX Error: \begin{...}on input line... ended by \end{...}. \begin{...} \end{...}. \end{...}, \begin, \end.! LaTeX Error: Can be used only in preamble. \begin{document} (preamble) \begin{document}. \begin{document} Error. 15
! LaTeX Error: Command... invalid in math mode.,.! LaTeX Error: Environment... undefined. \begin{...}..! LaTeX Error: Illegal character in array arg. array tabular ( ),.! LaTeX Error: Lonely \item--perhaps a missing list envirionment. itemize enumerate \item.! Double subscript. $x_1_2$, 2 x (x 12 ) 1 (x 12 )..,! Double superscript Error.! Extra alignment tab has been changed to \cr. array tabular, 1, Error. &. \\.! Extra }, or forgotten $.,. {, \[, \( $..! Misplaces alignment tab character &. &. & arrray tabular. & \&.! Missing {inserted..! Missing }inserted.. TEX ( ), Error,. TEX Error.! Missing $ inserted.,., ( ), Error.! Undefined control sequence. TEX.. 16
Warning Warning( ), TEX.dvi.,, Warning.! LaTeX Warning: Command... invalid in math mode.,.,.! LaTeX Warning: Label... multiply defined. \label.! LaTeX Warning: Label(s) may have changed. Return to get cross-reference right. L A TEX,, \ref. Warning. platex.! LaTeX Warning: No \author given. \maketitle \author.,.! LaTeX Warning: Reference... on page... undefined. \ref, \label..! Overfull \hbox...! Overfull \vbox...! Underfull \hbox...! Underfull \vbox... TEX (box).,,,. hbox vbox., 1,, ( ), ( ),, 1., Overfull, Underfull. Overfull \hbox Underfull \hbox, vbox,,. [1] L A TEX 2ε 2010 [2] + pl A TEX 2εfor Windows SOFTBANK 1999 [3] L A TEX 2ε 2000 [4] L A TEX 1990 17