pTeX のインストール(Mac OS X)
- ここ から pTeX package 2005年度版 をダウンロードしてインストール.
pTeX の使い方
platex test.tex
dvips test.dvi
dvipdfmx test.dvi
コマンド
¥documentclass[a4j,10pt,twocolumn]{jarticle}
- 10pt は文字の大きさ, twocolumn は2段組.
¥topmargin -10mm
¥oddsidemargin -5.4mm
¥evensidemargin -5.4mm
¥textheight 240mm
¥textwidth 170mm
¥headheight 5mm
¥title{タイトル}
¥author{名前}
¥date{日付}
- maketitle の準備. ¥maketitle は ¥begin{document} と ¥end{document} の間で.
¥setcounter{page}{1}
¥setcounter{section}{1}
¥setcounter{subsection}{1}
¥setcounter{subsubsection}{1}
¥setcounter{equation}{1}
- ページ数,セクション,数式番号のカウンタをセット.
- 数字が1つ前後することがあるので,確認すること.
¥makeatletter
¥@addtoreset{equation}{section}
¥def¥theequation{¥thesection.¥arabic{equation}}
¥makeatother
¥begin{document}
¥end{document}
¥section{セクション名}
¥subsection{サブセクション名}
¥begin{displaymath}
¥end{displaymath}
¥begin{equation}
¥end{equation}
最終更新:2008年05月13日 12:39