[latex3-commits] [git/LaTeX3-latex3-latex2e] develop: Document that \IfPackageLoadedTF can be used anywhere in the document (fb5bd596)

Frank Mittelbach frank.mittelbach at latex-project.org
Wed Sep 1 22:47:00 CEST 2021


Repository : https://github.com/latex3/latex2e
On branch  : develop
Link       : https://github.com/latex3/latex2e/commit/fb5bd5967042800e5518a63dd240d2daba9c86d7

>---------------------------------------------------------------

commit fb5bd5967042800e5518a63dd240d2daba9c86d7
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Wed Sep 1 22:47:00 2021 +0200

    Document that \IfPackageLoadedTF can be used anywhere in the document


>---------------------------------------------------------------

fb5bd5967042800e5518a63dd240d2daba9c86d7
 base/doc/ltnews34.tex | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/base/doc/ltnews34.tex b/base/doc/ltnews34.tex
index e0297934..81dac692 100644
--- a/base/doc/ltnews34.tex
+++ b/base/doc/ltnews34.tex
@@ -117,7 +117,7 @@
 \tubcommand{\input{tubltmac}}
 
 \publicationmonth{November}
-\publicationyear{2021 --- Draft Version} 
+\publicationyear{2021 --- Draft Version (with many unfinished blocks)} 
 
 \publicationissue{34}
 
@@ -382,9 +382,14 @@ different code. It is also possible to check if the package was loaded
 with certain options. This is done with
 \cs{IfPackageLoadedWithOptionsTF}. It takes four arguments:
 \Arg{package}\Arg{option-list}\Arg{true}\Arg{false}. It uses the
-\meta{false} code if at least one option in the \meta{option-list}
-has not been used during loading or if the package hasn't been loaded
-at all.
+\meta{false} code if at least one option in the \meta{option-list} has
+not been used during loading or if the package hasn't been loaded at
+all.
+%
+Both commands can be used anywhere in the document, i.e., they are not
+restricted to the preamble.\footnote{This is now also true for the
+  corresponding internal commands, e.g., \cs{@ifpackageloaded}, that
+  had this restriction in the past.}
 
 For classes similar commands (\texttt{Package} replaced by
 \texttt{Class} in the name) are provided.





More information about the latex3-commits mailing list.