L A TEX 1 2012 2014 (2014 9 ) 1
1 1 1.1 L A TEX........................................... 1 1.2 L A TEX......................................... 1 2 L A TEX 3 2.1 L A TEX.................................. 3 2.2 L A TEX.................................... 6 2.2.1 L A TEX (Step1)....................... 7 2.2.2 L A TEX (Step2)....................... 7 2.2.3 (Step3)........................ 7 2.2.4 PDF (Step4)............................ 7 2.3............................. 8 2.3.1.......................... 9 2.4 L A TEX................................... 9 3 10 3.1.......................................... 10 3.1.1...................................... 11 3.1.2...................................... 11 3.1.3........................................ 13 3.2....................................... 13 3.2.1........................................ 14 3.3..................................... 15 3.3.1.................................... 16 4 18 4.1.......................................... 18 4.2.......................................... 19 4.2.1................................. 19 4.2.2............................... 20 4.2.3........................................ 20 4.2.4...................................... 21 4.2.5................................ 22 5 26 5.1............................................ 26 5.1.1.................................... 27 5.1.2................................... 27 5.2......................................... 28 i
6 30 6.1........................................ 30 6.2................................. 32 6.2.1 graphicx..................... 32 6.2.2.............................. 33 6.3......................................... 34 6.4.................................. 36 6.5........................................ 37 7 38 A Libre Office 40 B AUCTeX L A TEX 42 B.1 AUCTeX....................................... 42 B.2 AUCTeX...................................... 42 B.2.1......................... 45 ii
1 1.1 L A TEX ( (typesetting): ) L A TEX( ) Knuth TEX [1] () Lamport TEX L A TEX [2] L A TEX ( L A TEX ) L A TEX 1.2 L A TEX L A TEX Microsoft Word L A TEX L A TEX L A TEX ( ) L A TEX ( n ) L A TEX L A TEX L A TEX ( ) L A TEX L A TEX 1
( ) L A TEX L A TEX L A TEX 2
2 L A TEX L A TEX L A TEX \ (backslash) backslash Y backslash Y backslash Y( ) backslash Y 2.1 L A TEX ( ) L A TEX \documentclass{jarticle} \begin{document} ( (typesetting): ) LaTeX LaTeX LaTeX LaTeX \end{document} L A TEX L A TEX Emacs L A TEX 2.1 3
\documentclass{} \begin{document}. \end{document} 2.1: L A TEX \documentclass{...} L A TEX \begin{document} \end{document} L A TEX \documentclass{jarticle} jarticle( ) jreport( ) jbook( ) article, report, book jarticle L A TEX L A TEX 4
( (typesetting): ) LaTeX LaTeX LaTeX LaTeX 1 2.2: 5
abc.tex platex? NO YES abc.dvi pxdvi OK NO YES pdvips dvipdfmx abc.pdf 2.3: L A TEX L A TEX 2.2 2.2 L A TEX L A TEX ( 2.3 ) Linux ( ) (Step1) Emacs L A TEX (Step2) L A TEX (Step1) (Step3) ( ) (Step1) (Step4) (Step4 ) PDF ( L A TEX ) 6
2.2.1 L A TEX (Step1) L A TEX Emacs L A TEX.tex tex 1 L A TEX abc.tex 2.2.2 L A TEX (Step2) L A TEX GNOME abc.tex cd platex ( % ) L A TEX % platex abc.tex L A TEX DVI... Output written on abc.dvi (nn pages, bbbb bytes). Transcript written on abc.log. LaTeX finished at MM DD hh:mm:ss abc.dvi nn bbbb byte MM DD hh:mm:ss DVI abc.log abc.aux 2.2.3 (Step3) GNOME pxdvi % pxdvi abc.dvi 2.2.4 PDF (Step4) PDF PDF dvipdfmx 1 7
PDF % dvipdfmx abc.dvi PDF abc.pdf Acrobat Reader PDF PDF ( ) pdvips PDF % pdvips -f abc.dvi lpr PDF 2.3 L A TEX (Step3) DVI () 1 \documentclass{jarticle} 2 3 \begin{documnt} 4 5 \end{document} 1! LaTeX Error: Environment documnt undefined. 2 3 See the LaTeX manual or LaTeX Companion for explanation. 4 Type H <return> for immediate help. 5... 6 7 l.3 \begin{documnt} 8 ^^c9^^a4 9? 1! LaTeX Error ( Environment documnt undefined. documnt ) 7 8 l.3 3 7 \begin{documnt} 8 \begin{documnt} \begin{document} 9? X 8
2.3.1 L A TEX L A TEX L A TEX L A TEX L A TEX L A TEX L A TEX \begin{...} \end{...} { } 2.4 L A TEX L A TEX backslash Emacs L A TEX B 9
3 L A TEX 3.1 (chapter) (section) ( ) L A TEX \documentclass{jarticle} \begin{document} \title{ } \author{ } \date{201x 10 1 } \maketitle \section{ } \subsection{} \label{subsec:writeprogram}. \subsection{ } \label{subsec:exec}. \section{ } \ref{subsec:writeprogram}. \subsection{ } \subsubsection{}. \subsection{ }.. \subsection{}. \end{document} 10
3.1 L A TEX L A TEX \(backslash) L A TEX \documentclass, \begin, \end L A TEX \ { 1} { n} ( ) \title, \author, \date 1 \maketitle { } [ ] documentclass \documentclass[twocolumn]{jarticle} () 3.1.1 \begin{document} 4 \title{ } \author{ } \date{ } ( ) \date{\today} \maketitle 3.1.2 (section) (subsection) (subsubsection) \section{ } \subsection{ } \subsubsection{ } jreport jbook (chapter) \chapter{ } ( ) L A TEX L A TEX 1 L A TEX L A TEX 11
201X 10 1 1 1.1. 1.2. 2 1.1. 2.1 2.1.1. 2.2.. 2.3. 1 3.1: 12
3.1.3 ( 3 ) L A TEX ( \section{ }) \label{} (:, - ) ( ) \ref{} \label{subsec:writeprogram} \ref{} \ref{subsec:writeprogram} L A TEX ( enumerate, caption ) L A TEX L A TEX 2 (platex ) 1 2 (\ref{ }) 3.2 L A TEX 2.1 L A TEX \begin{document} \end{document} ( ) 13
3.2.1 L A TEX L A TEX L A TEX \begin{ } \end{ } \begin{document}, \end{document} \begin{ } \end{ } (\begin{ }... \end{ } \begin{ }...\end{ } ) itemize \begin{itemize} \item \item \item \item \item \begin{itemize} \item \item \\ \end{itemize} \end{itemize} \\ L A TEX (\\) ( ) ( ) 14
enumerate \begin{enumerate} \item X Y 1. X Y \item \label{comparison} X Y 2. X Y \begin{enumerate} \item X Y (a) X Y 3 \ref{finished} (b) X Y X Y \item X Y 2 X Y (c) Y X Y X \ref{comparison} X X, Y \item Y X 2 Y X X X, Y 3. X X Y \ref{comparison} \end{enumerate} \item \label{finished} X X Y \end{enumerate} itemize description \begin{description} \item[ ] \item[ ] \item[] \end{description} 3.3 L A TEX # $ % & _ { } ~ ^ \ @ % L A TEX % 15
%% % % % ( ) \ { } L A TEX $ _ ^ (4 ) & tabular (5.1 ) array (4 ) # (6.3 ) ~ @ See 329~page. L A TEX 329 page 3.3.1 % 40% 40 # $ % & _ { } \ (\# \$) 40\% 40% (1 ) verb verb ( + +) 1 \verb+%~a012345%kyoto_univ.jp+ \verb-%~a012345$kyoto+- %~a012345%kyoto_univ.jp %~a012345$kyoto+ 1 verb 16
L A TEX verbatim \begin{verbatim} \end{verbatim} \begin{verbatim} #include <stdio.h> #include <stdio.h> int main(void) { printf("welcome to C world! \n"); printf("%d \n", 12); return 0; } \end{verbatim} int main(void) { printf("welcome to C world! \n"); printf("%d \n", 12); } return 0; 17
4 L A TEX 4.1 L A TEX 2 $ $ ( \( \) \begin{math} \end{math} ) $\sum_{i=1}^{n} i = n i=1 i = n(n+1) 2 \frac{n(n+1)}{2}$ \[ \] (\begin{displaymath} \end{displaymath} ) \[ \sum_{i=1}^{n} i = n \frac{n(n+1)}{2} n(n + 1) i = \] 2 i=1 1 (i = 1 n) 18
\displaystyle $\displaystyle\sum_{i=1}^{n} i = \frac{n(n+1)}{2}$ n i = i=1 n(n + 1) 2 4.2 L A TEX 4.2.1 L A TEX 10 ( ) = < > + /, : ; ( ) [ ] = < > + - /, : ; ( ) [ ] ( ) \[ (2+3) \times 2 \div 4 = 2.5 \geq 2 \] (2 + 3) 2 4 = 2.5 2 \[ (x+1)(y-1) = xy - x + y - 1 (x + 1)(y 1) = xy x + y 1 \] sin(α + β) = sin α cos β + cos α sin β \[ \sin (\alpha+\beta) = \sin\alpha \cos\beta + \cos\alpha\sin\beta \] L A TEX 4.1 4.9 1 L A TEX sin sin s i n \[ sin y = - sin (y+\pi) \] siny = sin(y + π) \[ \sin y = - \sin (y+\pi) sin y = sin(y + π) \] y sin y s i n y 4.5 1 [5] 19
4.2.2 L A TEX ^{ } _{ } \[ 2^{0} =1, 2^{1} =2, 2^{2} =4 \] 2 0 = 1, 2 1 = 2, 2 2 = 4 \[ 2^{2^{2}}=16, 2^{2^{2^{2}}}=65536 2 22 = 16, 2 222 = 65536 \] \[ a n+2 = a n+1 + a n (n 0) a_{n+2} = a_{n+1} + a_{n} (n\geq 0) \] \[ \lim_{n\to \infty} \frac{1}{n} \sum_{i=0}^{n-1} f(i/n) = \int_{0}^{1}f(x)dx \] lim N 4.8 N 1 1 N i=0 f(i/n) = 1 0 f(x)dx 4.2.3 array (2 3 ) \[ \begin{array}{ccc} 1 & 2 & 3 \\ 4 & 5 & 6 \end{array} \] 1 2 3 4 5 6 ( 3 ) & \\ & ( ) {ccc} 1 1 3 20
c l r c 3 \[ \begin{array}{lcr} 1 & 1 & 1 1 1 1 \\ 100 100 100 100 & 100 & 100 \\ 10000 10000 10000 10000 & 10000 & 10000 \end{array} \] array \[ \left( \begin{array}{cc} 1 & 0 \\ 0 & 1 \end{array} \right) \] \left( \right) array ( ) 4.9. ( ) \[ f(n) = { \left\{ 1 (n = 0) \begin{array}{ll} f(n) = n f(n 1) (n > 0) 1 & (n=0) \\ n\times f(n-1) & (n>0) \end{array} \right. \] ( 1 0 0 1 ) 4.2.4 1 array eqnarray 21
$x,y,z\in G$ $G$ \begin{eqnarray} \label{grp1} (x \cdot y) \cdot z & = & x \cdot (y \cdot z) \\ \label{grp2} e \cdot x & = & x \cdot e = x \end{eqnarray} $G$ (\ref{grp1}), (\ref{grp2}) $x\in G$ $x^{-1}$ $G$ x, y, z G G (x y) z = x (y z) (4.1) e x = x e = x (4.2) G (4.1), (4.2) x G x 1 G eqnarray array \\ & & eqnarray eqnarray* 4.2.5 \frac{ }{ } \[ \frac{1}{1-\frac{1}{x+1}} = 1+\frac{1}{x} \] 1 1 1 x+1 = 1 + 1 x \root{ } \root[n]{ } \[ 2\sqrt{2} = \sqrt[4]{64} 2 2 = 4 64 \] (\cdots)... (\ldots) \dots L A TEX 22
\[ 0,1,2,\cdots \] \[ 0,1,2,\ldots \] \[ 0,1,2,\dots \] 0, 1, 2, 0, 1, 2,... 0, 1, 2,... L A TEX ( ) 2 array L A TEX \, \: \; \quad \qquad ( ) \! ( ) \[ \int x\! dx = \int x dx = xdx = xdx = x dx = \int x\, dx = \int x\: dx = \int x\; dx \] \[ \int x\quad dx = \int x\qquad dx \] x dx = x x dx = dx x dx 23
α \alpha β \beta γ \gamma δ \delta ϵ \epsilon ζ \zeta η \eta θ \theta ι \iota κ \kappa λ \lambda µ \mu ν \nu ξ \xi π \pi ρ \rho σ \sigma τ \tau υ \upsilon ϕ \phi χ \chi ψ \psi ω \omega ε \varepsilon ϑ \vartheta ϖ \varpi ϱ \varrho ς \varsigma φ \varphi Γ \Gamma \Delta Θ \Theta Λ \Lambda Ξ \Xi Π \Pi Σ \Sigma Υ \Upsilon Φ \Phi Ψ \Psi Ω \Omega 4.1: ( ) l \ell R \Re I \Im \partial \infty \prime \emptyset \nabla \angle \triangle \forall \exists ℵ \aleph h \hbar ı \imath ȷ \jmath \wp \surd \top \bot \ \neg \flat \natural \sharp \ \backslash \clubsuit \diamondsuit \heartsuit \spadesuit 4.2: ± \pm \mp \times \ast \bullet \div. \star \circ \cdot \cdots.. \ddots. \vdots \cap \cup \oplus \ominus \otimes \odot \uplus \sqcap \sqcup \ \setminus \wr \diamond \oslash \bigcirc \dagger \ddagger \amalg 4.3: ( ) \leq \geq \ll \gg \vee \wedge \subset \supset \subseteq \supseteq \in \owns, \ni \sim \simeq \equiv \approx = \cong \neq. = \doteq \propto / \notin \parallel \smile \frown \prec \preceq \succ \succeq = \models \perp \mid \asymp \bowtie \vdash \dashv \sqsubseteq \sqsupseteq 4.4: ( ) \arccos \cos \csc \exp \ker \limsup \min \sinh \arcsin \cosh \deg \gcd \lg \ln \Pr \sup \arctan \cot \det \hom \lim \log \sec \tan \arg \coth \dim \iinf \liminf \max \sin \tanh 4.5: ( ) 24
\leftarrow \rightarrow, \to \leftrightarrow \uparrow \downarrow \updownarrow \nearrow \swarrow \searrow \nwarrow \leftharpoonup \rightharpoonup \leftharpoondown \rightharpoondown \rightleftharpoons \mapsto \Leftarrow \Rightarrow \Leftrightarrow \Uparrow \Downarrow \Updownarrow \longleftarrow \longrightarrow \longleftrightarrow = \Longleftarrow = \Longrightarrow \Longleftrightarrow \longmapsto \hookleftarrow \hookrightarrow 4.6: ( ) ò \grave{o} ó \acute{o} ō \bar{o} ô \hat{o} ö \ddot{o} õ \tilde{o} o \vec{o} o \overline{o} M \widehat{m} M \widetilde{m} 4.7: ( ) \sum \bigcap \bigodot \prod \bigcup \bigotimes \coprod \bigsqcup \bigoplus \int \bigvee \biguplus \oint \bigwedge 4.8: ( ) ( ( ) ) [ [ ] ] { \{ } \} \lfloor \rfloor \lceil \rceil \langle \rangle / / \ \backslash \ \uparrow \downarrow \Uparrow \Downarrow \updownarrow \Updownarrow. () 4.9: ( ) 25
5 L A TEX 5.1 tabular \begin{tabular}{ l c r } \hline & & \\ \hline\hline & H & 1.0079 \\ \hline & O & 15.9994 \\ \hline & Mn & 54.9380 \\ \hline \end{tabular} array (4.2.3 ) & \\ H 1.0079 O 15.9994 Mn 54.9380 & ( ) { l c r } l, c, r 1 l r c 3 tabular 1 { l c r } ( ) \hline \hline \hline\hline 1 array 26
5.1.1 center flushleft flushright \begin{center} \begin{tabular}{ c c } \hline a & b \\ a b \hline \end{tabular} \end{center} a b \begin{flushleft} \begin{tabular}{ c c } \hline a & b \\ \hline \end{tabular} \end{flushleft} \begin{flushright} \begin{tabular}{ c c } \hline a & b \\ \hline \end{tabular} \end{flushright} a b 5.1.2 \multicolumn[n]{ }{ } n l, r, c ( ) \cline{n-m} n m 27
\begin{tabular}{ cccc } \hline XX & XY & SPQR & XY \\ \cline{2-4} YY & \multicolumn{2}{ c }{IV} & \multicolumn{1}{c}{} \\ \cline{1-2}\cline{4-4} \multicolumn{2}{c }{} & \multicolumn{1}{r }{P} & YY \\ \cline{1-3} XX & YX & \multicolumn{1}{l}{q} \\ \hline \end{tabular} & YY XX XY SPQR XY YY IV P YY XX YX Q YY 5.2 L A TEX table figure table \ref{tab:place} \LaTeX{} 5.1 L A TEX \begin{table}[t] \begin{center} \begin{tabular}{c l} \hline & \\ \hline \texttt{t} & \\ \texttt{b} & \\ \texttt{p} & \\ \texttt{h} & \\ \hline \end{tabular} \end{center} \caption{ } \label{tab:place} \end{table} \begin{table} \end{table} 28
t b p h 5.1: table table \begin{table}[t] t 5.1 \begin{table}[htp] (1) (2) (3) L A TEX \caption{ } (3.1.3 ) figure table \caption{ } NN NN (NN ) table tabular table 29
6 L A TEX 6.1 L A TEX \small, \large { } {\tiny } {\footnotesize } {\small } {\normalsize } {\large } {\Large } {\LARGE } {\huge } {\Huge } \textbf{ } 1 \textrm{roman } \textmc{mincho } \textgt{gothic } \texttt{typewriter } \textsf{sans-serif } Roman Mincho Gothic Typewriter Sans-serif 1 \textbf{ } {\bf } 30
\textmd{standard } \textbf{bold } Standard Bold \textup{upright } \textit{italic } \textsl{slanted } \textsc{small caps } Upright Italic Slanted Small caps () ( ) \textnormal{standard } Standard ( ) \emph{emphasize } Emphasize () \mathbf $\mathit{x}=x$ x = x ( ) $\mathrm{x}=x$ x = x ( ) $\mathbf{x}=x$ x = x ( ) $\mathsf{x}=x$ x = x ( ) $\mathtt{x}=x$ x = x () $\mathcal{k}=k$ K = K ( ) \mathrm (4.2 ) \[ \mathbf{v_o} = (\mathrm{sinh}\:\theta, \mathrm{cosh}\:\theta) \] v o = (sinh θ, cosh θ) 31
6.2 L A TEX L A TEX (2.1 ) \usepackage{ } 6.2.1 graphicx L A TEX graphicx graphicx L A TEX L A TEX graphicx graphicx (2.1 ) \usepackage[dvipdfmx]{graphicx} includegraphics \includegraphics[width=3cm]{graph.eps} \includegraphics[height=1cm]{graph.eps} \includegraphics[scale=0.25]{graph.eps} includegraphics \includegraphics[ ]{ } ( ) width= height= scale= 1 32
EPS L A TEX EPS (Encapsulated PostScript,.eps) 2 EPS A EPS JPEG(.jpg) (JPEG PDF ) EPS \includegraphics[scale=0.2]{daimonji.jpg} platex -shell-escape ( abc.tex ) EPS L A TEX % platex -shell-escape abc.tex 3 L A TEX -shell-escape pxdvi (2.2.3 ) ( ) dvipdfmx PDF (2.2.4 ) Acrobat Reader PDF Acrobat Reader 6.2.2 graphicx ( ) enumerate enumerate supertab (tabular ) multirow (multicolumn (5.1.2 ) ) 2 EPS 3 -shell-escape 33
ascmac amsmath AMS(American Mathematical Society) color url URL http://www.kyoto-u.ac.jp/20xx/10/01/ myblog/blog20xx1001.html xypic L A TEX 6.3 L A TEX L A TEX \newcommand{\norm}[1]{\parallel #1 \parallel} ( (2.1 ) ) newcommand norm 1 norm \norm{ } newcommand #N(N ) N \norm{x} \parallel x \parallel $\norm{x + y} \leq \norm{x} + \norm{y}$ x + y x + y \newcommand{\ }[N]{ } N ( \newcommand{\ }{ } ) 2 pow \newcommand{\pow}[1]{2^#1} 2 x 1 $\pow{x_1}$ 2 x 1 \pow{x_1} 2^x_1 \newcommand{\pow}[1]{2^{#1}} 34
1 1 1 1, 1 + 1, 2 1 + 2,..., 1 + n,... 3 n+1 \[ 1, \frac{1}{1+\frac{1}{2}}, \frac{1}{1+\frac{2}{3}}, \dots, \frac{1}{1+\frac{n}{n+1}}, \dots \] \newcommand{\frfr}[2]{\frac{1}{1+\frac{#1}{#2}}} \[ 1, \frfr{1}{2}, \frfr{2}{3}, \dots, \frfr{n}{n+1}, \dots \] \textsl{ } 6.1 ( \textit{ } ) \newcommand{\binomen}[1]{\textsl{#1}} \binomen{ } ( : \binomen{pandalus eous}) ( : \binomen{panulirus japonicus}) ( : Pandalus eous) ( : Panulirus japonicus) 35
( ) \newcommand{\catname}{} \binomen{\catname{}} \newcommand{\catname}{felis silvestris catus} \binomen{\catname{}} Felis silvestris catus 6.4 \documentclass{jarticle} \begin{document} \input{10intro.tex} \input{20startup.tex} \input{30struct.tex} \input{40math.tex} \input{50table.tex} \end{document} 36
\input{ } L A TEX 10intro.tex 1 20startup.tex 2... () ( 1 ) 6.5 L A TEX thebibliography itemize BibTEX BibTEX pbibtex 37
7 L A TEX L A TEX ( 3.3 ) {} () \LaTeX L A TEX \LaTeX L A TEX LaTeX LaTeX {} \LaTeX{} L A TEX L A TEX (2.3 ) L A TEX L A TEX (2.3 ) 38
( ) [1] Donald E. Knuth. The TEXbook (Computers & Typesetting). Addison-Wesley Professional, 1984. [2] Leslie Lamport ( ). L A TEX2.. L A TEX L A TEX () [3]. L A TEX2.. L A TEX [4] M. Goosens, F. Mitelbach, A. Semarin ( ). The L A TEX.. L A TEX [5],. L A TEX, 1994. URL: http://mechanics. civil.tohoku.ac.jp/~bear/bear-collections/styleuse.lzh L A TEX ( ) L A TEX [6].. B-1311, 2000. (L A TEX 3 ) 39
A Libre Office L A TEX EPS Libre Office Libre Office (URL: http://ja.libreoffice.org/) Word() Excel( ) Libre Office 1 Libre Office Libre Office Draw Libre Office Draw (Linux ) Libre Office Draw Libre Office Draw ( ) 1. Libre Office Draw 2. ODF ( EPS (.odg) ) 3. ( L A TEX ) EPS 1. Libre Office Draw 2. ( A.1 ) 3. EPS - Encapsulated PostScript 4. EPS ( ) 5. OK EPS 1 Libre Office 40
A.1: Libre Office Draw EPS 41
B AUCTeX L A TEX UNIX(Linux) Emacs L A TEX AUCTeX 1 B.1 AUCTeX AUCTeX Emacs 1. (Linux ) Emacs 2. Emacs ~/.emacs.d/emacs23-vine-default.el B.1 ;;;;; AUCTeX ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 3. Emacs Emacs AUCTeX B.2 AUCTeX Emacs.tex AUCTeX Emacs.tex AUCTeX %%% Local Variables: %%% mode: japanese-latex %%% TeX-master: t %%% End: 1 YaTeX() 42
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; -*- coding: utf-8-unix -*- ;; FSF Emacs 23 vine-default ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Vine Linux ;; ;; (setq vine-default nil) ;; EMACS_IME IME ;; ;; (setq emacs-ime "atokx3");; anthy-el atokx3 ibus-el mozc tamago scim scim-bridge skk wnn7egg ;; ;; ~/.emacs.d/local *.el, *.elc ;; (add-to-list load-path "~/.emacs.d/local") ;; (add-to-list load-path "~/lib/emacs") ;; (add-to-list load-path "~/.emacs.d/auto-install") ;;;;; AUCTeX ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (setq vine-default-auctex t vine-default-preview-latex t) (setq TeX-default-mode japanese-latex-mode) (setq japanese-latex-command-default "platex") (setq TeX-view-program-list (("pxdvi" "pxdvi -nofork -watchfile 1 -editor \"emacsclient +%%l %%f\" %d -sourceposition %n:%b") ("acroread" "acroread %o") )) (setq TeX-view-program-selection ((output-dvi "pxdvi") (output-pdf "acroread"))) (add-hook LaTeX-mode-hook TeX-PDF-mode) (add-hook LaTeX-mode-hook LaTeX-math-mode) (add-hook LaTeX-mode-hook (function (lambda () (TeX-source-correlate-mode 1) (setq TeX-source-correlate-start-server t) (add-to-list TeX-command-list ("platex" "platex -src-specials %t" TeX-run-TeX nil (latex-mode) :help "Run e-platex")) (add-to-list TeX-command-list ("dviview" "pxdvi -nofork -watchfile 1 -editor \"emacsclient +%%l %%f\" %d -sourceposition %n:%b" TeX-run-discard-or-function t t :help "Run DVI Viewer")) ))) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Local Variables: ;; mode: emacs-lisp ;; End: B.1: Emacs 43
Emacs LaTeX (L A TEX ) Command ( ) L A TEX C-c C-s C-c C-e C-c ] C-u C-c C-e C-c C-j C-c C-m C-c C-f Key C-{ C-} \section, \subsection \begin{ }, \end{ } \begin{ } \end{ } itemize, enumerate, description \item \ {} \textbf{...} ( \mathbf{...}) Key C-c C-f C-i \textit{}, C-c C-f C-b \textbf{} Key C-c C-f? { } } TAB AUCTeX Enter(Return) C-c C-e document \documentclass{...} C-c C-c : platex View Print C-c C-k C-c C-l L A TEX C-c ` 2 (` backquote ) 2 2.3 LATEX 44
B.2.1 L A TEX AUCTeX TAB Emacs C-c C-v Ctrl Emacs 45