Skip to content

Commit

Permalink
docu fix for #1599
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankMittelbach committed Jan 3, 2025
1 parent 818bc13 commit 7267000
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
5 changes: 5 additions & 0 deletions base/changes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ to completeness or accuracy and it contains some references to files that are
not part of the distribution.
================================================================================

2025-01-03 Frank Mittelbach <[email protected]>

* lthooks.dtx (subsubsection{Updating code for hooks}):
Correct example to use env/quote/begin instead of /before (gh/1599)

2025-01-02 Frank Mittelbach <[email protected]>

* ltclass.dtx (subsection{Hooks}):
Expand Down
10 changes: 6 additions & 4 deletions base/lthooks.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
%<*driver>
% \fi
\ProvidesFile{lthooks.dtx}
[2024/12/25 v1.1l LaTeX Kernel (hooks)]
[2025/01/03 v1.1l LaTeX Kernel (hooks)]
% \iffalse
%
\documentclass{l3doc}
Expand Down Expand Up @@ -441,18 +441,20 @@
% A useful application for this declaration inside the document body
% is when one wants to temporarily add code to hooks and later remove
% it again, e.g.,
% \changes{v1.1l}{2025/01/03}{Correct example to use \texttt{env/quote/begin}
% instead of \texttt{/before} (gh/1599)}
%\begin{verbatim}
% \AddToHook{env/quote/before}{\small}
% \AddToHook{env/quote/begin}{\small}
% \begin{quote}
% A quote set in a smaller typeface
% \end{quote}
% ...
% \RemoveFromHook{env/quote/before}
% \RemoveFromHook{env/quote/begin}
% ... now back to normal for further quotes
%\end{verbatim}
% Note that you can't cancel the setting with
%\begin{verbatim}
% \AddToHook{env/quote/before}{}
% \AddToHook{env/quote/begin}{}
%\end{verbatim}
% because that only \enquote{adds} a further empty chunk of code to
% the hook. Adding \cs{normalsize} would work but that means the hook
Expand Down

0 comments on commit 7267000

Please sign in to comment.