Re: ドキュメントクラス

名前: トニイ@FTEX
日時: 2003-03-02 13:43:19
IPアドレス: 219.99.203.*

>>17205 % pLaTeX2e \documentclass[a4j]{jsarticle} \makeatletter \newcommand{\presectionname}{第} \newcommand{\postsectionname}{節} % \renewcommand{\thesection}{\presectionname\@arabic\c@section\postsectionname} \renewcommand{\thesubsection}{\@arabic\c@section.\@arabic\c@subsection} % \renewcommand*{\l@section}[2]{% \ifnum \c@tocdepth >\z@ \addpenalty{\@secpenalty}% \addvspace{1.0em \@plus\p@}% \begingroup \parindent\z@ \rightskip\@tocrmarg \parfillskip-\rightskip \leavevmode\headfont \setlength\@lnumwidth{3.5em}% \advance\leftskip\@lnumwidth \hskip-\leftskip #1\nobreak\hfil\nobreak\hbox to\@pnumwidth{\hss#2}\par \endgroup \fi} % \makeatother \begin{document} \tableofcontents \section{はじめに}\label{sec:1st} \subsection{それから}\label{ssec:next} 奥村先生がお薦めではないようなので,\verb+\postsectionname+は, ``節''としていますが,再定義すれば``章''に変更できます。 \verb+\thesection+を再定義する安易な方法を使っていますので, 例えば\verb+\ref{sec:1st}+のように節番号を参照すると``\ref{sec:1st}''と なってしまいます。この不具合を了解の上,お使いください。 なお\verb+\subsection+の参照は``\ref{ssec:next}''となります。 \begin{equation} a + b = c \end{equation} \begin{figure}[!htbp] \caption{なんとか} \end{figure} \begin{table}[!htbp] \caption{かんとか} \end{table} \end{document}

この書き込みへの返事:

お名前
題名 
メッセージ(タグは <a href="...">...</a> だけ使えます)