summaryrefslogtreecommitdiff
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
parent2527a7b311b3d39a759e168a763718e6e5c22eaa (diff)
coolthms (8apr12)
git-svn-id: svn://tug.org/texlive/trunk@25885 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/coolthms/coolthms.pdfbin91297 -> 92330 bytes
-rw-r--r--Master/texmf-dist/source/latex/coolthms/coolthms.dtx19
-rw-r--r--Master/texmf-dist/tex/latex/coolthms/coolthms.sty6
3 files changed, 15 insertions, 10 deletions
diff --git a/Master/texmf-dist/doc/latex/coolthms/coolthms.pdf b/Master/texmf-dist/doc/latex/coolthms/coolthms.pdf
index 5396fe3e718..59d5275e0e0 100644
--- a/Master/texmf-dist/doc/latex/coolthms/coolthms.pdf
+++ b/Master/texmf-dist/doc/latex/coolthms/coolthms.pdf
Binary files differ
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
diff --git a/Master/texmf-dist/tex/latex/coolthms/coolthms.sty b/Master/texmf-dist/tex/latex/coolthms/coolthms.sty
index 4ed2c6fd0a4..e3739d5615b 100644
--- a/Master/texmf-dist/tex/latex/coolthms/coolthms.sty
+++ b/Master/texmf-dist/tex/latex/coolthms/coolthms.sty
@@ -21,7 +21,7 @@
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
\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]
\let\Finv\@undefined
\let\Game\@undefined
\let\beth\@undefined
@@ -46,7 +46,7 @@
\DeclareStringOption[\proofname]{proofname}
\DeclareStringOption[$\Box$]{proofsymbol}
\DeclareStringOption[\it]{proofcaptionstyle}
-\DeclareStringOption[0em]{proofindent}
+\DeclareStringOption[\coolthms@indent]{proofindent}
\DeclareStringOption[:]{separator}
\DeclareStringOption[0em]{indent}
\DeclareStringOption[0pt]{minskip}
@@ -104,7 +104,7 @@
}%
\newcommandx*{\theoremmarkup}[6][1=\bf,2=\normalfont,3=\relax,%
4=\coolthms@indent,5=\coolthms@separator,6=arabic]{
- \theoremheaderfont{\hspace*{-#4}#1}
+ \theoremheaderfont{\hspace*{-\theorem@indent}#1}
\theorembodyfont{#2}
\theoremsymbol{#3}
\theoremindent#4\relax