TypeSetting/MakingOfProceedings/ClassFile

参考(クラスファイル等の制作)

主要クラスファイル等

jsclasses の \if@english オプション

babel.sty

/usr/local/teTeX/share/texmf-dist/tex/generic/babel/babel.sty

ファイルの読み込み

  1. 普通 bblopts.cfg は存在しないので,新たに作ることもできる.
  2. plain.def 中で \loadlocalcfg というコマンドが定義されており,<lang> が読み込まれたときに <lang>.cfg が存在すれば,これが読み込まれるようになっている.ただし言語によってはもともと <lang>.cfg が存在することもあるので注意が必要.
  3. \selectlanguage などは switch.def 中で定義されている.

脚注

\thefootnote

latex.ltxでは次のようになっている.

\def\thefootnote{\@arabic\c@footnote}

jsarticle.clsでは次のようになっている.

\def\thefootnote{\ifnum\c@footnote>\z@\leavevmode\lower.5ex\hbox{-}\@arabic\c@footnote\fi}

jsarticle.clsのようにしてしまうと,参照の際にも「注-1」のように記号が含まれてしまうので注意.また,同じ文書の中で言語ごとに脚注の形式を変更する場合も不便なのでlatex.ltxのようにしておくのが無難.参考: http://www.h4.dion.ne.jp/~latexcat/intro/intro14.html

\@makefnmark

article.clsでは次のようになっている.

\def\@makefnmark{\hbox{\@textsuperscript{\normalfont\@thefnmark}}}

jsarticle.clsでは次のようになっている.

\renewcommand\@makefnmark{\hbox{}\hbox{%
 \ifydir \@textsuperscript{\normalfont\@thefnmark}%
 \else\hbox{\yoko\@textsuperscript{\normalfont\@thefnmark}}\fi}\hbox{}}

\@makefntext

jsarticle.clsでは次のようになっている.

\newcommand\@makefntext[1]{%
 \advance\leftskip 3zw
 \parindent 1zw
 \noindent
 \llap{\@makefnmark\hskip0.3zw}#1}

\@thefnmark

latex.ltxでは次のようになっている.

\def\footnotemark{%
  \@ifnextchar[\@xfootnotemark
    {\stepcounter{footnote}%
     \protected@xdef\@thefnmark{\thefootnote}%
     \@footnotemark}}

<lang>.ldf

french.ldf

\AddThinSpaceBeforeFootnotes

本文中の合印の前に五分アキを挿入する.\begin{document} の「前」で使用する.したがって文書全体に作用する.これは \AtBeginDocument を用いることで実現されている.

\FrenchFootnotes

脚注中の合印を上付数字ではなく,通常の数字にする.通常の合印に戻すには \StandardFootnotes を用いる.

\narrowbaselines, \widebaselines

たとえば\narrowbaselinesが適用された欧文中で,和文の注を付ける場合,和文の注も\narrowbaselinesが適用された状態になる.表と同様に\footnotemarkと\footnotetextを使えば解決できるが,もっと簡単な方法がありそうだ.

クラスファイル制作の参考

次のものが特に参考になる.

  1. jsclasses.pdf
  2. babel.sty
  3. frenchb.ldf
  4. latex.ltx
  5. article.cls

トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2016-04-17 (日) 00:13:51