summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/coolthms
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-04-09 16:29:51 +0000
committerKarl Berry <karl@freefriends.org>2012-04-09 16:29:51 +0000
commit3b27b81d914d73f41fb53f7ea8fc4af31eacceb7 (patch)
tree66bfa423484d2f49bea7426c1391d28cc3fda7e3 /Master/texmf-dist/source/latex/coolthms
parent2527a7b311b3d39a759e168a763718e6e5c22eaa (diff)
coolthms (8apr12)
git-svn-id: svn://tug.org/texlive/trunk@25885 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/coolthms')
-rw-r--r--Master/texmf-dist/source/latex/coolthms/coolthms.dtx19
1 files changed, 12 insertions, 7 deletions
diff --git a/Master/texmf-dist/source/latex/coolthms/coolthms.dtx b/Master/texmf-dist/source/latex/coolthms/coolthms.dtx
index 185bc2262a4..552ec8e8284 100644
--- a/Master/texmf-dist/source/latex/coolthms/coolthms.dtx
+++ b/Master/texmf-dist/source/latex/coolthms/coolthms.dtx
@@ -38,7 +38,7 @@
%
% \iffalse package preamble
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{coolthms}[2012/03/29 v1.0 Theorem markup and advanced referencing]
+\ProvidesPackage{coolthms}[2012/04/01 v1.1 Theorem markup and advanced referencing]
% \fi
%
% \MakeShortVerb{\"}
@@ -141,7 +141,7 @@
% "proofname" & "\proofname" & The caption for proofs. \\
% "proofsymbol" & "$\Box$" & The symbol that will be printed at the end of proofs. \\
% "proofcaptionstyle" & "\it" & The font shape in which the caption for proofs (as given in "proofname") is printed. \\
-% "proofindent" & "0em" & The space proofs will be indented. \\
+% "proofindent" & "indent" & The space proofs will be indented. \\
% "minskip" & "0pt" & The minimal theorem pre- and post skip amount. \\
% "maxskip" & "6pt" & The maximal theorem pre- and post skip amount. \\
% \hline
@@ -149,8 +149,8 @@
%
% \medskip
%
-% Note that the "\proofname" macro is defined by "babel" or "polyglossia" and is a language-specific string containing the proof name. If none of these package is loaded, we define "\proofname" just as \enquote{Proof} and use that as a default value.
-%
+% Note that the "\proofname" macro is defined by "babel" or "polyglossia" and is a language-specific string containing the proof name. If none of these package is loaded, we define "\proofname" just as \enquote{Proof} and use that as a default value. If no value is supplied for "proofindent", proofs are indented the same amount as all other theorems (i.e. the default value is taken from "indent").
+%\changes{v1.1}{2012/04/01}{Included new default value of "proofindent" in option description list.}
%
% \section{Formatting Details}\label{format}
%
@@ -331,13 +331,13 @@
% \end{macrocode}
% \end{macro}
% \begin{macro}{\proofname}
-% We provide options for the proofname, the theorem separator, the proof end symbol and the amount to indent theorem content. The default value of "proofname" should be "\proofname", which is set by "babel" or "polyglossia". If the command is not defined, we simply define it as \enquote{Proof}.
+% We provide options for the proofname, the theorem separator, the proof end symbol and the amount to indent theorem content. The default value of "proofname" should be "\proofname", which is set by "babel" or "polyglossia". If the command is not defined, we simply define it as \enquote{Proof}. The value of "proofindent" is set to that of "indent" if none is specified.
% \begin{macrocode}
\@ifundefined{proofname}{\newcommand{\proofname}{Proof}}{}
\DeclareStringOption[\proofname]{proofname}
\DeclareStringOption[$\Box$]{proofsymbol}
\DeclareStringOption[\it]{proofcaptionstyle}
-\DeclareStringOption[0em]{proofindent}
+\DeclareStringOption[\coolthms@indent]{proofindent}
\DeclareStringOption[:]{separator}
\DeclareStringOption[0em]{indent}
\DeclareStringOption[0pt]{minskip}
@@ -346,6 +346,7 @@
proofname,proofsymbol,proofcaptionstyle,proofindent}
\ProcessKeyvalOptions*
% \end{macrocode}
+% \changes{v1.1}{2012/04/01}{Default value for "proofindent" is "indent".}
% \end{macro}
% Now we need to define various (an unnumbered, a numbered and a third one for proofs) "theoremstyle"s\footnote{Here we use the "ntheorem" package.} we will be using:
% \begin{macrocode}
@@ -438,7 +439,11 @@
% \begin{macrocode}
\newcommandx*{\theoremmarkup}[6][1=\bf,2=\normalfont,3=\relax,%
4=\coolthms@indent,5=\coolthms@separator,6=arabic]{
- \theoremheaderfont{\hspace*{-#4}#1}
+% \end{macrocode}
+% \changes{v1.1}{2012/04/01}{Fixed indentation bug.}
+% For some reason, "\hspace*{-#4}" lets the theorem start just slightly into the margin (i.e. somewhere in the conversion process about one character space gets lost). Using "\theorem@indent" solves the problem, although it remains unclear exactly why.
+% \begin{macrocode}
+ \theoremheaderfont{\hspace*{-\theorem@indent}#1}
\theorembodyfont{#2}
\theoremsymbol{#3}
\theoremindent#4\relax