■ 情報システム工学実験第1のレポート作成について
最終課題に「テキスト整形ツール」(妻鳥担当)を選択した学生は,
レポートを LaTeX で書かなければならない.レポートを作成する前には,
一度はこのページを良く読んでおいて欲しい.
◆ レポートのサンプル #1
まず kut-report のサンプルを試してみよう.
- 自分のホームディレクトリ内に
LaTeX2e 用のディレクトリを作成し,
サンプルの .tex ファイルをコピーする.
ei123 1% mkdir ~/LaTeX
ei123 2% cp /usr/local/share/WSA/platex/* ~/LaTeX/
|
- カレントディレクトリを ~/LaTeX に変更し,
コピーされたファイルを確認する
ei123 3% cd ~/LaTeX/
ei123 4% ls
sample.ps sample.tex t1.eps t1.obj
ei123 5%
|
- LaTeX のソースファイル(ここでは,sample.tex)を2回コンパイルする.
ei123 5% platex sample.tex
This is pTeX, Version p2.1.5, based on TeX, Version 3.14159 (EUC) (Web2c 7.0)
(sample.tex
pLaTeX2e <1998/02/17>+0 (based on LaTeX2e <1997/12/01> patch level 1)
(/usr/local/share/texmf/tex/platex/base/kut-report.cls
Document Class: kut-report 1999/06/25 v1.1 KUT-IS Local pLaTeX class
(/usr/local/share/texmf/tex/latex2e/graphics/graphics.sty
(/usr/local/share/texmf/tex/latex2e/graphics/trig.sty)
(/usr/local/share/texmf/tex/latex2e/graphics/dvips.def))
(/usr/local/share/texmf/tex/platex/base/jsize11.clo))
No file sample.aux.
[0]
LaTeX Warning: Reference `table:cmd' on page 1 undefined on input line 18.
Overfull \hbox (33.12096pt too wide) in paragraph at lines 25--33
[]
LaTeX Warning: Citation `ieice' on page 1 undefined on input line 41.
(/usr/local/share/texmf/tex/latex/base/omscmr.fd)
LaTeX Warning: Citation `latex2e' on page 1 undefined on input line 66.
[1]
LaTeX Warning: Reference `conxml' on page 2 undefined on input line 111.
< t1.eps > < t1.eps > [2]
LaTeX Warning: Reference `conxml' on page 3 undefined on input line 128.
LaTeX Warning: Reference `conxml' on page 3 undefined on input line 131.
LaTeX Warning: Reference `table:xml' on page 3 undefined on input line 146.
LaTeX Warning: Citation `senki2' on page 3 undefined on input line 151.
LaTeX Warning: Reference `table:ref' on page 3 undefined on input line 153.
[3] (sample.aux)
LaTeX Warning: There were undefined references.
LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.)
(see the transcript file for additional information)
Output written on sample.dvi (4 pages, 10424 bytes).
Transcript written on sample.log.
ei123 6% platex sample.tex
This is pTeX, Version p2.1.5, based on TeX, Version 3.14159 (EUC) (Web2c 7.0)
(sample.tex
pLaTeX2e <1998/02/17>+0 (based on LaTeX2e <1997/12/01> patch level 1)
(/usr/local/share/texmf/tex/platex/base/kut-report.cls
Document Class: kut-report 1999/06/25 v1.1 KUT-IS Local pLaTeX class
(/usr/local/share/texmf/tex/latex2e/graphics/graphics.sty
(/usr/local/share/texmf/tex/latex2e/graphics/trig.sty)
(/usr/local/share/texmf/tex/latex2e/graphics/dvips.def))
(/usr/local/share/texmf/tex/platex/base/jsize11.clo)) (sample.aux) [0]
Overfull \hbox (33.12096pt too wide) in paragraph at lines 25--33
[]
(/usr/local/share/texmf/tex/latex/base/omscmr.fd) [1] < t1.eps > < t1.eps >
[2] [3] (sample.aux) )
(see the transcript file for additional information)
Output written on sample.dvi (4 pages, 10332 bytes).
Transcript written on sample.log.
ei123 7%
|
- カレントディレクトリのファイルを確認する.
ei123 7% ls
sample.aux sample.log sample.tex t1.obj
sample.dvi sample.ps t1.eps
ei123 8%
|
- dvi(DeVice Independent,デバイスに依存していないの意味)
ファイルをビューア(viewer)で見る.
この sample.tex は,
LaTeX の基本的なコマンド類がほとんど全て利用されている.
これを理解することができれば,
あなたは無敵の LaTeX 使いとして認知されると思うが(笑),
いかんせん情報量が多すぎるので,
以下に「情報システム工学実験第 1 」の最終課題提出時のレポート作成向けの
サンプルを用意しているので,一度こちらも見ておいて下さい.
◆ レポートのサンプル #2
ここ
にもう一つのサンプルを置いてある.
このサンプルは,
特にプログラムのソースコードをレポート内で示す必要がある場合のための一つの例である.
それと,
この
スタイルファイルも同時にダウンロードするのを忘れないように.
- ファイルがダウンロードされたかどうかを確認する.
カレントディレクトリに,expsample.tex と eclbkbox.sty
がダウンロードできているかどうかを確認する.
ei123 10% ls
eclbkbox.sty expsample.tex
ei123 11%
|
- ファイルがあることが確認できれば,2回コンパイルする.
ei123 11% platex expsample.tex
This is pTeX, Version p2.1.5, based on TeX, Version 3.14159 (EUC) (Web2c 7.0)
98/02/17>+0 (based on LaTeX2e <1997/12/01> patch level 1)
(/usr/local/share/texmf/tex/platex/base/kut-report.cls
Document Class: kut-report 1999/06/25 v1.1 KUT-IS Local pLaTeX class
(/usr/local/share/texmf/tex/latex2e/graphics/graphics.sty
(/usr/local/share/texmf/tex/latex2e/graphics/trig.sty)
(/usr/local/share/texmf/tex/latex2e/graphics/dvips.def))
(/usr/local/share/texmf/tex/platex/base/jsize11.clo)) (eclbkbox.sty)
No file expsample.aux.
[0] [1]
LaTeX Warning: Citation `otobe' on page 2 undefined on input line 121.
[2] (expsample.aux)
LaTeX Warning: There were undefined references.
LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.)
Output written on expsample.dvi (3 pages, 8892 bytes).
Transcript written on expsample.log.
ei123 12% platex expsample.tex
This is pTeX, Version p2.1.5, based on TeX, Version 3.14159 (EUC) (Web2c 7.0)
(expsample.tex
pLaTeX2e <1998/02/17>+0 (based on LaTeX2e <1997/12/01> patch level 1)
(/usr/local/share/texmf/tex/platex/base/kut-report.cls
Document Class: kut-report 1999/06/25 v1.1 KUT-IS Local pLaTeX class
(/usr/local/share/texmf/tex/latex2e/graphics/graphics.sty
(/usr/local/share/texmf/tex/latex2e/graphics/trig.sty)
(/usr/local/share/texmf/tex/latex2e/graphics/dvips.def))
(/usr/local/share/texmf/tex/platex/base/jsize11.clo)) (eclbkbox.sty)
(expsample.aux) [0] [1] [2] (expsample.aux) )
Output written on expsample.dvi (3 pages, 8844 bytes).
Transcript written on expsample.log.
ei123 13%
|
- コンパイルに成功したら,ビューアで確認する.
ei123 14% xdvi texsample.dvi
|
expsample.tex のソースとビューアで見た結果とを比較し,
どこでどのようなコマンドが利用され,
どのようにビューアで見えるようになっているか,確認してください.
あとは,いろんな LaTeX のソースを読み,
どんどん自分の使えるコマンドを増やしていければ,
あなたは無敵の LaTeX 使いへの道を歩むことができる.
本ページに関するお問い合わせ・ご意見は
mendori@info.kochi-tech.ac.jp
へどうぞ.
|