diff options
author | Norbert Preining <norbert@preining.info> | 2021-07-01 03:01:47 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-07-01 03:01:47 +0000 |
commit | c840f97520ba98156a0ed525d6b5d05ab6a324f6 (patch) | |
tree | 8e6cf79a5019e2dc2811f4a5b032caffb2809226 /macros/latex/required | |
parent | 916b6828e77bd92bd88d57bad094c4520f0ad65c (diff) |
CTAN sync 202107010301
Diffstat (limited to 'macros/latex/required')
-rw-r--r-- | macros/latex/required/firstaid/changes.txt | 6 | ||||
-rw-r--r-- | macros/latex/required/firstaid/latex2e-first-aid-for-external-files.dtx | 34 | ||||
-rw-r--r-- | macros/latex/required/firstaid/latex2e-first-aid-for-external-files.pdf | bin | 243739 -> 245736 bytes |
3 files changed, 38 insertions, 2 deletions
diff --git a/macros/latex/required/firstaid/changes.txt b/macros/latex/required/firstaid/changes.txt index 908452783e..f84c9dbc5b 100644 --- a/macros/latex/required/firstaid/changes.txt +++ b/macros/latex/required/firstaid/changes.txt @@ -1,3 +1,9 @@ +2021-06-28 Frank Mittelbach <Frank.Mittelbach@latex-project.org> + + * latex2e-first-aid-for-external-files.dtx: + Add first aid for strange bogus para/end error due to listings's + redefinition of \vskip. + 2021-06-24 Frank Mittelbach <Frank.Mittelbach@latex-project.org> * latex2e-first-aid-for-external-files.dtx (subsection{\footref first aid}): diff --git a/macros/latex/required/firstaid/latex2e-first-aid-for-external-files.dtx b/macros/latex/required/firstaid/latex2e-first-aid-for-external-files.dtx index da630423c2..b15a63d7ec 100644 --- a/macros/latex/required/firstaid/latex2e-first-aid-for-external-files.dtx +++ b/macros/latex/required/firstaid/latex2e-first-aid-for-external-files.dtx @@ -111,8 +111,8 @@ % \end{macrocode} % % \begin{macrocode} -\def\LaTeXFirstAidDate{2021/06/24} -\def\LaTeXFirstAidVersion{v1.0n} +\def\LaTeXFirstAidDate{2021/06/28} +\def\LaTeXFirstAidVersion{v1.0o} % \end{macrocode} % % \begin{macrocode} @@ -679,6 +679,36 @@ \ExplSyntaxOff % \end{macrocode} % +% The next fixes Github issue 605 (by inserting a \cs{scan\_stop:} +% before doing the check for hmode). +% \begin{macrocode} +\ExplSyntaxOn +\cs_set_protected:Npn \para_end: { + \scan_stop: + \mode_if_horizontal:TF { + \mode_if_inner:F { + \tex_unskip:D + \hook_use:n{para/end} + \@kernel@after@para@end + \mode_if_horizontal:TF { + \if_int_compare:w 0 < \tex_lastnodetype:D + \tex_kern:D \c_zero_dim + \fi: + \tex_par:D + \hook_use:n{para/after} + \@kernel@after@para@after + } + { \msg_error:nnnn { hooks }{ para-mode }{end}{horizontal} } + } + } + \tex_par:D +} +\cs_set_eq:NN \par \para_end: +\cs_set_eq:NN \@@par \para_end: +\cs_set_eq:NN \endgraf \para_end: +\ExplSyntaxOff +% \end{macrocode} +% % \begin{macrocode} %</kernel> % \end{macrocode} diff --git a/macros/latex/required/firstaid/latex2e-first-aid-for-external-files.pdf b/macros/latex/required/firstaid/latex2e-first-aid-for-external-files.pdf Binary files differindex 8a1df73324..5b395e4e10 100644 --- a/macros/latex/required/firstaid/latex2e-first-aid-for-external-files.pdf +++ b/macros/latex/required/firstaid/latex2e-first-aid-for-external-files.pdf |