summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/computational-complexity/cc.cls
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/computational-complexity/cc.cls')
-rw-r--r--Master/texmf-dist/tex/latex/computational-complexity/cc.cls18
1 files changed, 15 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/computational-complexity/cc.cls b/Master/texmf-dist/tex/latex/computational-complexity/cc.cls
index ebbd93b927c..9bb0e2a613c 100644
--- a/Master/texmf-dist/tex/latex/computational-complexity/cc.cls
+++ b/Master/texmf-dist/tex/latex/computational-complexity/cc.cls
@@ -39,7 +39,7 @@
\newif\ifclass
\ifx\@currext\@clsextension\classtrue\else\classfalse\fi
\ifclass\expandafter\ProvidesClass\else\expandafter\ProvidesPackage\fi
-{\ifclass cc\else cc-cls\fi}[2005/08/27 v2.04
+{\ifclass cc\else cc-cls\fi}[2006/10/13 v2.06
computational complexity
\ifclass document class\else package\fi]
\RequirePackage{ccaux}
@@ -268,12 +268,24 @@
{-2.9ex\@plus-.5ex\@minus-.2ex}%
{1.5ex\@plus.5ex\@minus.2ex}%
{\normalfont\large\bfseries\centering}}
+\def\opt@fullstop#1{#1{\tracingall\has@fullstop#1.\@@@
+\if@tempswa\else
+\has@exlamationmark#1!\@@@
+\if@tempswa\else
+\has@questionmark#1?\@@@
+\if@tempswa\else
+.\fi
+\fi
+\fi}}
+\def\has@fullstop#1.#2\@@@{\@ifempty{#2}{\@tempswafalse}{\@tempswatrue}}
+\def\has@exlamationmark#1!#2\@@@{\@ifempty{#2}{\@tempswafalse}{\@tempswatrue}}
+\def\has@questionmark#1?#2\@@@{\@ifempty{#2}{\@tempswafalse}{\@tempswatrue}}
\def\dot@sect#1#2#3#4#5#6[#7]#8{%
\let\@sect\ccorg@sect\let\@ssect\ccorg@ssect
- \@sect{#1}{#2}{#3}{#4}{#5}{#6}[#7]{#8.}}
+ \@sect{#1}{#2}{#3}{#4}{#5}{#6}[#7]{\opt@fullstop{#8}}}
\def\dot@ssect#1#2#3#4#5{%
\let\@sect\ccorg@sect\let\@ssect\ccorg@ssect
- \@ssect{#1}{#2}{#3}{#4}{#5.}}
+ \@ssect{#1}{#2}{#3}{#4}{\opt@fullstop{#5}}}
\def\add@dot{%
\let\ccorg@sect\@sect\let\ccorg@ssect\@ssect
\let\@sect\dot@sect\let\@ssect\dot@ssect}