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.sty30
1 files changed, 25 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/computational-complexity/cclayout.sty b/Master/texmf-dist/tex/latex/computational-complexity/cclayout.sty
index f092c8402ee..d9d7abe00d3 100644
--- a/Master/texmf-dist/tex/latex/computational-complexity/cclayout.sty
+++ b/Master/texmf-dist/tex/latex/computational-complexity/cclayout.sty
@@ -31,11 +31,6 @@
%% Right bracket \] Circumflex \^ Underscore \_
%% Grave accent \` Left brace \{ Vertical bar \|
%% Right brace \} Tilde \~}
-\if@ccpublish
-\expandafter\xdef\csname ver@fullpage.sty\endcsname{9999}%
-\typeout{The package fullpage is forbidden when publishing in the
- journal computation complexity. It will be ignored.}
-\fi
\let\@contact\relax
\newcommand{\contact}[1]{\gdef\@contact{#1}}
\AtBeginDocument{\if@ccpublish
@@ -321,6 +316,31 @@
\else
\@abstrwidth0.85\textwidth
\fi
+%%% \if@ccpublish
+%%% \expandafter\xdef\csname ver@fullpage.sty\endcsname{9999}%
+%%% \expandafter\xdef\csname ver@a4wide.sty\endcsname{9999}%
+%%% \ClassWarning{cc}{The packages fullpage, a4wide are ignored
+%%% when publishing in the journal \cc.}{}%
+%%% \fi
+\AtBeginDocument{%
+ \if@ccpublish\@tempswafalse
+ \ifdim\topmargin=0mm\relax\else\@tempswatrue\fi
+ \ifdim\textwidth=141mm\relax\else\@tempswatrue\fi
+ \ifdim\textheight=200mm\relax\else\@tempswatrue\fi
+ \if@tempswa
+ \ClassError{cc}{FATAL ERROR! For publishing in cc the page and text
+ dimension must not be manipulated. Remove any packages that
+ modify the text or page dimensions. In particular: remove the
+ packages^^J
+ fullpage.sty,^^J
+ a4wide.sty,^^J
+ geometry.sty,^^J
+ vmargin.sty,^^J
+ typearea.sty}{}%
+ \endinput
+ \fi
+ \fi
+}
\typeout{Now adjusting margins.}
\ifcase\@marginmode
\AtEndOfClass{%