From 27a5239e60e85720bfd01c348396544853abc301 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 16 Jul 2007 16:05:29 +0000 Subject: dlfltxb update (10jul07) git-svn-id: svn://tug.org/texlive/trunk@4607 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/dlfltxb/README | 14 +++- .../doc/latex/dlfltxb/dlfltxbcodetips.pdf | Bin 206243 -> 213145 bytes .../doc/latex/dlfltxb/dlfltxbcodetips.tex | 89 ++++++++++++--------- .../doc/latex/dlfltxb/dlfltxbmarkup-showkeys.pdf | Bin 29307 -> 29307 bytes .../texmf-dist/doc/latex/dlfltxb/dlfltxbmarkup.pdf | Bin 187892 -> 193299 bytes .../texmf-dist/doc/latex/dlfltxb/dlfltxbmisc.pdf | Bin 157568 -> 160842 bytes 6 files changed, 61 insertions(+), 42 deletions(-) (limited to 'Master/texmf-dist/doc/latex') diff --git a/Master/texmf-dist/doc/latex/dlfltxb/README b/Master/texmf-dist/doc/latex/dlfltxb/README index a2cf999deeb..05ca81ecd61 100644 --- a/Master/texmf-dist/doc/latex/dlfltxb/README +++ b/Master/texmf-dist/doc/latex/dlfltxb/README @@ -22,11 +22,19 @@ HISTORY * 20070601 added new versions of dlfltxbcodetips and dlfltxbmarkup-sample.cfg + * 20070604 made dlfltxbcodetips more compatible with the mathdesign + package by adding the 'noamssymb' option + + * 20070710 bugfix in dlfltxbcodetips (the counter aliasing in + \NewShadedTheorem should now work as intended) + + * 20070711 bugfix in dlfltxbcodetips (coding error in \ArrowBetweenLines) + Current file contents for the dlfltxb bundle: ============================================= -dlfltxbcodetips (v0.2): +dlfltxbcodetips (v0.26): ----------------------- * dlfltxbcodetips.sty @@ -55,7 +63,9 @@ Changes all due to Enrico Gregorio. Also changed the implementation of \NewShadedTheorem such that the environment giving the bagground is now configurable. - + v0.23 Made the autoloading of amssymb optional. + v0.25 Bugfix. + v0.26 Bugfix. dlfltxbmarkup (v0.6): --------------------- diff --git a/Master/texmf-dist/doc/latex/dlfltxb/dlfltxbcodetips.pdf b/Master/texmf-dist/doc/latex/dlfltxb/dlfltxbcodetips.pdf index 47939048f69..bd6bfcb3e8b 100644 Binary files a/Master/texmf-dist/doc/latex/dlfltxb/dlfltxbcodetips.pdf and b/Master/texmf-dist/doc/latex/dlfltxb/dlfltxbcodetips.pdf differ diff --git a/Master/texmf-dist/doc/latex/dlfltxb/dlfltxbcodetips.tex b/Master/texmf-dist/doc/latex/dlfltxb/dlfltxbcodetips.tex index 2fda5f54e4d..bc06cfe65fd 100644 --- a/Master/texmf-dist/doc/latex/dlfltxb/dlfltxbcodetips.tex +++ b/Master/texmf-dist/doc/latex/dlfltxb/dlfltxbcodetips.tex @@ -43,7 +43,7 @@ \usepackage{microtype} \usepackage{amsmath,amssymb} -\usepackage[amsmath,thmmarks]{ntheorem} +\usepackage[amsmath,thmmarks,framed]{ntheorem} \usepackage[round]{natbib} \usepackage{dlfltxbcodetips} @@ -66,8 +66,13 @@ \definecolor{shadecolor}{gray}{0.8} \theorembodyfont{\normalfont} \theoremseparator{.} +\def\theoremframecommand{\colorbox{shadecolor}} + +\theoremstyle{nonumberplain} + \NewShadedTheorem{caveat}{Caveat} +\NewShadedTheorem{remark}{Remark} % until dlfltxbsd is released we will have to use the following % construction @@ -180,52 +185,60 @@ respectively.\addtocounter{footnote}{-1}\footnotemark $ A \nuparrow B$ \qquad $ B \ndownarrow C$ \end{sourcedisplay} -The macros require the use of the \markup[nomk,sty]{graphicx} package, -which is not auto loaded. + +\begin{remark} + The \markup[nomk,sty]{mathdesign} package is incompatible with + \markup[nomk,sty]{amssymb}, but it does define the symbols we need + from it to define \cs{nuparrow} and \cs{ndownarrow}. Use + \begin{syntax} + \verb|\usepackage[noamssymb]{dlfltxbcodetips}| + \end{syntax} + to disable the autoloading of \markup[nomk,sty]{amssymb}, and + remember to load \markup[nomk,sty]{dlfltxbcodetips} \emph{after} + \markup[nomk,sty]{mathdesign}. +\end{remark} + \chapter{Fun with theorems} \label{cha:fun-with-theorems} -\section{Shaded theorems with the ntheorem package} +\section{Shaded or framed theorems with the ntheorem package} \label{sec:shaded-theorems-with} -Even though we have the \markup[nomk,sty]{shadedthm} package, we can -easily do better if we are already using the -\markup[nomk,sty]{ntheorem} package. Simply use -\begin{syntax} - \markup{NewShadedTheorem} -\end{syntax} -It has exactly the same syntax as the ordinary -\markup[nomk]{newtheorem}. Requirements: the -\markup[nomk,sty]{framed}, \markup[nomk,sty]{ntheorem}, -(\texttt{x})\markup[nomk,sty]{color} packages and the definition of -the >>\texttt{shadecolor}<< (required by the \markup[nomk,sty]{framed} -package). Inside the \cs{NewShadedTheorem} the environment surrounding -the theorem is given by the macro \markup{NSTshadeenvironment} which -is initialised to >>\texttt{shaded}<<. You can change it using -\cs{renewcommand}. +The \markup[nomk,sty]{ntheorem} pacakge can create shaded or framed +theorems, but they take up to much space (in my opinion). So we make +our own macro \markup{NewShadedTheorem}. It has exactly the same +syntax as the ordinary \markup[nomk]{newtheorem}. Requirements: the +\markup[nomk,sty]{framed}, \markup[nomk,sty]{ntheorem} (loaded with +the \texttt{framed} option), and \markup[nomk,sty]{color} or +\markup[nomk,sty]{xcolor}. You will have to redefine +\markup{theoremframecommand} to get a background color or a +frame. This package initialises \markup[nomk]{theoremframecommand} to +do nothing. +\begin{caveat} + The theorem environment constructed will not have a stared companion + as \markup[nomk,sty]{ntheorem}s normal \markup[nomk]{newtheorem} does. +\end{caveat} \begin{sourcedisplay} -\theoremheaderfont{\bfseries} -\theoremseparator{.} -\NewShadedTheorem{thm}{Theorem}[chapter] -\NewShadedTheorem{lemma}[thm]{Lemma} -\newtheorem{prop}[thm]{Proposition} -\begin{thm} +\def\theoremframecommand{\fboxsep=10pt\fbox} +\NewShadedTheorem{sthm}{Theorem}[chapter] +\def\theoremframecommand{% +\colorbox{red}} +\NewShadedTheorem{slemma}[sthm]{Lemma} +\newtheorem{prop}[sthm]{Proposition} +\begin{sthm} normal test. -\end{thm} -\begin{thm*} - un-numbered. -\end{thm*} -\begin{lemma} +\end{sthm} +\begin{slemma} a lemma. -\end{lemma} +\end{slemma} \begin{prop} a theorem with no background. \end{prop} \end{sourcedisplay} -In contrast to \markup[nomk,sty]{ntheorem}, the $*$-ed version created -by \markup[nomk]{NewShadedTheorem} is a version that does not print a -number. + +\theoremstyle{plain} +\newtheorem{thm}{Theorem} \section{Theorems that start with a list} \label{sec:theorems-that-start} @@ -233,10 +246,6 @@ number. A theorem that starts with a list looks odd because the first item comes directly after the heading.\footnote{Depends on the configuration.} -\makeatletter -\let\thm\thm@inner -\let\endthm\endthm@inner -\makeatother \begin{sourcedisplay} \begin{thm} \begin{enumerate} @@ -268,11 +277,11 @@ The macro \markup{InsertTheoremBreak} helps. \noindent The un-stared version remove the space above the list, the stared version does not. -\begin{caveat*} +\begin{caveat} If the theorem comes too close to a page break it is quite likely that the page break will end up between the theorem header and the start of the list. -\end{caveat*} +\end{caveat} \chapter{Various features regarding alignment} \label{cha:vari-feat-regard} diff --git a/Master/texmf-dist/doc/latex/dlfltxb/dlfltxbmarkup-showkeys.pdf b/Master/texmf-dist/doc/latex/dlfltxb/dlfltxbmarkup-showkeys.pdf index 8df3fb102e3..3a70627a6ec 100644 Binary files a/Master/texmf-dist/doc/latex/dlfltxb/dlfltxbmarkup-showkeys.pdf and b/Master/texmf-dist/doc/latex/dlfltxb/dlfltxbmarkup-showkeys.pdf differ diff --git a/Master/texmf-dist/doc/latex/dlfltxb/dlfltxbmarkup.pdf b/Master/texmf-dist/doc/latex/dlfltxb/dlfltxbmarkup.pdf index 0e27525e858..82098befebb 100644 Binary files a/Master/texmf-dist/doc/latex/dlfltxb/dlfltxbmarkup.pdf and b/Master/texmf-dist/doc/latex/dlfltxb/dlfltxbmarkup.pdf differ diff --git a/Master/texmf-dist/doc/latex/dlfltxb/dlfltxbmisc.pdf b/Master/texmf-dist/doc/latex/dlfltxb/dlfltxbmisc.pdf index b0cc71d9c45..decdb2eb687 100644 Binary files a/Master/texmf-dist/doc/latex/dlfltxb/dlfltxbmisc.pdf and b/Master/texmf-dist/doc/latex/dlfltxb/dlfltxbmisc.pdf differ -- cgit v1.2.3