diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/mh/empheq.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/mh/empheq.dtx | 200 |
1 files changed, 158 insertions, 42 deletions
diff --git a/Master/texmf-dist/source/latex/mh/empheq.dtx b/Master/texmf-dist/source/latex/mh/empheq.dtx index 32f5fadbbd4..8f46877b052 100644 --- a/Master/texmf-dist/source/latex/mh/empheq.dtx +++ b/Master/texmf-dist/source/latex/mh/empheq.dtx @@ -1,38 +1,136 @@ % \iffalse meta-comment -% File `empheq.dtx'. -% Copyright 2002-2004 Morten H\o gholm. -% moho01ab@student.cbs.dk -% -% It may be distributed and/or modified under the -% conditions of the LaTeX Project Public License, either version 1.3 -% of this license or (at your option) any later version. -% The latest version of this license is in -% http://www.latex-project.org/lppl.txt -% and version 1.3 or later is part of all distributions of LaTeX -% version 2003/12/01 or later. +% +% Copyright (C) 2002-2007 by Morten Hoegholm <mh.ctan@gmail.com> +% +% This work may be distributed and/or modified under the +% conditions of the LaTeX Project Public License, either +% version 1.3 of this license or (at your option) any later +% version. The latest version of this license is in +% http://www.latex-project.org/lppl.txt +% and version 1.3 or later is part of all distributions of +% LaTeX version 2005/12/01 or later. % % This work has the LPPL maintenance status "maintained". % -% The Current Maintainer of this work is Morten H\o gholm. -% -% This work consists of the files empheq.dtx and empheq.ins and the -% derived files empheq.sty and ntheorem.fix. -% \fi -% \iffalse -%<empheq>\NeedsTeXFormat{LaTeX2e} -%<empheq>\ProvidesPackage{empheq} -%<ntheorem>\ProvidesFile{ntheorem.fix} -%<*dtx> - \ProvidesFile{empheq.dtx} -%</dtx> - [2004/10/10 v2.11a -%<empheq> Emphasizing equations (MH) -%<ntheorem> empheq support and fixes for ntheorem (MH) - ] +% This Current Maintainer of this work is Morten Hoegholm. +% +% This work consists of the main source file empheq.dtx +% and the derived files +% empheq.sty, empheq.pdf, empheq.ins, empheq.drv. +% +% Distribution: +% CTAN:macros/latex/contrib/mh/empheq.dtx +% CTAN:macros/latex/contrib/mh/empheq.pdf +% +% Unpacking: +% (a) If empheq.ins is present: +% tex empheq.ins +% (b) Without empheq.ins: +% tex empheq.dtx +% (c) If you insist on using LaTeX +% latex \let\install=y\input{empheq.dtx} +% (quote the arguments according to the demands of your shell) +% +% Documentation: +% (a) If empheq.drv is present: +% latex empheq.drv +% (b) Without empheq.drv: +% latex empheq.dtx; ... +% The class ltxdoc loads the configuration file ltxdoc.cfg +% if available. Here you can specify further options, e.g. +% use A4 as paper format: +% \PassOptionsToClass{a4paper}{article} +% +% Programm calls to get the documentation (example): +% pdflatex empheq.dtx +% makeindex -s gind.ist empheq.idx +% pdflatex empheq.dtx +% makeindex -s gind.ist empheq.idx +% pdflatex empheq.dtx +% +% Installation: +% TDS:tex/latex/mh/empheq.sty +% TDS:doc/latex/mh/empheq.pdf +% TDS:source/latex/mh/empheq.dtx +% +%<*ignore> +\begingroup + \def\x{LaTeX2e} +\expandafter\endgroup +\ifcase 0\ifx\install y1\fi\expandafter + \ifx\csname processbatchFile\endcsname\relax\else1\fi + \ifx\fmtname\x\else 1\fi\relax +\else\csname fi\endcsname +%</ignore> +%<*install> +\input docstrip.tex +\Msg{************************************************************************} +\Msg{* Installation} +\Msg{* Package: empheq 2007/12/03 v2.12 empheq (MH)} +\Msg{************************************************************************} + +\keepsilent +\askforoverwritefalse + +\preamble + +This is a generated file. + +Copyright (C) 2002-2007 by Morten Hoegholm <mh.ctan@gmail.com> + +This work may be distributed and/or modified under the +conditions of the LaTeX Project Public License, either +version 1.3 of this license or (at your option) any later +version. The latest version of this license is in + http://www.latex-project.org/lppl.txt +and version 1.3 or later is part of all distributions of +LaTeX version 2005/12/01 or later. + +This work has the LPPL maintenance status "maintained". + +This Current Maintainer of this work is Morten Hoegholm. + +This work consists of the main source file empheq.dtx +and the derived files + empheq.sty, empheq.pdf, empheq.ins, empheq.drv. + +\endpreamble + +\generate{% + \file{empheq.ins}{\from{empheq.dtx}{install}}% + \file{empheq.drv}{\from{empheq.dtx}{driver}}% + \usedir{tex/latex/mh}% + \file{empheq.sty}{\from{empheq.dtx}{package}}% +} + +\obeyspaces +\Msg{************************************************************************} +\Msg{*} +\Msg{* To finish the installation you have to move the following} +\Msg{* file into a directory searched by TeX:} +\Msg{*} +\Msg{* empheq.sty} +\Msg{*} +\Msg{* To produce the documentation run the file `empheq.drv'} +\Msg{* through LaTeX.} +\Msg{*} +\Msg{* Happy TeXing!} +\Msg{*} +\Msg{************************************************************************} + +\endbatchfile +%</install> +%<*ignore> +\fi +%</ignore> %<*driver> -\documentclass[a4paper]{ltxdoc} +\NeedsTeXFormat{LaTeX2e} +\ProvidesFile{empheq.drv}% + [2007/12/03 v2.12 Emphasizing equations (MH)] +\documentclass{ltxdoc} +\usepackage{mathpazo} \usepackage[overload]{empheq} -\usepackage{color,varioref,booktabs,fancybox} +\usepackage{xcolor,varioref,booktabs,fancybox} \pagestyle{headings} \hyphenation{emph-eq} @@ -211,7 +309,7 @@ \makeatother \usepackage{graphicx} -\usepackage[final,breaklinks=true,hyperindex=false,linkbordercolor=false]{hyperref} +\usepackage[final,breaklinks=true,hyperindex=false]{hyperref} \renewcommand*\usage[1]{\textit{\hyperpage{#1}}} \OnlyDescription @@ -252,7 +350,7 @@ % \changes{v0.5}{2002/12/30}{First experimental and very limited % release} % -% \GetFileInfo{empheq.dtx} +% \GetFileInfo{empheq.drv} % \CheckSum{2495} % % \title{The \pkg{empheq} package\thanks{This file has version number @@ -629,8 +727,8 @@ % \subsubsection{Compatibility with the old version} % % The current version (\fileversion) of \pkg{empheq} is incompatible with -% versions prior to and including~0.7d. If you have documents produced -% with versions prior to~0.7d, then you have to load the package +% versions prior to and including~0.7e. If you have documents produced +% with versions prior to~0.7e, then you have to load the package % \pkg{empheq07} instead. \pkg{empheq07} now exists as a separate package % package with its own documentation, but I strongly recommend switching % to the new version because it is so much better. @@ -1449,7 +1547,7 @@ % Should you have any feature request, suggestions, or bug reports % then feel free to contact me at % \begin{quote} -% \email{moho01ab@student.cbs.dk} +% \email{mh.ctan@gmail.com} % \end{quote} % Please put `empheq' in the subject line. % @@ -1560,7 +1658,9 @@ % \section{Requirements, Options, and Strategy} % Lets start the package. We'll need the tools from \pkg{mhsetup}. % \begin{macrocode} -%<*empheq> +%<*package> +\ProvidesPackage{empheq}% + [2007/12/03 v2.12 Emphasizing equations (MH)] % \end{macrocode} % \begin{macrocode} \RequirePackage{mhsetup}[2004/10/10] @@ -1603,7 +1703,8 @@ % % Load the \pkg{ntheorem} support file. % \begin{macrocode} -\DeclareOption{ntheorem}{\AtEndOfPackage{\input{ntheorem.fix}}} +\gdef\g@EQ@ntheorem@support@bool{01} +\DeclareOption{ntheorem}{\gdef\g@EQ@ntheorem@support@bool{00}} % \end{macrocode} % Pass other options to \pkg{mathtools}. % \begin{macrocode} @@ -3196,7 +3297,18 @@ \MH_let:NwN \hyper@refstepcounter\@gobble } % \end{macrocode} +% +% \subsection{\pkg{nccmath}} % +% Must disable this macro, otherwise the spacing is wrong. +% \begin{macrocode} + \g@addto@macro\EQ_typeset_display_hook:{ + \let\NCC@ignorepar\relax + } + \g@addto@macro\EQ_typeset_tags_hook:{ + \let\NCC@ignorepar\relax + } +% \end{macrocode} % % \subsection{Basic \pkg{ntheorem} support} % \begin{macrocode} @@ -3460,11 +3572,16 @@ } % \end{macrocode} % End of \cs{AtBeginDocument} additions. +% +% If we need to load \pkg{ntheorem} support this is where it +% happens. Otherwise we just stop here. % \begin{macrocode} -%</empheq> +\if\g@EQ@ntheorem@support@bool +\else + \expandafter\endinput +\fi % \end{macrocode} % -% % \section{Patching Things up for \pkg{ntheorem}} % \label{sec:impl:ntheorem} % @@ -3480,7 +3597,6 @@ % in \pkg{amsmath} that could cause tags to cross page boundaries % without warning. The \cs{nobreak} is the addition. % \begin{macrocode} -%<*ntheorem> \def\default_raisetag:{\nobreak} \def\raisetag#1{ \skip@#1\relax @@ -3752,7 +3868,7 @@ \hfil \fi: \strut@ - $\m@th\displaystyle{}##\endmultline@math + $\m@th\displaystyle{}##\endmultline@math%$ \hfil }% \crcr @@ -4042,9 +4158,9 @@ % \end{macrocode} % \end{macro} % -% End of \pkg{ntheorem} patches. +% End of \pkg{ntheorem} patches and package. % \begin{macrocode} -%</ntheorem> +%</package> % \end{macrocode} % \Finale \endinput |