summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/nostarch
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-07-20 03:00:54 +0000
committerNorbert Preining <norbert@preining.info>2023-07-20 03:00:54 +0000
commit16b3f7ad411e343f19c82febffd51601bbe90d3f (patch)
treeb7de45527fdfa95834c086d9fd6109133e86a202 /macros/latex/contrib/nostarch
parentd3bd608be0e8ac816c5d16ef32b4e046f869713f (diff)
CTAN sync 202307200300
Diffstat (limited to 'macros/latex/contrib/nostarch')
-rw-r--r--macros/latex/contrib/nostarch/README3
-rw-r--r--macros/latex/contrib/nostarch/nostarch.dtx19
-rw-r--r--macros/latex/contrib/nostarch/nostarch.pdfbin317671 -> 318711 bytes
-rw-r--r--macros/latex/contrib/nostarch/nssample.pdfbin281744 -> 281542 bytes
-rw-r--r--macros/latex/contrib/nostarch/nssample.tex1
5 files changed, 22 insertions, 1 deletions
diff --git a/macros/latex/contrib/nostarch/README b/macros/latex/contrib/nostarch/README
index 6e62ae5cf9..5a5b061798 100644
--- a/macros/latex/contrib/nostarch/README
+++ b/macros/latex/contrib/nostarch/README
@@ -10,6 +10,9 @@ nshyper.sty and MakeIndex style nostarch.ist.
CHANGES:
+Version 2.4
+ Better handling of URLs (thanks to David Carlisle)
+
Version 2.3
Compatibility with amsmath restored
diff --git a/macros/latex/contrib/nostarch/nostarch.dtx b/macros/latex/contrib/nostarch/nostarch.dtx
index 1e0c86ce01..762654a210 100644
--- a/macros/latex/contrib/nostarch/nostarch.dtx
+++ b/macros/latex/contrib/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}
%
diff --git a/macros/latex/contrib/nostarch/nostarch.pdf b/macros/latex/contrib/nostarch/nostarch.pdf
index 8bbf6de686..fd8fb9bd5e 100644
--- a/macros/latex/contrib/nostarch/nostarch.pdf
+++ b/macros/latex/contrib/nostarch/nostarch.pdf
Binary files differ
diff --git a/macros/latex/contrib/nostarch/nssample.pdf b/macros/latex/contrib/nostarch/nssample.pdf
index 76c6c302f0..5b5157d240 100644
--- a/macros/latex/contrib/nostarch/nssample.pdf
+++ b/macros/latex/contrib/nostarch/nssample.pdf
Binary files differ
diff --git a/macros/latex/contrib/nostarch/nssample.tex b/macros/latex/contrib/nostarch/nssample.tex
index 5fbd1c5f8e..1222b52997 100644
--- a/macros/latex/contrib/nostarch/nssample.tex
+++ b/macros/latex/contrib/nostarch/nssample.tex
@@ -5,6 +5,7 @@
\usepackage{natbib}
\usepackage{nshyper}
\lstset{fancyvrb=true}
+\usepackage{amsmath}
\makeindex
\begin{document}