[latex3-commits] [latex3/latex2e] If-X-TF: Add \If...LoadedWithOptionsTF (57ec6e9f)
github at latex-project.org
github at latex-project.org
Mon Sep 2 08:45:56 CEST 2024
Repository : https://github.com/latex3/latex2e
On branch : If-X-TF
Link : https://github.com/latex3/latex2e/commit/57ec6e9f1257d5947d7c921131a6b2e345a24937
>---------------------------------------------------------------
commit 57ec6e9f1257d5947d7c921131a6b2e345a24937
Author: Joseph Wright <joseph at texdev.net>
Date: Mon Sep 2 07:45:56 2024 +0100
Add \If...LoadedWithOptionsTF
>---------------------------------------------------------------
57ec6e9f1257d5947d7c921131a6b2e345a24937
base/doc/clsguide.tex | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/base/doc/clsguide.tex b/base/doc/clsguide.tex
index 57fc41c6..a2664295 100644
--- a/base/doc/clsguide.tex
+++ b/base/doc/clsguide.tex
@@ -1002,6 +1002,15 @@ Section~\ref{sec:ID}. In the case of \cs{IfFileLoadedTF}, the full
\meta{file-name} must be provided; in contrast, no extension should be given if
testing for a package or class.
+\begin{decl}
+ |\IfPackageLoadedWithOptionsTF| \arg{package-name} \args{options} \arg{true code} \arg{false code}\\
+ |\IfClassLoadedOptionsTF| \arg{class-name} \args{options} \arg{true code} \arg{false code}
+\end{decl}
+These commands test if the named package or class was loaded with
+\emph{exactly} the \meta{options} specified. Thus the package or class must be
+loaded (giving a \texttt{true} result for \cs{If...LoadedT}) and the option
+list used when loading it must be identifical to the \meta{options}.
+
\begin{decl}
|\IfPackageAtLeastTF| \arg{package-name} \arg{date} \arg{true code} \arg{false code}\\
|\IfClassAtLeastTF| \arg{class-name} \arg{date} \arg{true code} \arg{false code}\\
More information about the latex3-commits
mailing list.