summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/computational-complexity/cclayout.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/computational-complexity/cclayout.sty')
-rw-r--r--Master/texmf-dist/tex/latex/computational-complexity/cclayout.sty40
1 files changed, 27 insertions, 13 deletions
diff --git a/Master/texmf-dist/tex/latex/computational-complexity/cclayout.sty b/Master/texmf-dist/tex/latex/computational-complexity/cclayout.sty
index d42ed53542e..1a935bc8cac 100644
--- a/Master/texmf-dist/tex/latex/computational-complexity/cclayout.sty
+++ b/Master/texmf-dist/tex/latex/computational-complexity/cclayout.sty
@@ -80,13 +80,21 @@
\newdimen\@abstrwidth
\newenvironment{@abstr}[1]{%
\vbox\bgroup
- \hsize\@abstrwidth
+ \hsize\textwidth
\@parboxrestore
+ \leftmargin.5\textwidth \advance\leftmargin-.5\@abstrwidth
+ \rightmargin\leftmargin
+ \@trivlist\@newlistfalse\global\@inlabeltrue
+ \advance\linewidth -\rightmargin
+ \advance\linewidth -\leftmargin
+ \advance\@totalleftmargin \leftmargin
+ \parshape \@ne \@totalleftmargin \linewidth
\small
\textbf{#1. }\ignorespaces}
{%
- \strut\par
- \vskip\z@
+ %\strut
+ \par
+ %\vskip\z@
\egroup
\ignorespacesafterend}
\newif\if@abstractoptional
@@ -120,7 +128,7 @@
\gdef\@cctxt{cc \textbf{#2} (#1)}%
\global\@autotitletrue
\AtBeginDocument{\addtocounter{section}{-1}\refstepcounter{section}}%
- \AtEndDocument{\label{!end!document!}}%
+ \AtEndDocument{\label{ccenddocument}}%
}
\newcommand{\noccpublish}[1]{%
\global\@ccpublishfalse
@@ -393,20 +401,24 @@
\cite@hook{}%
\if@cchead
\vbox to\z@{\vss
- \@ifundefined{r@!end!document!}{\@tempcnta\z@}{%
+ \@ifundefined{r@ccenddocument}{\@tempcnta\z@}{%
\@tempcnta\@ne
\advance\@tempcnta-\@ccfirst
- \edef\@tempa{%
- \expandafter\@secondoftwo\csname r@!end!document!\endcsname}%
+ \edef\@tempa{\csname r@ccenddocument\endcsname}%
+ \ifx\@secondoffive\@@@@undefined% hyperref launches this!
+ \edef\@tempa{\expandafter\@secondoftwo\@tempa{}{}{}{}{}}%
+ \else
+ \edef\@tempa{\expandafter\@secondoffive\@tempa{}{}{}{}{}}%
+ \fi%
\advance\@tempcnta\@tempa%
- }%
+ }%
\setcounter{page}{\@ccfirst}%
\hbox to\textwidth{%
\vbox to\z@{\vss
\baselineskip=12pt%
\halign{\ixpt##\hfil\cr
comput. complex.~\textbf{\@ccvolume}~(\@ccyear),
- \thepage\ -- \pageref{!end!document!}\cr
+ \thepage\ -- \pageref{ccenddocument}\cr
\issn/\expandafter\@gobbletwo\@ccyear%
%% use + instead --?
/\twodigits{\@ccnumber}\fourdigits{\thepage}--\the\@tempcnta\
@@ -485,17 +497,18 @@
\protect\begin{abstract} ... \protect\end{abstract}.}%
\fi
\else
- \@tempa\leavevmode\box\@abstract\par
+ \@tempa\leavevmode\unvbox\@abstract\par
\fi
}{%
\ifvoid\@abstract\else
\ClassWarningNoLine{cc}{Two abstracts,
using the one defined by \protect\Abstract}%
\fi
- \@tempa\leavevmode
+ \global\setbox\@abstract
\@abstr{\ccabstractname}
\the\@abstract@toks
\end@abstr
+ \@tempa\leavevmode\unvbox\@abstract\par
}
\ifvoid\@keywords
\if@keywordsoptional
@@ -506,7 +519,7 @@
\protect\begin{keywords} ... \protect\end{keywords}.}%
\fi
\else
- \@tempa\leavevmode\box\@keywords\par
+ \@tempa\leavevmode\unvbox\@keywords\par
\fi
\ifvoid\@subject
\if@subjectoptional
@@ -517,9 +530,10 @@
\protect\begin{subject} ... \protect\end{subject}.}%
\fi
\else
- \@tempa\leavevmode\box\@subject\par
+ \@tempa\leavevmode\unvbox\@subject\par
\fi
\@thanks
+ \ifx\@tempa\relax\vskip3ex\fi
\end{center}
\thispagestyle{empty}
\setcounter{footnote}{0}%