diff options
author | Karl Berry <karl@freefriends.org> | 2023-07-20 20:10:30 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-07-20 20:10:30 +0000 |
commit | 62cc954b885f199f7be40833d48c670b86fcea7f (patch) | |
tree | 3d32b04043a5e2fb523f00b51a5c7e23d965ffc0 /Master/texmf-dist/source | |
parent | 2505ce617cee223c5cca09ff2823d871aa8a18c4 (diff) |
nostarch (20jul23)
git-svn-id: svn://tug.org/texlive/trunk@67683 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r-- | Master/texmf-dist/source/latex/nostarch/nostarch.dtx | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/Master/texmf-dist/source/latex/nostarch/nostarch.dtx b/Master/texmf-dist/source/latex/nostarch/nostarch.dtx index 1e0c86ce012..762654a210a 100644 --- a/Master/texmf-dist/source/latex/nostarch/nostarch.dtx +++ b/Master/texmf-dist/source/latex/nostarch/nostarch.dtx @@ -717,7 +717,7 @@ %<class>\ProvidesClass{nostarch} %<nshyper>\ProvidesPackage{nshyper} %<*!ist> -[2023/06/18 v2.3 Typesetting books for No Starch Press] +[2023/07/19 v2.4 Typesetting books for No Starch Press] %</!ist> % \end{macrocode} % @@ -2911,6 +2911,8 @@ pagecolor=black,urlcolor=black,hyperindex=false]{hyperref} % \changes{v2.1}{2023/04/11}{Added slashes and double quote} % \changes{v2.3}{2023/06/18}{Moved out opening braces for % compatibility with amsmath} +% \changes{v2.4}{2023/07/19}{Restored opening brackets using David +% Carlisle's advice} % We add to macro special treatment of the chars with breaking URLs. % Slashes are interesting: we allow breaking after them, but not % before, even after other slashes or colons @@ -2931,6 +2933,10 @@ pagecolor=black,urlcolor=black,hyperindex=false]{hyperref} \do\'{\penalty\UrlBreakPenalty\mathchar39\relax}% \do\"{\penalty\UrlBreakPenalty\mathchar34\relax}% \do\+{\penalty\UrlBreakPenalty\mathchar43\relax}% + \do\<{\penalty\UrlBreakPenalty\mathchar60\relax}% + \do\[{\penalty\UrlBreakPenalty\mathchar91\relax}% + \do\({\penalty\UrlBreakPenalty\mathchar40\relax}% + \do\{{\penalty\UrlBreakPenalty\mathchar123\relax}% \do\/{\unpenalty\penalty\@M\mathchar47\penalty\UrlBreakPenalty}% } % \end{macrocode} @@ -2945,6 +2951,17 @@ pagecolor=black,urlcolor=black,hyperindex=false]{hyperref} % \end{macrocode} % \end{macro} % +% \begin{macro}{\Url@MathSetup} +% \changes{v2.4}{2023/07/19}{Added to the macro} +% Amsmath redefines math catcodes every math expression. This lead to +% incompatibility. By David Carlisle's advice, we reset this +% resetting. We add this to the macro that is called at the beginning +% of every url +% \begin{macrocode} +\g@addto@macro{\Url@MathSetup}{\let\resetMathstrut@\relax} +% \end{macrocode} +% \end{macro} +% %\subsection{Margin notes} %\label{sec:margins} % |