L A TEX mizutani@ic.daito.ac.jp 2013 β 1 TEX 1 2 TEX 1 2.1 L A TEXS.................................. 2 3 L A TEX 2 3.1 L A TEX................................... 3 3.2........................................ 4 3.3 L A TEX....................................... 9 3.4 L A TEX......................................... 10 4 10 4.1............................................. 11 4.2............................................. 11 4.3............................................. 12 4.4.............................................. 12 4.5............................................. 13 4.6.......................................... 14 4.7............................................... 15 4.8......................................... 16 4.9............................................ 18 4.10 L A TEX....................................... 19 4.11.......................................... 19 4.12.......................................... 19 4.13.................................... 20 5 24 5.1 PNG/JPEG...................................... 24 5.2 EPS.......................................... 25 i
5.3 EPS..................................... 26 5.4 DVI PDF................................. 28 5.5 DVI PS.................................. 29 6 29 6.1.......................................... 30 6.2 tabular........................................ 31 6.3......................................... 31 7 L A TEX 33 7.1.............................................. 33 7.2 L A TEX........................................ 34 7.3.......................................... 35 7.4.......................................... 38 8 39 8.1.............................................. 39 8.2................................. 40 8.3 TEXMFHOME...................................... 41 9 44 9.1 Beamer........................................ 44 9.2 Beamer........................................ 46 10 48 10.1............................................. 48 10.2................................................ 49 11 50 11.1....................................... 50 11.2............................................. 51 12 52 12.1.......................................... 52 12.2........................................ 52 12.3............................................. 53 13 54 13.1.......................................... 54 13.2.......................................... 55 13.3......................................... 56 ii
TEX DEC L. Lamport L A TEX Web Web 1 Web L A TEX 1 1 1 TEX D.Knuth TEX [1] TEX TEX...τϵχ... TEX χ x chi TEX χ blecchhh loch ach ch j kh L A TEX 2 TEX TEX Donald E.Knuth Knuth TEX OS TEX Version 3.1415926 Knuth *1 TEX L A TEX ptex pl A TEX AMS TEX XΥMTEX MusiXTeX L A TEX TEX (typesetting software) *1 TEX Knuth LATEX TEX OS 1
Z 2.1 L A TEXS TEX TEXWiki http://oku.edu.mie-u.ac.jp/~okumura/texwiki/ TEX [4] OS TEX OS TEX TEXWiki Linux Linux TEX Mac TEXWiki/Mac Mac MacPort Mac TEX TEX TeXShop PowerPoint Keynote TEX LaTeXiT TeX2img Windows Mac TEXWiki/MS Windows( ) MS Windows TEXWiki (Windows) () TEXWiki TeX installers for Windows TeX 3 http://www.ms.u-tokyo.ac.jp/~abenori/mycreate/abtexinst.html TEX WinShell TEX PowerPoint TeX2img IguanaTex TEX OS Web TEXWiki/ TeXclip http://maru.bonyari.jp/texclip/ TeXCrop http://www.fukudat.com/texcrop/ 3 L A TEX TeX TeX TEX PDF PDF Adobe Reader 2
3.1 L A TEX L A TEX L A TEX L A TEX TeX TeX 1. *2.tex L A TEX TeX L A TEX 2. TeX platex DVI 3. L A TEX TeX 2. 3. 4. (previwer) DVI TeX DVI PDF 5. dvipdfmx DVI PDF *3 6. DVI/PDF L A TEX 1.dvi DVI dvipdfmx.tex L A TEX L A TEX.pdf PDF 1 L A TEX TeX 1 L A TEX DVI TeX *2 Windows/Mac TeXworks Mac TeXShop Windows WinShell TeX *3 DVI pdflatex pdf 3
3.1.1 DVI DVI DeVice Independent DVI 5 DVI 1 5 dvipsk 5.4 dvipdfmx PDF DVI Windows Macintosh TEX DVI Linux PDF DVI PDF 3.1.2 PDF PDF Adobe PDF Adobe Reader L A TEX dvi2pdfmx DVI sample.dvi PDF % dvipdfmx sample.dvi Adobe Reader PC TEX DVI PDF TeX 3.2 L A TEX 3.2.3 TeX one click TEX 4
Windows [ ]-[ ] DOS Mac [ app 1 OS 3.2.1 L A TEX L A TEX.tex L A TEX sample.tex \documentclass{jsarticle}% jsarticle \begin{document % \TeX{}? \LaTeX{} {\Large } \[ \int_0^\infty \frac{\sin ax}{x} dx= \frac{\pi}{2}\quad (a>0) \] \textbf{ } \end{document} \ Windows Macintosh Yen Y= \ Y= L A TEX \documentclass{jarticle} jsarticle *4 \begin{document} \documentclass{...} \begin{document} *4 jsarticle jarticle TEXWiki 5
11 4.1 \begin{document} \end{document} % 3.3.2 L A TEX 3.3.2 3.2.2 DVI L A TEX sample.tex L A TEX DVI sample.dvi % platex sample.tex L A TEX L A TEX?? L A TEX sample.tex MacOS MacTeX \begin{document} }... OS TeX This is e-ptex, Version 3.1415926-p3.3-110825-2.4 (utf8.euc) (TeX Live 2012) restricted \write18 enabled. (./test.tex platex2e <2006/11/10> (based on LaTeX2e <2011/06/27> patch level 0)... (/usr/local/texlive/2012/texmf-dist/tex/platex/jsclasses/jsarticle.cls Document Class: jsarticle 2010/03/14 okumura ) Runaway argument? {document?! Paragraph ended before \begin was complete. <to be read again> \par l.5 6
?.log sample.log L A TEX h x q? x L A TEX DVI L A TEX L A TEX MacOS MacTeX... OS TeX This is e-ptex, Version 3.1415926-p3.3-110825-2.4 (utf8.euc) (TeX Live 2012) restricted \write18 enabled.... (./test.tex platex2e <2006/11/10> (based on LaTeX2e <2011/06/27> patch level 0)... (/usr/local/texlive/2012/texmf-dist/tex/platex/jsclasses/jsarticle.cls Document Class: jsarticle 2010/03/14 okumura ) (./test.aux) [1] (./test.aux) ) Output written on test.dvi (1 page, 1028 bytes). Transcript written on test.log. DVI sample.dvi [1][2][3] 7
3.2.3 DVI L A TEX 3 1 DVI 2 DVI PostScript 5.5 3 DVI PDF 5.4 TeX PDF 3 DVI L A TEX Linux DVI PostScript DVI sample.dvi DVI Windows dviout for Windows Linux xdvi DVI % xdvi sample.dvi 5 PostScript Encapsulated PostScript DVI Ghostscript 2.1 TEX 3.2.4 DVI Windows dviout for Windows Mac xdvi DVI Linux DVI Postscript dvipsk dvips % dvipsk sample.dvi TeX Adobe Reader PDF PDF DVI 5.4 % dvipdfmx sample.dvi 8
TEX? L A TEX 0 sin ax x dx = π 2 (a > 0) 3.3 L A TEX 3.3.1 L A TEX 5 L A TEX \LaTeX{} DVI L A TEX L A TEX \ L A TEX L A TEX \TeX{} TEX \TeX \tex \Tex L A TEX \LaTeX \LaTeX \LaTeX L A TEX L A TEX L A TEX L A TEX \LaTeX{} {} \LaTeX {\LaTeX} { } \LaTeX 3.3.2 L A TEX % L A TEX 38 Return Enter 1 3.3.3 L A TEX L A TEX L A TEX 9
L A TEX \par L A TEX \\ L A TEX \par L A TEX L A TEX 1 1 3.3.4 {abcdefg} L A TEX \ {, } 3.4 L A TEX L A TEX L A TEX 4.13 20 % { } & # $ ^ ~ \ _ L A TEX 1 \ L A TEX \verb... 4 10
% \% { \{ } \} & \& # \# $ \$ ^ \verb ^ ~ \verb ~ \ \verb \ \_ 1 L A TEX 4.1 \documentclass{jarticle}% jsarticle \title{ } \author{ } \date{ } \begin{document} \maketitle %... \end{document} 4 \title{..}, \author{..}, \date{..}, \maketitle 1 L A TEX \documentclass{...} \begin{document} \begin{document} L A TEX \maketitle \maketitle \maketitle {...} {} \date{\today} \date{..} 4.2 7 L A TEX \documentclass{...} 11
\tableofcontents 7.3.2 36 4.3 L A TEX (environment) \begin{ } \end{ } L A TEX 4.4 L A TEX quote quotation 4.4.1 quote quote quote \begin{quote} \hfill \end{quote} 12
4.4.2 quotation quotation quote quote quotation 4.5 flushleft center flushright \\ 3.3.3 L A TEX \par center flushleft flushright \begin{flushright} \LaTeX{} \\ \\ \\ \end{flushright} 13
\begin{center} \\ \\ \end{center} \begin{flushleft} Linux \\ Macintosh \\ Windows OK \end{flushleft} L A TEX Linux Macintosh Windows OK 4.6 L A TEX L A TEX verbatim \begin{verbatim} \subsection{ }... \LaTeX{} \LaTeX{} \textbf{ } 14
\textbf{verbatim }... \end{verbatim} \begin{verbatim} \subsection{\texttt{verbatim} } \LaTeX{} \LaTeX{} \end{verbatim} \verb \verb + L A TEX \verb \LaTeX{} \LaTeX{} verbatim* \verb* * 4.7 itemize enumerate description 3 4.7.1 itemize \item \item itemize enumerate description \begin{itemize} \item itemize $\bullet$ \item enumerate \item description \end{itemize} 15
4.7.2 enumerate \item 1. itemize 2. enumerate 3. description \begin{enumerate} \item itemize $\bullet$ \item enumerate \item description \end{enumerate} 4.7.3 description \item[...] [...] itemize enumerate description \begin{description} \item[ ] {\tt itemize} $\bullet$ \item[ ] {\tt enumerate} \item[ ] {\tt description} \end{description} 4.8 LaTeX 16
\begin{ A}... \begin{ B}... \begin{ D}... \end{ D}... \end{ B}... \begin{ C}... \end{ C} \end{ A} A B C B D \begin{itemize} \item 1 \begin{itemize} \item 2 \begin{itemize} \item 3 \begin{itemize} \item 4 \end{itemize} \end{itemize} \end{itemize} \item 2 \end{itemize} 1 2 17
3 4 2 \begin{enumerate} \item 1 \begin{enumerate} \item 2 \begin{enumerate} \item 3 \begin{enumerate} \item 4 \end{enumerate} \end{enumerate} \end{enumerate} \item 2 \end{enumerate} 1. 1 a 2 i. 3 A. 4 2. 2 [4, 5 ] L A TEX L A TEX L A TEX 4.9 L A TEX 18
\footnote{..} {..} *5 \footnote{ } 4.10 L A TEX 4.11 1 72 L A TEX 10 11 12 \documentclass{...} 11 \documentclass[11pt]{...} 12 \documentclass[12pt]{...} 4.12 1 (Font) L A TEX 4.12.1 L A TEX 2 (Gothic), \textgt{ } ( ) \textbf{...} \textbf{...} *5 19
4.12.2 L A TEX 2 *6 2 Roman \testrm{roman} Boldface \textbf{boldface} Emphasis \emph{emphasis} Sans Serif \textsf{sans Serif} Italic \textit{italic} typewriter \texttt{typewriter} Small Caps \textsc{small Caps} 2 4.13 TEX D. Knuth TEX [4] L A TEX $ $ $\heartsuit$ 4.13.1 3 *6 jarticle jreport jbook Computer Modern 20
α \alpha β \beta γ \gamma δ \delta ϵ \epsilon ε \varepsilon ζ \zeta η \eta θ \theta ϑ \vartheta ι \iota κ \kappa λ \lambda µ \mu ν \nu ξ \xi ø \o π \pi ϖ \varpi ρ \rho ϱ \varrho σ \sigma ς \varsigma τ \tau υ \upsilon ϕ \phi φ \varphi χ \chi ψ \psi ω \omega Γ \Gamma Λ \Lambda Σ \Sigma Ψ \Psi \Delta Ξ \Xi Υ \Upsilon Ω \Omega Θ \Theta Π \Pi Φ \Phi \sum \prod 3 4.13.2 4 21
± \pm \mp \times \div \ast \star \circ \bullet \cdot \diamond \bigtriangleup \bigtriangledown \traiangleleft \traiangleright \bigcirc \dagger \leq \geq \equiv \sim \simeq \approx \neq \propto \prep \parallel \leftarrow \Leftarrow \rightarrow \Rightarrow \leftrightarrow \Leftrightarrow \longleftarrow = \Longleftarrow \longrightarrow = \Longrightarrow \uparrow \Uparrow \downarrow \Downarrow \updownarrow \Updownarrow \nearrow \searrow \swarrow \nwarrow \angle \flat \natural \sharp \ \backslash \partial \infty \triangle \clubsuit \diamondsuit \heartsuit \spadesuit 4 L A TEX AMS-TEX amsmath amssymb *7 \usepackage{amsmath,amssymb} π ($\pi$) $\boldsymbol{\pi}$ π $\leqq$ \geqq $\lneqq$ \gneqq AMS-L A TEX \[ \cfrac{1}{\sqrt{2}+ \cfrac{1}{\sqrt{2}+ \cfrac{1}{\sqrt{2}+\dotsb }}} \] *7 AMS-LATEX TEXWiki/AMS-LaTeX http://www.ams.org/publications/authors/tex/amslatex 22
1 1 2 + 1 2 + 2 + 4.13.3 5 ı ȷ - 2 % \% { \{ } \} # \# $ \$ $ \$ ˆ \^{} \~{} \_ \ $\backslassh$ {\S} {\P} c {\copyright} {\dag} {\ddag} {\pounds} Y= Y\llap= œ {\oe} Œ {\OE} æ {\ae} Æ {\AE} å {\aa} Å {\AA} ø {\o} Ø {\O} ß {\ss}?! ı {\i} ȷ {\j} - - -- --- L A TEX \LaTeX TEX \TeX 5 \c{c} cedilla fa\c{c}ade 6 grave \ {a} à tilde \~{o} õ check \v{s} š acute \ {e} é bar \={y} ȳ long \H{j} j hat \^{o} ô dot \.{p} ṗ tie-after \t{\i u} ıu umlaut \"{u} ü breve \u{\i} ĭ dot-under \d{h} ḥ 6 L A TEX 23
5 L A TEX TEXWiki [TeX / ] TEX EPS BoundingBox TEX PNG, JPEG, PDF EPS *.png, *.jpg, *.pdf, *.eps EPS PNG, JPEG, PDF BoundingBox PNG, JPG PDF L A TEX BoundingBox BoundingBox iphone JPEG Adobe Illustrator GIMP Postscript PNG, JPG Adobe PhotoShop/Illustrator GIMP BoundingBox Postscript EPS 5.1 PNG/JPEG TeX Wiki[TeX / ] 426 496 PNG JPEG apple.jpg \documentclass{jarticle}% jsarticle... \usepackage[dvipdfm]{graphicx}% / %... \begin{document}... \includegraphics[bb=0 0 426 496,width=5cm]{apple.jpg}... \end{document} \includegraphics{ } [ ] bb BoundingBox (0, 0) (426, 496) 426 496 24
width BoundingBox \includegraphics 5.2 5.3 PNG JPEG bb BoundingBox b \includegraphics bb bb TEX dvipdfm ( dvipdfmx.exe) ebb BoundingBox.bb % ebb apple.jpg apple.bb BoundingBox bb \includegraphics[width=5cm]{apple.jpg} ebb Windows ( DOS [ / ] cmd Mac OS Winows dviout *8 CreateBB.exe (dviout.exe ) BB GUI JPEG BoudingBox.bb BB [File Type..] JPG File 5.2 EPS PostScript EPS L A TEX dviout for Windows 3.2.3 5.4 EPS Macintosh Linux 5.2.1 PostScript EPS PostScript Adobe System PostScript PostScript PostScript PS PS.ps Encapsulated PostScript EPS PS PS *8 dvioiut PJEG/PNG Susie dviout Susie http://www10.ocn.ne.jp/~tasusu/tex/susie.html 25
PS PS EPS L A TEX EPS EPS.eps.ps PS EPS EPS %!PS-Adobe-3.0 EPSF-3.0 %%Creator: GraphicConverter %%Title: WINTEX.ps %%BoundingBox: 0 0 128 62... 1 PostScript EPS EPS %%BoundingBox: %%BoundingBox: x 0 y 0 x 1 y 1 (x 0, y 0 ) (x 1, y 1 ) x 1 x 0 y 1 y 0 = 1/72 5.2.2 EPS EPS L A TEX EPS Adobe Illustrator Adobe PhotoShop Linux, Mac Windows Gimp GNU Image Manipulation Program *9 GIMP EPS PDF EPS PDF EPS PDF 5.3 EPS L A TEX EPS \usepackage graphicx \includegraphics EPS *9 Gimp http://www.gimp.org/ 26
\documentclass{jarticle}% jsarticle... \usepackage[dvipdfm]{graphicx}%... \begin{document}... \includegraphics[ ]{ }... \end{document} L A TEX / sin EPS sin.eps EPS psfile/sin.eps \includegraphics{psfile/sin.eps} \includegraphics[height=3cm]{psfile/sin.eps}\\ \includegraphics[scale=1.5]{psfile/sin.eps} \includegraphics[width=3cm,height=4cm]{psfile/sin.eps} 2 2 EPS 2 \includegraphics{...} 1 PostScript 27
L A TEX figure \begin{center} \includegraphics[scale=1.5]{psfile/sin.eps} \end{center} \caption{$\sin$ EPS 1.5 } \label{sin-curve} 12 figure \label{sin-curve} \ref{sin-curve} \pageref{sin-curve} EPS epsfile.eps \includegraphics EPS, EPS height width 1. \includegraphics[height=4cm]{epsfile.eps} 2. \includegraphics[width=3cm]{epsfile.eps} 3. \includegraphics[width=3cm,height=4cm]{epsfile.eps} 1 2 EPS EPS epsfile.eps x y 1 height h width= h x/y 2 width w height= w y/x 3 width height scale \includegraphics[scale=1.5]{epsfile.eps} 1.5 5.4 DVI PDF PDF Portable Document Format Adobe System PostScript PDF Acrobat Reader OS PDF Web PDF EPS DVI Postscript Ghostscript EPS DVI PDF 1 PDF L A TEX PDF 28
Windows Macintosh Linux DVI latex.dvi PDF latex.pdf dvipdfm( dvipdfmx) PDF latex.pdf PostScript DVI PDF Ghostscript dvipdfm Ghostscript Linux Windows Macintosh OS X % dvipdfmx latex.dvi TEX WinShell DVI Adobe Reader PDF 5.5 DVI PS DVI dvipsk EPS PostScript [4, 13 ] PostScript Ghostscirpt Windows Macintosh L A TEX L A TEX PDF L A TEX DVI Postscript 6 1 2 3 tabular Apple Pine Orange \begin{tabular}{lcr} \hline 1 & 2 & 3\\ \hline & & \\ Apple & Pine & Orange\\ \hline \end{tabular} 29
6.1 tabular 1 table tabular center 1 2 3 Apple Pine Orange 7 L A TEX figure table \begin{table/figure}[ ] tabular center \caption{ } \label{ } \end{figure/table} figure/table float float 8 figure/table h t b p tabular 8 figure/table float [htb] TEX \label{ } \ref{ } \usepackage{here} 30
here figure/table [H] 6.2 tabular tabular \begin{tabular}{ }...... \end{tabular} tabular l (Left) L c (center) r (Right) 2 2 9 tabular & 2 \\ tabular 10 6.3 tabular p{ } 0.3\textwidth 30% 31
\hline \vline \cline{start-end} \multicolumn{num}{pos}{item} \hline \hline\hline 2 start end num pos item pos l L, c, r 1 10 tabular 11 2 40% 7 1 tabular p{} && tabular tabular tabular \centering 1 2 3 Apple Pine Orange 12 1 2 3 Apple Pine Orange 13 32
\multicolumn \cline 100g 2g 100g 3 4 100g 50g 500cc 14 7 L A TEX L A TEX L A TEX What You See Is What You Get WYSIWYG WYSIWYG 7.1 L A TEX L A TEX 1. ( 36 2. 3. 4. 5. 36 54 33
L A TEX 3 (part) (chapter) (section) (subsection) (subsubsection) (paragraph) (subparagraph) L A TEX 3 DVI 3 L A TEX \part{...} \chapter{...} \section{...} \subsection{...} \subsubsection{...} \paragraph{...} \subparagraph{...} 3 L A TEX * \part*{...} \chapter*{...} \section*{...} \subsection*{...} \subsubsection*{...} \paragraph*{...} \subparagraph*{...} * L A TEX 12.3 7.2 L A TEX L A TEX \documentclass{jarticle} \documentclass{jsarticle} jarticle jsarticle 4 2 A B 1 0 0 2 2 L A TEX jarticle 34
A Section 1 Subection 1.1 Subsection 1.2 Section 2 Subsection 2.1 Subsection 2.2 Subsection 2.3 B Section 1 Section 2 Subsection 2.1 Subsubsection 2.2 Subsubsection 2.2.1 Subsubsection 2.2.2 Section 3 4 A B L A TEX \section{..} \subsection{..} \subsubsection{..} {...} (heading) jarticle \section{...} part{...} \chapter{..} jbook.sty jreport.sty \chapter{...} jsarticle jbook L A TEX \documentclass{...} jarticle tarticle tarticle treport tbook jarticle jreport jbook TEX [4] L A TEX L A TEX 7.3 jarticle L A TEX 35
7.3.1 4.1 11 L A TEX (title) 4 \title{..} \author{..} \date{..} \maketitle 1 \maketitle \title{..} \author{..} \date{..} \maketitle \maketitle % 7.3.2 L A TEX (contents) L A TEX \tableofcontents \begin{document} \end{document} 1 \tableofcontents DVI 2.toc Table Of Contents DVI 1 DVI 2 2 7.3.3 L A TEX L A TEX % 2nd Sep. 2010 % % 12 Sep. 2010 % \documentclass{jarticle}% jsarticle 36
% \usepackage{graphicx} \usepackage{amsmath,amssymb} \title{ } \title{}, \author{}, \date{}, \maketitle \author{ } 1 \date{ }... % \begin{document} \maketitle \tableofcontents 2 jlatex \begin{absrtact} \begin{abstract} \end{abstract} \end{abstract} \section{ } \section{..} \subsection{ } \subsection{..} \section \subsubsection{ } \subsubsection{..} \subsection %\subsubsection{ } \section{ } \section{..} \subsection{..} \subsubsection{...}... \section{ }... \end{document} 37
L A TEX \section{..}, \subsection{..} \subsubsection{..} L A TEX 7.4 L A TEX L A TEX \input{..} \include{..} \input{ TEX } \input { } \input root.tex \documentclass{jarticle} \begin{document} \tableofcontents %\input introduction.tex \input development.tex %\input turn.tex %\input{conclusion.tex} %\input{../appendix.tex} %\input book/biblio.tex \end{document} \input \input{...} \input 38
\inpute % development.tex \inpute{../appendix.tex} \input{book/biblio.tex} Linux Windows Macintosh / 8 4.3 L A TEX \usepackage{..} TEXWiki graphicx 5.3 26 \documentclass[ ]{ } \usepackage{ }... \usepackage{ }... \begin{document}... 8.1 2 1 twocolumn 2 \documentclass[twocolumn]{jarticle} 2 multicol 2 multicol multicols \documentclass{jarticle}% jsarticle \usepackage{multicol} 39
... \begin{document}... 1... \begin{multicols}{2} % 2... 2 \begin{multicol}{ }... \end{multicols} 1... \end{document} 2 3 8.2 L A TEX TEX TEX TEX Windows TeX 3 C:\w32tex/share/ C:\usr/local/share/ texmf/ tex ptex L A TEX [2] L A TEX TEXWiki TEX CTAN(Comprehensive TEXArchive Network) * 10 tex.sty.cls TEX mktexlsr TEX TEX *10 TEXUser Group http://www.tug.org/ RING http://www.ring.gr.jp/pub/text/ctan/ 40
(.sty,.cls).sty,.cls.dtx ins.ins dtx dtx package.dtx package.ins % platex package.ins sty/cls dtx % platex package.dtx dvi platex TEX TEX texmf/tex/misc texmf/ptex/misc texmf/tex % texhash mktexlsr texhash TeX ls-r TEX \usepackage{..} sty/cls 8.3 8.3 TEXMFHOME TeX TEXMFHOME TEXMFHOME TeX texmf TeX CTAN(The Comprehensive TEX Archive Network) * 11 TEXMFHOME TeX TeX TeX TeX *11 http://www.ctan.org 41
texmf tex texmf/tex TeX TeX TeX TeX TEXMF TEXMF 8.3.1 TEXMFHOME TEXMFHOME OS TeX TeX TEXMFHOME * 12 tt texmf Windows Windows XP : C:\Documents and Settings\ Windws Vista : C:\Users\ Windows 7/8 : C:\Users\ Mac Macport TeX TEXMFHOME ~/ MacTeX TeX TEXNFHOME ~/Library MacOS 7(Lion) ~/Library MacOS 10.8 Mountain Lion Desktop TEXMFHOME/texmf ~/Library 8.3.2 TEXMFHOME TeX TEXMFHOME texmf TEXMFHOME/texmf TEXMFHOME/texmf texmf tex tex platex latex TEXHOME texmf --tex -- --platex <-- --latex <-- --misc <-- TEXMFHOME/texmf/ TeX *12 TeX 3 http://www.math.sci.hokudai.ac.jp/ abenori/soft/abtexinst.html 42
TeX TEXMFHOME/texmf/tex/ TEXMF TeX \usepackage{...} TEX- HOME texmf TEXHOM/texmf/tex TEXMFHOME/texmf/ 8.3.3 TeX TeX kpsewhich % TEXHOM/texmf/tex/ MacTEX fourier.sty pxjahyper.sty TeX TEXMF % kpsewhich fourier.sty< /usr/local/texlive/2012/texmf-dist/tex/latex/fourier/fourier.sty % kpsewhich pxjahyper.sty /Users/masahiro/Library/texmf/tex/misc/PXjahyper-master/pxjahyper.sty /usr/local/texlive/2012/texmf-dist/t /Users/masahiro/Library/texmf/tex/misc/PXjahyper-master/pxjahyper.sty TeX TEXMF kpsewhich % kpsewhich -var-value TEXMF {C:/Documents and Settings/masahiro/texmf</font>,C:/w32tex/share/texmf-projects, C:/w32tex/share/texmf-local,C:/w32tex/share/texmf} <- Windows XP {/Users/masahiro/Library/texlive/2012/texmf-config,/Users/masahiro/Library/texlive/2012/texmf-var, /Users/masahiro/Library/texmf,!!/usr/local/texlive/2012/texmf-config,!!/usr/local/texlive/2012/texmf-var,!!/usr/local/texlive/2012/texmf,!!/usr/local/texlive/2012/../texmf-local,!!/usr/local/texlive/2012/texmf-dist} <- MacTeX TEXMFHOME/texmf TEXMFHOME/texmf/tex/ 43
9 TEX TEX PDF Adobe Reader PDF OS Beamer * 13 9.1 Beamer Beamer L A TEX platex DVI dvipdfmx PDF Beamer 2 \documentclass[dvipdfm]{beamer} beamer dvipdfm L A TEX pdflatex PDF pdflatex L A TEX platex + dvipdfmx beamer [dvipdfm] * 14 2,3 \usepackage{{hyperref,pxjahyper} hyperref pxjahyper hyperref + dvipdfmx PDF Beamer Madrid Beamer 1 frame \begin{frame}{ }... 1... \verb+\end{frame} frame { } { } frame \section{..} \subsection{..} L A TEX *13 The beamer package http://www.ctan.org/tex-archive/macros/latex/contrib/beamer/. *14 LATEX documentclass [dvipdfm] 44
\tableofcontents beamer \documentclass[dvipdfm]{beamer} usepackage[dvipdfmx]{hyperref}%hyper \usepackage{pxjahyper}% \usetheme{madrid}% \usepackage[english]{babel}%for English \usepackage{amsmath,amssymb}%ams \usepackage{mathptmx}%math Adobe Times Roman \usepackage{helvet}%for normal english \usepackage{courier}%\texttt{..} courier \usepackage[t1]{fontenc}% (1) \usepackage{lmodern}% (2) \usepackage{graphicx}% % %\beamerdefaultoverlayspecification{<+->} \title[makin Slides using Beamer] {\LaTeX{}+Beamer } \subtitle{\latex{} } \author[taro Meiji]{ } \institute{ } \date[june 8 2013]{2013 6 8 } \subject{\latex{}+beamer} \begin{document} \begin{frame} \titlepage \end{frame} \begin{frame}<beamer> \frametitle{agenda} \tableofcontents \end{frame} \section{ } \begin{frame}{ } \begin{itemize} \item \item \item \alert{ } \end{itemize} \end{frame} \section{ } \subsection{block } \begin{frame}{ Block} \begin{block}{ } block \end{block} \begin{example} example block \end{example} \begin{alertblock}{ } alert block \end{alertblock} \end{frame} \subsection{ } \begin{frame}{\latex{} } Pauli \begin{equation} [\sigma_x, \sigma_y]=2i\sigma_z, [\sigma_y, \sigma_z]=2i\sigma_x, [\sigma_z, \sigma_x]=2i\sigma_y \end{equation} \vspace{0.5cm} \begin{block}<+->{ } $\phi(x)$ $\psi(x)$ \begin{equation} \langle\phi, \psi\rangle = \int \phi^*(x) \psi(x) dx \end{equation} \end{block} \end{frame} \section{ } \subsection{ } \begin{frame}{png } PNG bb \begin{figure} 45
\includegraphics[scale=0.3] {image/lorenz_flow.png} \end{figure} \end{frame} \subsection{ } \begin{frame}{\latex{} } \LaTeX{} \begin{table}[htb] \begin{center} \begin{tabular}{l r l} \hline \multicolumn{3}{c}{ }\\ \hline \multicolumn{1}{c }{ } & & \\ \hline & 100g & \\ \cline{1-2} & 2g & \\ \cline{1-2} & 100g & \\ \cline{1-2} & 3 & \\ \hline & 4 & \\ \cline{1-2} & 100g & \\ \cline{1-2} & 50g & \\ \cline{1-2} & 500cc & \\ \cline{1-2} & & \\ \cline{1-2} & & \\ \hline \end{tabular} \end{center} \caption{ } \label{tbl-cream} \end{table} \end{frame} \section{ } \begin{frame} \frametitle{ } \begin{enumerate} \item \LaTeX{} \item Beamer Cool \begin{itemize} \item \LaTeX{} beamer \item Nothing else? \end{itemize} \end{enumerate} \vspace*{1.5cm} \onslide \href{mailto:hogehoge@meiji.ac.jp} {\texttt{hogehoge@meiji.ac.jp}} \end{frame} \end{document} 9.2 Beamer beamerposter * 15 Beamer Beamer Beamerposter \documentclass[dvipdfm]{beamer} Beamer Beamerposter A \usepackage[orientation=portrait, size=a0, scale=1.4]{beamerposter} orientation=portrait landscape size=a0 A4 A0 \begin{document} 1 frame Beamer frame 1 *15 The beamerposter package http://www.ctan.org/tex-archive/macros/latex/contrib/beamerposter. 46
frame block alertblock \documentclass[dvipdfm]{beamer} \usepackage[orientation=portrait, size=a0, scale=1.4]{beamerposter} \usetheme{ }...... \begin{document} \begin{frame} \begin{block}{ 1}...Beamer \end{block} \vfill \begin{frame} \begin{block}{ 2}...Beamer \end{block}...... \end{frame} \end{document} The beamerposter package example.tex block block block \linewidth 0.48 2 2 \begin{columns}[t] \begin{column}{.48\linewidth} \begin{block}{ }... \end{block}... block... \end{column} \begin{column}{.48\linewidth} \begin{block}{ } 47
... \end{block}... block... \end{column} block 1 1 2 3 The beamerposter package 1 +1 +2 block RicePoster Rice Beamer Poster * 16 RicePosterExample.tex 3 2 10 tarticle tbook 2 \documentclass{tarticle} documentclass{tarticle}... title{ } author{ } date{ } begin{document} maketitle...... \end{document} 10.1 ruby.sty * 17 furikana.sty * 18 ruby.sty \usepackage{ruby} % *16 LATEXresources for Rice students http://ricebeamer.dynaman.net. *17 ruby.sty http://www.nls.ics.saitama-u.ac.jp/~tohru/ja/exports/external/chosho/ruby.sty. *18 furikana.sty http://homepage3.nifty.com/xymtex/fujitas2/texlatex/tategumi/furikana.sty. 48
\ruby{ }{ } furikana.sty \usepackage{furikana} % \kana{ }{ } 10.2 \footnote{...} kyakuchu.sty * 19 kyakuchutext[ ]{ } \kyakuchumark{ } kyakuchu.sty \usepackage{kyakuchu} % \kyakuchutext{ 1}{ } \kyakuchutext{ 2}{ }... \kyakuchumark{ 1}... \kyakuchumark{ 2}... kyakuchu \footnote{..} documentclass[a4j]{tarticle} usepackage{furikana} usepackage{kyakuchu} begin{document} \footnote{ } \kyakuchutext{a1}{ } \kyakuchutext{a2}{ ( ) } \kyakuchutext{a3}{ ( \ref{a2} ) *19 kyakuchu.sty http://homepage3.nifty.com/xymtex/fujitas2/texlatex/tategumi/kyakuchu.sty. 49
} \kyakuchumark{a1} \kana{ }{ } \kyakuchumark{a2} ( ) \kyakuchumark{a3} \end{document} 11 1 L A TEX thebibliography \bibitem[ ]{ } \cite{ } L A TEX 11.1 thebibliography \begin{thebibliography}{n} \bibitem[opt]{key1 } 1 \bibitem[opt]{key2 } 2...... \end{thebibliography} thebibiliography n n 1, 2, 3,... 9, 99, 999... \bibitem key \bibitem [ ] \bibitem [1] [2] [3]... \bibitem{urashimada} 50
\bibitem[ ]{hanasaka} \bibitem[ 1973]{hana73} \bibitem[ 1984]{hana84} (1905--1989) \cite{urashimada}... \cite[p.53-55]{hanasaka}... \cite{asigara} \begin{thebibliography}{99} \bibitem{urashimada} 1985. \bibitem{asigara} Kintaro Asigara, \textit{the Battle of Saru-Kani and historical methods}, Histrical Review, \textbf{31}(1989), pp125-209. \bibitem[ ]{hanasaka} 1972. \end{thebibliography} 2.aux 11.2 key \cite[remark]{key} remark \bibitem remark [3, remark ] BibTEX [4] 51
12 L A TEX chapter section 11 13 L A TEX 36 L A TEX 12.1 L A TEX \label{..} \label{ } \label L A TEX \ref{ } \pageref{ } 2 1.aux 2.aux 12.2 \chapter{...} \section{...} 52
\section{ \label{background}} \subsection{ \label{relation}} \section{ } \label{background} \subsection{ } \label{relation}... \ref{background} \ref{relation} \pageref{relation} 12.3 [4] L A TEX figure table \caption{...} \end{tabel} \end{figure} \begin{table}[htbp]... \caption{ } \label{icecream} \end{table} \ref{dessert}... \ref{icecream} \pageref{icecream} 15 53
\ref{ } \label{ } \pageref{ } \label{ } \ref{ } \label{ } \ref{ } \label{ } \cite[remark]{ } \bibitem[opt]{ } 15 L A TEX 13 L A TEX MakeIndex MakeIndex ASCII mendex 13.1 L A TEX makeidx \makeindex \index{ @ } \printindex \documentclass{ } \usepackage{makeidx} \makeindex... \begin{document}... \index{ @ }... \printindex \end{document} \index{..@..} \index{..@..} 54
\index{..@..} 1. 2.idx 2. MakeIndex mendex idx 50.ind latexfile.tex latexfile.idx makeindex mendex ( TEX ) % mendex(or makeindex) latexfile.idx latexfile.ind 3. ind \printindex 4. 4 13.2 \index \index{ @ } index{ } 50 index{..@..} \LaTeX LaTeX latex 55
13.3 L A TEX \documentclass{jarticle}% jsarticle \usepackage{makeidx} \makeindex... \begin{document} \maketitle \tableofcontents...... \index{ @ } \index{ @ } \index{ @ } \index{ @ } \index{ @ } \index{ @ }... \printindex \end{document} index{..@..} 56
[1] Knuth, Donald E., TeX, (1992. [2], The LaTeX, (1998 ). [3], The LaTeX, (2001. [4], [ 5 ]L A TEX2 ε, (2010. 57
center, 13 description, 15, 16 dvipdfmx, 29 DVI, 3 DVI, 4 enumerate, 15, 16 EPS, 25 figure, 28 flushleft, 13 flushright, 13 index, 52 itemize, 15 LATEX, 9 PostScript, 25 quotation, 13 quote, 12 TEX, 1 thebibliography, 47 verbatim, 14 WYSIWYG, 33 xdvi, 8, 23, 47 LATEX, 15 LATEX, 12 LATEX, 17 LATEX, 14 LATEX, 18 LATEX, 13, 20, 2 subsection, 34, 19, 9 LATEX, 6, 9, 36, 6, 49, 52, 49, 47, 48, 49, 47 chapter, 34 subparagraph, 34, 20, 40 section, 34, 10, 49 paragraph, 34 LATEX, 39 LATEX, 15, 39 LATEX, 10 LATEX, 13, 9, 10 LATEX, 13 LATEX, 11, 36 part, 34 LATEX, 4, 19, 11, 47 LATEX, 33 LATEX, 34 LATEX, 12 LATEX, 13, 12, 33, 12, 6, 3, 25, 19, 35, 38 LATEX, 13 LATEX, 35 LATEX, 15, 16 LATEX, 34, 19 subsubsection, 34 LATEX, 36 LATEX, 9, 38, 10 LATEX, 15, 16 58