TeX ファイル (source code)を見てみます。
\documentclass[a5paper,11pt]{article} \begin{document} \title{A Simple Document} \author{Me} \maketitle \begin{abstract} A brief document to illustrate how to use \LaTeX. \end{abstract} This is a simple \LaTeX\ document. Here is the first paragraph. Here is the second paragraph. As you can see it's a very short document\footnote{with a footnote}. This document was created on: \today. \begin{tabular}{lrr} & \multicolumn{2}{c}{\bfseries Expenditure}\\ & \multicolumn{1}{c}{Year1} & \multicolumn{1}{c}{Year2}\\ \bfseries Travel & 100,000 & 110,000\\ \bfseries Equipment & 50,000 & 60,000 \end{tabular} \end{document}
これは 問題の無い ものです。
正常に 表示されて
さてこれの ”{article}”を”{book}”に 変更したものを 試行してみましょう。
まず TeX ファイルです
$ ls -l | sed 1d -rw-r--r-- 1 fdopstm users 627 7月 7日 11:49 book-abstract.tex $ cat book-abstract.tex \documentclass[a5paper,11pt]{book} \begin{document} \title{A Simple Document} \author{Me} \maketitle \begin{abstract} A brief document to illustrate how to use \LaTeX. \end{abstract} This is a simple \LaTeX\ document. Here is the first paragraph. Here is the second paragraph. As you can see it's a very short document\footnote{with a footnote}. This document was created on: \today. \begin{tabular}{lrr} & \multicolumn{2}{c}{\bfseries Expenditure}\\ & \multicolumn{1}{c}{Year1} & \multicolumn{1}{c}{Year2}\\ \bfseries Travel & 100,000 & 110,000\\ \bfseries Equipment & 50,000 & 60,000 \end{tabular} \end{document}
では試行してみましょう。
$ platex book-abstract.tex This is pTeX, Version 3.14159-p3.1.3 (euc) (Web2C 7.4.5) (./book-abstract.tex pLaTeX2e <2001/09/04>+0 (based on LaTeX2e <2001/06/01> patch level 0) (/usr/share/texmf/tex/latex/base/book.cls Document Class: book 2001/04/21 v1.4e Standard LaTeX document class (/usr/share/texmf/tex/latex/base/bk11.clo)) No file book-abstract.aux. [1] ! LaTeX Error: Environment abstract undefined. See the LaTeX manual or LaTeX Companion for explanation. Type Hfor immediate help. ... l.10 \begin{abstract} ? x Output written on book-abstract.dvi (1 page, 316 bytes). Transcript written on book-abstract.log.
ということで 出来ません ということです。
$ ls -l |sed 1d -rw-r--r-- 1 fdopstm users 8 7月 7日 11:55 book-abstract.aux -rw-r--r-- 1 fdopstm users 316 7月 7日 11:55 book-abstract.dvi -rw-r--r-- 1 fdopstm users 2736 7月 7日 11:55 book-abstract.log -rw-r--r-- 1 fdopstm users 627 7月 7日 11:49 book-abstract.tex
でも ”dvi”ファイルは あるで ということで 見てみると
なんとか 作成しようと いう事です 健気ですな!”log”ファイルも たまに は 拝んでおきましょう。
This is pTeX, Version 3.14159-p3.1.3 (euc) (Web2C 7.4.5) (format=platex-euc 2004.3.27) 7 JUL 2008 11:54 **book-abstract.tex (./book-abstract.tex pLaTeX2e <2001/09/04>+0 (based on LaTeX2e <2001/06/01> patch level 0) (/usr/share/texmf/tex/latex/base/book.cls Document Class: book 2001/04/21 v1.4e Standard LaTeX document class (/usr/share/texmf/tex/latex/base/bk11.clo File: bk11.clo 2001/04/21 v1.4e Standard LaTeX file (size option) ) \c@part=\count81 \c@chapter=\count82 \c@section=\count83 \c@subsection=\count84 \c@subsubsection=\count85 \c@paragraph=\count86 \c@subparagraph=\count87 \c@figure=\count88 \c@table=\count89 \abovecaptionskip=\skip41 \belowcaptionskip=\skip42 \bibindent=\dimen118 ) No file book-abstract.aux. \openout1 = `book-abstract.aux'. LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 3. LaTeX Font Info: ... okay on input line 3. LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 3. LaTeX Font Info: ... okay on input line 3. LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 3. LaTeX Font Info: ... okay on input line 3. LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 3. LaTeX Font Info: ... okay on input line 3. LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 3. LaTeX Font Info: ... okay on input line 3. LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 3. LaTeX Font Info: ... okay on input line 3. LaTeX Font Info: Checking defaults for JY1/mc/m/n on input line 3. LaTeX Font Info: ... okay on input line 3. LaTeX Font Info: Checking defaults for JT1/mc/m/n on input line 3. LaTeX Font Info: ... okay on input line 3. LaTeX Font Info: External font `cmex10' loaded for size (Font) <12> on input line 8. LaTeX Font Info: External font `cmex10' loaded for size (Font) <8> on input line 8. LaTeX Font Info: External font `cmex10' loaded for size (Font) <6> on input line 8. [1 ] ! LaTeX Error: Environment abstract undefined. See the LaTeX manual or LaTeX Companion for explanation. Type Hfor immediate help. ... l.10 \begin{abstract} ? x Here is how much of TeX's memory you used: 244 strings out of 95599 2650 string characters out of 1192511 49285 words of memory out of 1000001 3422 multiletter control sequences out of 10000+50000 11782 words of font info for 46 fonts, out of 500000 for 1000 14 hyphenation exceptions out of 1000 22i,6n,19p,117b,221s stack positions out of 1500i,500n,5000p,200000b,5000s Output written on book-abstract.dvi (1 page, 316 bytes).
にゃんたろう 拝!
2008年 7月 7日 (月) 21:01:34 JST 作成