summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/ijmart
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2007-11-22 18:56:29 +0000
committerKarl Berry <karl@freefriends.org>2007-11-22 18:56:29 +0000
commita56e4d6cbedf78ba65218189765039dc3750d13a (patch)
treede9080b41bed5d2a8096cdfe12ed8928a9d3ad0d /Master/texmf-dist/source/latex/ijmart
parent469d7f749c38c16df8c61d8a7306991678297ade (diff)
ijmart update (20nov07)
git-svn-id: svn://tug.org/texlive/trunk@5554 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/ijmart')
-rw-r--r--Master/texmf-dist/source/latex/ijmart/ijmart.dtx50
1 files changed, 43 insertions, 7 deletions
diff --git a/Master/texmf-dist/source/latex/ijmart/ijmart.dtx b/Master/texmf-dist/source/latex/ijmart/ijmart.dtx
index 52de2fe7d64..7dbb350284f 100644
--- a/Master/texmf-dist/source/latex/ijmart/ijmart.dtx
+++ b/Master/texmf-dist/source/latex/ijmart/ijmart.dtx
@@ -1,5 +1,5 @@
% \iffalse
-% $Id: ijmart.dtx,v 1.40 2007-10-14 19:03:38 boris Exp $
+% $Id: ijmart.dtx,v 1.42 2007-11-17 01:03:08 boris Exp $
%
% Copyright 2007, The Hebrew University Magnes Press
% This work may be distributed and/or modified under the
@@ -20,7 +20,7 @@
% derived file ijmart.cls
%
% \fi
-% \CheckSum{808}
+% \CheckSum{836}
%
%
%% \CharacterTable
@@ -362,6 +362,8 @@
% information should be specified before this command.
%
% \DescribeMacro{\tableofcontents}
+% \changes{v1.2}{2007/11/14}{Added documentation for table of contents
+% formatting}
% The authors are encouraged to include |\tableofcontents| for long
% papers. By default only the sections are included in the table. If
% the authors wish to have a more detailed table of contents, they
@@ -372,7 +374,9 @@
% \setcounter{tocdepth}{3} % Sections, subsections and subsubsections
% ...
% \end{verbatim}
-%
+% If |tocdepth| is greater than the default value of 1, the formatting
+% of the table of contents changes: the section entries then are
+% typeset bold.
%
%
%\subsubsection{Commands for Editors}
@@ -577,7 +581,7 @@
\ProvidesFile{ijmart.dtx}
%</gobble>
%<class>\ProvidesClass{ijmart}
-[2007/10/14 v1.1a Typesetting articles for The Israel Journal of Mathematics]
+[2007/11/15 v1.2 Typesetting articles for The Israel Journal of Mathematics]
% \end{macrocode}
%
% \begin{macro}{\@classname}
@@ -1196,7 +1200,6 @@
%
%\subsection{Table of Contents}
%\label{sec:toc}
-%
% By default we include in the table of contents only sections:
% \begin{macrocode}
\setcounter{tocdepth}{1}
@@ -1210,6 +1213,7 @@
% \end{macro}
%
% \begin{macro}{\@starttoc}
+% \changes{v1.2}{2007/11/15}{Redefined}
% We also rewrite |\@starttoc| to make the type smaller. The
% comments are again from \progname{amsart}:
% \begin{macrocode}
@@ -1244,8 +1248,15 @@
% \begin{macrocode}
\ifx\contentsname#2%
\else \addcontentsline{toc}{section}{#2}\fi
- \makeatletter
- {\small\@input{\jobname.#1}}%
+% \end{macrocode}
+% We want the table of contents to have the same width as the abstract
+% \begin{macrocode}
+ \list{}{\labelwidth\z@
+ \leftmargin2.4pc \rightmargin\leftmargin
+ \listparindent\z@ \itemindent\z@
+ \parsep\z@ \@plus\p@}%
+ \item[]%
+ \small\@input{\jobname.#1}\endlist%
\if@filesw
\@xp\newwrite\csname tf@#1\endcsname
\immediate\@xp\openout\csname tf@#1\endcsname \jobname.#1\relax
@@ -1292,6 +1303,31 @@
% \end{macro}
%
%
+% \begin{macro}{\l@section}
+% \changes{v1.2}{2007/11/15}{Redefined to check whether subsections
+% are present}
+% The actual formatting of section entries depend whether
+% subsections are included in toc. If yes, the sections are bold.
+% \begin{macrocode}
+\def\l@section{%
+ \@tocline{1}{0pt}{1pc}{}{%
+ \ifnum\c@tocdepth>1\bfseries\fi}}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\l@subsection}
+% \begin{macro}{\l@subsubsection}
+% \changes{v1.2}{2007/11/14}{Added indentation}
+% These entries are idented.
+% \begin{macrocode}
+\def\l@subsection{\@tocline{2}{0pt}{2.8pc}{5pc}{}}
+\def\l@subsubsection{\@tocline{3}{0pt}{4.6pc}{7pc}{}}
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+%
+%
+%
%\subsection{Captions}
%\label{sec:captions}
%