From 89621c1ee7abdb0d7e8e8fa92d4f582093fb7dac Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Sun, 16 Sep 2018 21:37:43 +0000
Subject: breqn (16sep18)

git-svn-id: svn://tug.org/texlive/trunk@48679 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/source/latex/breqn/breqn.dtx | 40 ++++++++++++++++++++------
 1 file changed, 32 insertions(+), 8 deletions(-)

(limited to 'Master/texmf-dist/source/latex/breqn/breqn.dtx')

diff --git a/Master/texmf-dist/source/latex/breqn/breqn.dtx b/Master/texmf-dist/source/latex/breqn/breqn.dtx
index 8f23f28cf76..6b93a18506d 100644
--- a/Master/texmf-dist/source/latex/breqn/breqn.dtx
+++ b/Master/texmf-dist/source/latex/breqn/breqn.dtx
@@ -78,7 +78,7 @@ This is a generated file.
 Copyright (C) 1997-2003 by Michael J. Downes
 Copyright (C) 2007-2008 by Morten Hoegholm
 Copyright (C) 2007-2014 by Lars Madsen
-Copyright (C) 2007-2017 by Will Robertson
+Copyright (C) 2007-2018 by Will Robertson
 Copyright (C) 2010-2017 by Joseph Wright
 
 This work may be distributed and/or modified under the
@@ -124,7 +124,7 @@ and the derived files
 %</ignore>
 %<*driver>
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesFile{breqn.drv}[2017/01/27 0.98e breqn]
+\ProvidesFile{breqn.drv}[2018/09/14 0.98f breqn]
 \documentclass{ltxdoc}
 \CodelineIndex
 \EnableCrossrefs
@@ -1457,8 +1457,6 @@ and the derived files
 %
 % \section{Prelim}
 %
-% This package doesn't work with \latex  2.09, nor with other
-% versions of \latex  earlier than 1994/12/01.
 %    \begin{macrocode}
 %<*package>
 \NeedsTeXFormat{LaTeX2e}
@@ -1466,8 +1464,8 @@ and the derived files
 %
 % Declare package name and date.
 %    \begin{macrocode}
-\RequirePackage{expl3}[2009/08/05]
-\ProvidesExplPackage{breqn}{2017/01/27}{0.98e}{Breaking equations}
+\RequirePackage{expl3}
+\ProvidesExplPackage{breqn}{2018/09/14}{0.98f}{Breaking equations}
 %    \end{macrocode}
 %   Regrettably, \pkg{breqn} is internally a mess, so we have to take
 %   some odd steps.
@@ -2041,12 +2039,13 @@ and the derived files
 %    \begin{macrocode}
 %<*trace>
 \errorcontextlines=2000\relax
+\typeout{BREQN DEBUGGING MODE ACTIVE}
 %    \end{macrocode}
 %
 % \begin{macro}{\breqn@debugmsg}
 % Print a debugging message.
 %    \begin{macrocode}
-\long\def\breqn@debugmsg#1{\GenericInfo{||}{||=\space#1}}
+\long\def\breqn@debugmsg#1{\GenericWarning{||}{||=\space#1}}
 %    \end{macrocode}
 % \end{macro}
 %
@@ -2969,6 +2968,15 @@ and the derived files
 %  1) modifications supplied by MJD to fix the eaten \cs{paragraph} problem.
 %  2) Added \cs{display@setup} here, rather than globally.
 %
+% \begin{macro}{\@dmath@start@hook}
+% \begin{macro}{\@dgroup@start@hook}
+%    \begin{macrocode}
+\let\@dmath@start@hook\@empty
+\let\@dgroup@start@hook\@empty
+%    \end{macrocode}
+% \end{macro}
+% \end{macro}
+%
 % \begin{macro}{\dmath}
 % \begin{macro}{\enddmath}
 % For the \env{dmath} environment we don't want the standard
@@ -2977,6 +2985,7 @@ and the derived files
 % for math material.    So we call \cs{@optarg} instead.
 %    \begin{macrocode}
 \newenvironment{dmath}{%
+ \@dmath@start@hook
  \let\eq@hasNumber\@True \@optarg\@dmath{}}{}
 \def\@dmath[#1]{%
 %<trace>  \breqn@debugmsg{=== DMATH ==================================================}%
@@ -3005,7 +3014,9 @@ and the derived files
 % \cs{enddmath} needs to look ahead for punctuation (and
 % \cs{qed}?).
 %    \begin{macrocode}
-\def\enddmath#1{\check@punct@or@qed}
+\def\enddmath#1{%
+  \check@punct@or@qed
+}
 \def\end@dmath{%
   \gdef\EQ@setwdL{}% Occasionally undefined ???
   \eq@capture
@@ -3035,6 +3046,7 @@ and the derived files
 % Ah yes, now the lovely \env{dmath*} environment.
 %    \begin{macrocode}
 \newenvironment{dmath*}{%
+  \@dmath@start@hook
   \let\eq@hasNumber\@False \@optarg\@dmath{}%
 }{}
 \@namedef{end@dmath*}{\end@dmath}
@@ -6520,6 +6532,7 @@ and the derived files
 % Definition of the \env{dgroup} environment.
 %    \begin{macrocode}
 \newenvironment{dgroup}{%
+  \@dgroup@start@hook
   \let\grp@hasNumber\@True\@optarg\@dgroup{}%
 }{%
   \end@dgroup
@@ -7107,6 +7120,17 @@ and the derived files
 % \end{macro}
 %
 %
+% \section{Compatibility}
+%
+% \paragraph{lineno} (or at the very least, allow documents to compile!)
+%    \begin{macrocode}
+\AtBeginDocument{%
+  \@ifpackageloaded{lineno}{%
+    \g@addto@macro\@dmath@start@hook{\nolinenumbers}%
+    \g@addto@macro\@dgroup@start@hook{\nolinenumbers}%
+  }{}%
+}
+%    \end{macrocode}
 %
 %
 %
-- 
cgit v1.2.3

