1 L A TEX 2014 1 L A TEX [ 1 ] 1 : L A TEX 1.1 L A TEX L A TEX ( ) L A TEX L A TEX ( ) ( ) L A TEX \ \ Windows Y= \ Windows Y= 1.2 L A TEX WinShell Windows L A TEX WinShell Windows L A TEX WinShell L A TEX PC [1] L A TEX WinShell TeXWorks DVD PC Winshell Wiki [2] WinShell Wiki [2] L A TEX Mac OS X TeXShop TeXShop [3] RAINBOW UNIX L A TEX [4] 7 WinShell L A TEX (1) WinShell WinShell WinShell 1 ( demo demo WinShell ) 1
2 (2) WinShell 2 (3) WinShell L A TEX ( ) ( ) 2 1 L A TEX.tex L A TEX WinShell (4) WinShell 2 L A TEX L A TEX DVI DeVice Independent (5) WinShell 2 DVI (6) ( ) (3) DVI (4) (5) B (7) WinShell 2 PDFLaTeX DVI PDF PDFLaTeX RAINBOW Windows USB USB [5] RAINBOW GUIDE 2014 p.40 1-1 L A TEX sample.tex WinShell (3) (5) \documentclass[a4paper]{jarticle} \begin{document} \LaTeX \end{document} { } \LaTeX L A TEX ( ) 1 2
3 図 1: WinShell の起動 図 2: WinShell のコマンド実行画面 3
4 (3) (5) 1.3 L A TEX \documentclass, \begin{document} \end{document} \documentclass[ ]{ } \begin{document} \end{document} \documentclass 1-1 jarticle \documentclass [ ] E (p.23), \begin{document} \end{document} \documentclass \begin{document} \usepackage L A TEX 1-2 11pt sample.tex 11 ( 10 ) 1-3 twocolumn sample.tex 2 1-4 sample.tex 10 1.4 L A TEX L A TEX ( ) L A TEX ( ) C L A TEX ( ) L A TEX % % L A TEX ( ) 4
5 \par ( ) \par \\ 1.5 1.5.1 \title, \author, \date, \maketitle \documentclass[a4paper]{jarticle} \title{ } \author{ } \date{2014 5 28 }... \begin{document} \maketitle... \end{document} \title, \author, \date \maketitle \maketitle \begin{document} \title, \author, \date \maketitle \date \title \author 1-5 sample.tex \documentclass[a4paper]{jarticle} \title{\latex } \author{ } \date{2014 } \begin{document} \maketitle... \end{document} 5
6 1.5.2 \section{...} \subsection{...} \subsubsection{...} jbook, jreport \chapter{...} jarticle L A TEX \section{ } \section{ } \subsection{ 1} \subsubsection{ } = 1 \subsubsection{ } 1 1 2 2.1 1 2.1.1 1 2.1.2 1 1.5.3 itemize, enumerate, description \begin{ }... \end{ } ( ) \itemize \begin{itemize} \item \item 2 = \item \end{itemize} 2 \enumerate \begin{enumerate} \item \item 2 \item \end{enumerate} = 1. 2. 2 3. 6
7 \description \begin{description} \item[ ] 5 \item[ ] 10 \end{description} = 5 10 1-6 1.5.2, 1.5.3 sample.tex \section, \subsection, \subsubsection, itemize, enumerate, description 7
8 2 L A TEX [ 2 ] 2 : L A TEX L A TEX L A TEX E 2.1 L A TEX $ $y=ax+b$ = y = ax + b $f(x)=x+5$ = f(x) = x + 5 ( ) ~ ( ) ~ $y=a b c dx+e$ = y = abcdx + e $y=a~b~c~dx+e$ = y = a b c dx + e 2.2 2 3 ^ ( ) y = ax 2 +by+c $y=ax^{2}+by+c$ y = x n+k+1 $y=x^{n+k+1}$ _ ( ) a 1 $a_{1}$ b i 1 $b_{i-1}$ b n+1 i 1 $b_{i-1}^{n+1}$ { } { } 2-1 =0 ( 2 2 a 1 x 2 + a 2 x + a 3 = 0 (a 1 0) 2.3 $ \[ \] \[ f(x)=x^{3} \] = f(x) = x 3 \[ f(x)=x^{3} \] 8
9 \[ \] equation \begin{equation} \end{equation} \begin{equation} = y = x 3 (1) y=x^{3} \end{equation} eqnarray eqnarray* eqnarray* \begin{eqnarray} A &=& x+y \\ A = x + y (2) = &=& 8 = 8 (3) \end{eqnarray} \begin{eqnarray*} B &=& u+v \\ B = u + v = &=& 12 = 12 \end{eqnarray*} & \bf {\bf a} a (a) \bm {\bm a} \bm \usepackage{bm} (bf boldface, bm bold math ) \documentclass[a4paper]{jarticle} \title{...} \author{...} \date{...} \usepackage{bm} \begin{document}... \end{document} \cdot 2-2 2 a = (a x, a y ) b = (b x, b y ) a b = a x b x + a y b y 2.4 \frac (fraction ). $\frac{1}{4}$ 1 4 \frac 2 {} 2 {} 9
10 \[ \frac{x+1}{x+4} \] = x + 1 x + 4 n ) \sqrt (square root ) \[ z=\sqrt{x+1}+\sqrt{5}-\sqrt[3]{y} \] = z = x + 1 + 5 3 y 2.5 lim \[ \sum_{n=a}^{b} \] = b n=a \[ \int_{a}^{b} \] = b a \[ \lim_{{n} \to {0}} \] = lim n 0 2-3 n=1 1 (2n 1)(2n + 1) = 1 2 (1) 2.6 array \left \right \[ \left(\begin{array}{rrr} a & b & c \\ d & e & f \\ g & h & i \end{array}\right) \] = a b c d e f g h i 10
11 \left( \right) array array {rrr} r rrr 3 c l r c l (r) array \\ & \left( \right) \left \right \[ \left \begin{array}{rrr} a & b & c \\ d & e & f \\ g & h & i \end{array}\right \] = a b c d e f g h i 2.7 log, sin \log, \sin L A TEX E 7.7(p.26) π ω Ω \pi \omega \Omega + 2.8 $, \[ \] { } 2.9 tabular \begin{tabular}{ l c r } \hline & & \\ \hline\hline & & 170.0 \\ \hline & & 160.0 \\ \hline \end{tabular} = 170.0 160.0 tabular 2.6 array c l r 3 \hline tabular array \\ & 2-4 sample.tex 11
12 170.0 160.0 2.10 table tabular table \begin{table} \caption{ } \begin{center} \begin{tabular}{ l c r } \hline & & \\ \hline\hline & & 170.0 \\ \hline & & 160.0 \\ \hline \end{tabular} \end{center} \end{table} 1: 170.0 160.0 ( ) \caption table \caption \begin{tabular} \caption L A TEX center 2-5 2-4 table ( ) 2.11 12
13 2.11.1 2-6 y = f(x), y = a(x p), y = f 1 (x), y = Ae kx + Be kx 2 sin α cos β = sin(α + β) + sin(α β) log xdx = x log x x + C 2-7 f(x) = x 1 1 1+x = 1 + x nc r = n P r r! = n(n 1) (n r + 1) r(r 1) 2 1 = n! r!(n r)! x + 1 2 lim x 1 x 1 1 lim x 2 log 3( 2x + 1 2x 1) S = a 2 3 0 2 π ( 1 2 cos θ + ) 1 + cos 2θ dθ 2 2.11.2 \multicolumn \cline \begin{tabular}{ l l cr } \hline & & \multicolumn{2}{c }{ } \\ \cline{3-4} & & & \\ \hline\hline & & & 170.0 \\ \cline{2-4} & & & 175.0 \\ \hline & & & 160.0 \\ \hline \end{tabular} 2-8 = 170.0 175.0 160.0 sample.tex 13
14 2: 170.0 175.0 160.0 168.3 3 L A TEX [ 3 ] 3 : L A TEX EPS Encapsulated PostScript EPS 2 3.1 EPS L A TEX EPS L A TEX EPS L A TEX figure \includegraphics L A TEX (1.3 ) \usepackage[dvipdfmx]{graphicx} dvipdfmx DVI PDF L A TEX PDF \documentclass[a4paper]{jarticle} \title{...} \author{...} \date{...} \usepackage{bm} \usepackage[dvipdfmx]{graphicx} \begin{document}... \end{document} EPS [ ] width=5cm 5cm 2 LATEX PDF, JPEG, PNG PDF RAINBOW EPS 14
15 \begin{figure} \begin{center} \includegraphics[width=5cm]{figsample.eps} \caption{ } \end{center} \end{figure} EPS figsample.eps 3 width height width height width height scale scale=0.5 0.5 width=\linewidth width=0.5\linewidth 3: ( ) \caption figure 3 \includegraphics 3.2 LaTeX Microsoft PowerPoint 3 PowerPoint JPEG EPS-Conv RAINBOW Windows EPS PowerPoint JPEG 1. Microsoft PowerPoint 2010 2. 3 PowerPoint LATEX Adobe Illustrator ( )[6] EPS Illustrator Adobe Illustrator RAINBOW Windows 15
16 3. 4. SmartArt 5. 6. 7. ( ) L A TEX JPEG 8. PowerPoint JPEG EPS 4 1. EPS-conv 2. 3. EPS-conv JPEG JPEG EPS EPS L A TEX 3.1 3-1 PowerPoint EPS sample.tex 3.3 [ ] gnuplot Windows gnuplot 4 gnuplot> gnuplot plot gnuplot> plot (x-1)**3 5 y = (x 1) 3 gnuplot 4 EPSConv RAINBOW Adobe Illustrator 16
17 4: gnuplot 3 WEB [7] gnuplot Windows, Linux, Mac 5: gnuplot gnuplot L A TEX EPS (1) RAINBOW gnuplot EPS gnuplot L A TEX File Change Directory New Directory? L A TEX (2) gnuplot> set terminal postscript eps gnuplot> set output "graph.eps" graph.eps.eps (3) replot 17
18 gnuplot> replot replot EPS graph.eps (1) EPS graph.eps L A TEX 3.1 6 3 y = (x 1) 3 1000 (x-1)**3 500 0-500 -1000-1500 -10-5 0 5 10 6: gnuplot 3 3-2 gnuplot cos(x) + 2 sin(3 x) EPS graph.eps sample.tex 3.4 JPEG JPEG EPS L A TEX (4000 3000 L A TEX DVI EPS RAINBOW PC IrfanView 640 480 IrfanView (Image) (Resize/Resample..) (Some standard dimensions [pixels]) 640 480 OK (Image) (Convert to Grayscale) JPEG EPS RAINBOW Windows EPS-conv EPS-conv EPS EPS L A TEX 3.1 7 L A TEX 18
19 7: 5 3-3 JPEG IrfanView (640 480 ) EPS photo.eps sample.tex RAINBOW WEB USB 3-4 sample.tex (1.2 (7) ) [1] : L A TEXe 6, (2013). [2] : TeX Wiki, http://oku.edu.mie-u.ac.jp/~okumura/texwiki/. [3] MacWiki - TeXShop, http://macwiki.sourceforge.jp/wiki/index.php/texshop. [4] RAINBOW GUIDE Linux,, (2014). [5] RAINBOW GUIDE 2014 for Students, (2014). [6] Illustrator CS6 : Win & Mac, (2012) [7] ( ), ( ) gnuplot, (2004). 19
20 A : L A TEX \documentclass[a4paper]{jarticle} \usepackage{graphicx} \usepackage{bm} \setlength{\textwidth}{160mm} \setlength{\textheight}{245mm} \setlength{\oddsidemargin}{0mm} \setlength{\topmargin}{-13mm} \setlength\parindent{1zw} \title{ \ \ \ \author{ } \date{2014 } --- \LaTeX ---} \begin{document} \maketitle \section{\latex [ 1 ]} \label{sec:1st week} \begin{description} \item[ 1 :] \LaTeX \end{description} \subsection{\latex } \LaTeX ( ) \begin{itemize} \item \LaTeX \item \LaTeX ( ) ( ) \item \item \LaTeX \verb+\+ \verb+\+ Windows {\tt Y\llap=} {\bf \verb+\+ Windows {\tt Y\llap=} } \end{itemize} B B 1 WinShell! Undefined control sequence. math.tex(293): :! Missing $ inserted. math.tex 293 $ [2] 20
21 WinShell L A TEX B 1: WinShell C thebibliography \begin{thebibliography}{9} \bibitem{resume} --- \LaTeX ---, (2014). \bibitem{guide} RAINBOW GUIDE 2014 UNIX,, (2014). \end{thebibliography} \bibitem{} {} \cite{guide} [2] \begin{thebibliography}{9} 9 1 2 99 3 999 D L A TEX 21
22... \ref{fig:system} \pageref{fig:system} \ref{sec:detail}. \begin{figure} \begin{center} \includegraphics[scale=0.5]{system.eps} \caption{ } \end{center} \label{fig:system} \end{figure}. \section{ } \label{sec:detail}. \label{} figure fig:system sec:detail DVI \ref{fig:system} \pageref{fig:system} \ref{fig:system} fig:system \pageref{fig:system} fig:system \ref{sec:detail} sec:detail L A TEX DVI 2 1 2 DVI 22
23 E L A TEX 1 jarticle jreport jbook article report book 2 10pt 11pt 12pt a4paper a4j a5paper b4paper b5paper onecolumn twocolumn 10 11 12 A4 A4 a4paper A5 a5j B4 b4j B5 b5j 3 jarticle jreport/jbook \chapter 1 \section 1 1.1 \subsection 1.1 1.1.1 \subsubsection 1.1.1 4 1 2 \textmc{ } \mcfamily \textgt{ } \gtfamily \textrm{ } \rmfamily Roman \textbf{ } \bfseries Bold \textit{ } \itshape Italic \textsl{ } \slshape Slanted \textsf{ } \sffamily Sans Serif \texttt{ } \ttfamily Type Writer \textsc{ } \scshape Small Caps 23
24 5 10pt \tiny 5pt Sample \scriptsize 7pt Sample \footnotesize 8pt Sample \small 9pt Sample \normalsize 10pt Sample \large 12pt Sample \Large 14.4pt Sample \LARGE 17.28pt Sample \huge 20.74pt Sample \Huge 24.88pt Sample 6 6.1 \ o ò \ o ó \^o ô \"o ö \~o õ \=o ō \.o ȯ \u{o} ŏ \v{o} ǒ \H{o} ő \t{oo} oo \c{o} o \d{o} ọ \b{o} ō \r{o} o 6.2 \textperiodcentered \P \copyright c \dag \ddag \pounds \textvisiblespace \textbullet \S \TeX TEX \LaTeX L A TEX \LaTeXe L A TEX 2ε 7 7.1 \sum \bigcap \bigodot \prod \bigcup \bigotimes \coprod \bigsqcup \bigoplus \int \bigvee \biguplus \oint \bigwedge 24
25 7.2 7.2.1 \alpha α \iota ι \rho ρ \varepsilon ε \beta β \kappa κ \sigma σ \vartheta ϑ \gamma γ \lambda λ \tau τ \varpi ϖ \delta δ \mu µ \upsilon υ \varrho ϱ \epsilon ϵ \nu ν \phi ϕ \varsigma ς \zeta ζ \xi ξ \chi χ \varphi φ \eta η o o \psi ψ \theta θ \pi π \omega ω 7.2.2 \Gamma Γ \Lambda Λ \Sigma Σ \Psi Ψ \Delta \Xi Ξ \Upsilon Υ \Omega Ω \Theta Θ \Pi Π \Phi Φ 7.3 2 \pm ± \mp \cap \cup \times \div \sqcap \sqcup \ast \star \vee \wedge \wr \setminus \ \dagger \ddagger \cdot \bullet \circ \bigcirc \uplus \odot \diamond \amalg \oplus \ominus \otimes \oslash 7.4 \le(\leq) \ge(\geq) \subset \supset \prec \succ \subseteq \supseteq \preceq \succeq \ll \gg \sqsubseteq \sqsupseteq \in \ni \vdash \dashv \notin / \propto \models = \perp \neq \equiv. \doteq = \cong = \sim \simeq \approx \asymp \smile \frown \mid \parallel \bowtie 25
26 7.5 \leftarrow (\gets) \rightarrow (\to) \uparrow \downarrow \longleftarrow \longrightarrow \Leftarrow \Rightarrow \Uparrow \Downarrow \Longleftarrow = \Longrightarrow = \leftrightarrow \Leftrightarrow \updownarrow \Updownarrow \longleftrightarrow \Longleftrightarrow \hookleftarrow \hookrightarrow \nwarrow \nearrow \swarrow \searrow \leftharpoonup \rightharpoonup \leftharpoondown \rightharpoondown \rightleftharpoons \mapsto \longmapsto 7.6 \aleph ℵ \prime \forall \clubsuit \hbar h \partial \exists \spadesuit \imath ı \nabla \surd \heartsuit \jmath ȷ \triangle \neg \diamondsuit \ell l \infty \top \sharp \wp \ \bot \flat \Re R \backslash \ \angle \natural \Im I \emptyset \cdots \ldots... \vdots. \ddots... \ldots 7.7 \arccos arccos \csc csc \ker ker \min min \arcsin arcsin \deg deg \lg lg \Pr Pr \arctan arctan \det det \lim lim \sec sec \arg arg \dim dim \liminf lim inf \sin sin \cos cos \exp exp \limsup lim sup \sinh sinh \cosh cosh \gcd gcd \ln ln \sup sup \cot cot \hom hom \log log \tan tan \coth coth \inf inf \max max \tanh tanh 7.8 ( ( ) ) \ [ [ ] ] / / \backslash \ \{ { \} } \langle \rangle \lceil \rceil \lfloor \rfloor 26
27 L A TEX 2014 A4 2 3 L A TEX PDF (Portable Document Format) Web 1. ( L A TEX ) 2. PDF Web (manaba+r) 3. 10pt jarticle a4j a4j a4paper 4. 5. 6. 7. gnuplot 8. 9. 10. ( ) 2014 6 24 17:00 PDF Web (manaba+r) L A TEX PDF 1.2 DVI PDF PDF (Acrobat )
28 L A TEX 260014****-* is******@ed.ritsumei.ac.jp 2014 6 1 L A TEX L A TEX 2 L A TEX 2 y = x 2 2x 1 L A TEX tabular 2.1 itemize enumerate enumerate 1. y = (x 2 2x 1) = 2x 2 = 2(x 1) 2. y = 0 2(x 1) = 0 x = 1 3. y = 2(x 1) 1 < x y > 0, x < 1 y < 0 1
29 4. x = 1 y = 1 2 2 1 1 = 2 lim y = lim x + x + y(x2 2x 1) (1) = lim x + x2 ( x2 x 2 2x x 2 1 x 2 ) (2) = lim x + x2 (1 2 x 1 ) = + (3) x2 lim y = lim x x x2 (1 2 x 1 ) = + (4) x2 5. x y = 0 x = 1 ± 2 y x = 0 y = 1 equation eqnarray 2.2 L A TEX tabular 1 1: y = x 2 2x 1 x... 1... + y 0 + y + 2 + \caption table figure [tbp] t(op) b(ottom) p(age) h(ere) \begin{table}[htbp] \begin{figure}[ht] 2.3 gnuplot gnuplot 3 2
30 gnuplot EPS?? Microsoft Excel EPS L A TEX Excel Adobe Illustrator EPS 3 2 x**2-2*x-1 1 0-1 -2-3 -2-1 0 1 2 3 4 1: y = x 2 2x 1 3 L A TEX RAINBOW Windows WebMAIL USB EPS RAINBOW Windows Irfan View / EPS-conv EPS?? 3
31 2: 4 L A TEX [1] L A TEX, (2014). 4