array.sty

名前: tr
日時: 2007-04-13 01:09:05
IPアドレス: 220.108.64.*

以下のような自作クラスファイルを使っていましたが、 array.sty と併用しようとすると、 ! Package array Error: Illegal pream-token (\@authors): `c' used. というエラーが出て使えなくなってしまいました。 仕方ないので、とりあえず、クラスファイルの \begin{tabular}{\@authors} を \begin{tabular}{ccc} のように書き換えて 対処していますが、これだとクラスファイルを著者数毎に、 いくつも用意しなければならなくなります。 何か良い回避策はないでしょうか? ----------------ここからarraytestcls.cls--------------------- \NeedsTeXFormat{pLaTeX2e} \ProvidesClass{arraytestcls} \LoadClass[twocolumn]{jsarticle} \renewcommand\maketitle{% \twocolumn[\@maketitle] } \def\@maketitle{% \begin{tabular}{\@authors} \@jauthors \\ \@eauthors \end{tabular} \gdef\@jauthors{} \gdef\@eauthors{} \gdef\@authors{} } \long\def\jauthors#1{\long\gdef\@jauthors{#1}} \long\def\eauthors#1{\long\gdef\@eauthors{#1}} \long\def\authors#1{\long\gdef\@authors{#1}} -----------------ここまで-------------------------------- ----------------ここからarraytest.tex--------------------- \documentclass{arraytestcls} \usepackage{array} \begin{document} \jauthors{著者1 & 著者2 & 著者3} \eauthors{author 1 & author 2 & author 3} \authors{ccc} \maketitle \end{document} -----------------ここまで--------------------------------

この書き込みへの返事:

お名前
題名 
メッセージ(タグは <a href="...">...</a> だけ使えます。適宜改行を入れてください)