summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tugboat/ltugboat.cls
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-08-03 22:38:21 +0000
committerKarl Berry <karl@freefriends.org>2013-08-03 22:38:21 +0000
commit6aef97aa7db7c9162747c73514e7e01d6d59edb8 (patch)
treebad1d1a6b942778f2880d217a76053d1c6f3858e /Master/texmf-dist/tex/latex/tugboat/ltugboat.cls
parent030513f4b74c6610bf6d20311a8beb66af15ceca (diff)
tugboat (3aug13)
git-svn-id: svn://tug.org/texlive/trunk@31339 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/tugboat/ltugboat.cls')
-rw-r--r--Master/texmf-dist/tex/latex/tugboat/ltugboat.cls59
1 files changed, 36 insertions, 23 deletions
diff --git a/Master/texmf-dist/tex/latex/tugboat/ltugboat.cls b/Master/texmf-dist/tex/latex/tugboat/ltugboat.cls
index 5356761227a..f27f24cfc52 100644
--- a/Master/texmf-dist/tex/latex/tugboat/ltugboat.cls
+++ b/Master/texmf-dist/tex/latex/tugboat/ltugboat.cls
@@ -32,7 +32,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[1994/12/01]
\ProvidesClass {ltugboat}
- [2013/01/31 v2.12
+ [2013/08/02 v2.13
TUGboat journal class%
]
\csname tugstyloaded@\endcsname
@@ -69,8 +69,6 @@
\DeclareOption{12pt}{\csname ds@11pt\endcsname}
\DeclareOption{oneside}{\TBWarning{Option \CurrentOption\space ignored}}
\DeclareOption{twoside}{\ds@oneside}
-\DeclareOption{onecolumn}{\ds@oneside}
-\DeclareOption{twocolumn}{\ds@oneside}
\DeclareOption{tugproc}{%
\TBWarning{Option \CurrentOption\space ignored: use class ltugproc
instead of \@tugclass}%
@@ -84,6 +82,8 @@
\DeclareOption{runningoff}{\AtEndOfClass{\@tubrunningoff}}
\DeclareOption{runningminimal}{\AtEndOfClass{\@tubrunningminimal}}
\DeclareOption{runningfull}{\AtEndOfClass{\@tubrunningfull}}
+\newif\if@tubtwocolumn \@tubtwocolumntrue
+\DeclareOption{onecolumn}{\@tubtwocolumnfalse}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
\ExecuteOptions{draft,extralabel,numbersec,rawcite,runningminimal}
\ProcessOptions
@@ -179,11 +179,11 @@
\def\BSD{\acro{BSD}}
\def\CandT{\textsl{Computers \& Typesetting}}
\def\CD{\acro{CD}}
-\def\CJK{\acro{CJK}}
\def\ConTeXt{C\kern-.0333emon\-\kern-.0667em\TeX\kern-.0333emt}
\def\CMkIV{\ConTeXt\ \MkIV}
\def\Cplusplus{C\plusplus}
\def\plusplus{\raisebox{.7ex}{$_{++}$}}
+\def\CPU{\acro{CPU}}
\def\CSS{\acro{CSS}}
\def\CSV{\acro{CSV}}
\def\CTAN{\acro{CTAN}}
@@ -322,11 +322,13 @@
}%
}
\def\tubhideheight#1{\setbox0=\hbox{#1}\ht0=0pt \dp0=0pt \box0 }
-\DeclareRobustCommand\Xe[1]{\leavevmode
+\def\XekernbeforeE{-.125em}
+\def\XekernafterE{-.1667em}
+\DeclareRobustCommand\Xe{\leavevmode
\tubhideheight{\hbox{X%
\setbox0=\hbox{\TeX}\setbox1=\hbox{E}%
- \lower\dp0\hbox{\raise\dp1\hbox{\kern-.125em\tubreflect{E}}}%
- \kern-.1667em #1}}}
+ \lower\dp0\hbox{\raise\dp1\hbox{\kern\XekernbeforeE\tubreflect{E}}}%
+ \kern\XekernafterE}}}
\def\XeTeX{\Xe\TeX}
\def\XeLaTeX{\Xe{\kern.11em \LaTeX}}
\def\XHTML{\acro{XHTML}}
@@ -636,8 +638,8 @@
\topsep=3\p@\@plus\p@\@minus\p@
\parsep=3\p@\@plus\p@\@minus\p@
\itemsep=\parsep
-\twocolumn
-\newdimen\pagewd \pagewd=39pc
+\if@tubtwocolumn \twocolumn \else \onecolumn \textwidth=34pc \fi
+\newdimen\pagewd \pagewd=\textwidth
\newdimen\trimwd \trimwd=\pagewd
\newdimen\trimlgt \trimlgt=11in
\newdimen\headmargin \headmargin=3.5pc
@@ -971,20 +973,29 @@
\newenvironment{dedication}%
{\raggedright\noindent\itshape\ignorespaces}%
{\endgraf\medskip}
+\def\@tubonecolumnabstractstart{%
+ \list{}{\listparindent\normalparindent
+ \itemindent\z@ \leftmargin\@tubfullpageindent
+ \rightmargin\leftmargin \parsep \z@}\item[]\ignorespaces
+}
+\def\@tubonecolumnabstractfinish{%
+ \endlist
+}
\renewenvironment{abstract}%
- {%
- \begin{SafeSection}%
- \section*{Abstract}%
+ {\begin{SafeSection}%
+ \section*{%
+ \if@tubtwocolumn\else \hspace*{\@tubfullpageindent}\fi
+ Abstract}%
+ \if@tubtwocolumn\else \@tubonecolumnabstractstart \fi
}%
- {\end{SafeSection}}
+ {\if@tubtwocolumn\else \@tubonecolumnabstractfinish \fi
+ \end{SafeSection}}
\newenvironment{longabstract}%
- {%
- \begin{SafeSection}%
+ {\begin{SafeSection}%
\section*{Abstract}%
\bgroup\small
}%
- {%
- \endgraf\egroup
+ {\endgraf\egroup
\end{SafeSection}%
\vspace{.25\baselineskip}
\begin{center}
@@ -1131,16 +1142,18 @@
\let\@currentlabelname\@empty
\DeclareRobustCommand\nameref[1]{\expandafter\@setref
\csname r@nr@#1\endcsname\@secondoftwo{#1}}
-\newdimen\tubfullpageindent \tubfullpageindent=4.875pc
+\newdimen\@tubfullpageindent
+\@tubfullpageindent = \if@tubtwocolumn 4.875pc \else 3.875pc \fi
+\def\tubcaptionfonts{\small}%
\long\def\@makecaption#1#2{%
\vskip\abovecaptionskip
- \sbox\@tempboxa{\small \tubmakecaptionbox{#1}{#2}}% try in an hbox
+ \sbox\@tempboxa{\tubcaptionfonts \tubmakecaptionbox{#1}{#2}}% try in an hbox
\ifdim \wd\@tempboxa > \hsize
{% caption doesn't fit on one line; set as a paragraph.
- \small \raggedright \hyphenpenalty=\@M \parindent=1em
+ \tubcaptionfonts \raggedright \hyphenpenalty=\@M \parindent=1em
% indent full-width captions {figure*}, but not single-column {figure}.
\ifdim\hsize = \textwidth
- \leftskip=\tubfullpageindent \rightskip=\leftskip
+ \leftskip=\@tubfullpageindent \rightskip=\leftskip
\advance\rightskip by 0pt plus2em % increase acceptable raggedness
\fi
\noindent \tubmakecaptionbox{#1}{#2}\par}%
@@ -1151,8 +1164,8 @@
\fi
\vskip\belowcaptionskip}
\def\tubmakecaptionbox#1#2{#1: #2}% allow overriding for a paper
-\def\fnum@figure{{\small \bf \figurename\nobreakspace\thefigure}}
-\def\fnum@table{{\small \bf \tablename\nobreakspace\thetable}}
+\def\fnum@figure{{\tubcaptionfonts \bf \figurename\nobreakspace\thefigure}}
+\def\fnum@table{{\tubcaptionfonts \bf \tablename\nobreakspace\thetable}}
\setlength\abovecaptionskip{6pt plus1pt minus1pt}
\renewcommand\normalsize{%
\@setfontsize\normalsize\@xpt\@xiipt