[latex3-commits] [latex3/latex2e] gh1185: RequirePackageWithOptions (e97c59ee)

github at latex-project.org github at latex-project.org
Tue Jan 30 13:44:02 CET 2024


Repository : https://github.com/latex3/latex2e
On branch  : gh1185
Link       : https://github.com/latex3/latex2e/commit/e97c59ee87ed6e04bde9d013ae5def987403049b

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

commit e97c59ee87ed6e04bde9d013ae5def987403049b
Author: David Carlisle <d.p.carlisle at gmail.com>
Date:   Tue Jan 30 12:43:45 2024 +0000

    RequirePackageWithOptions


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

e97c59ee87ed6e04bde9d013ae5def987403049b
 base/doc/ltnews39.tex | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/base/doc/ltnews39.tex b/base/doc/ltnews39.tex
index 6a842f8b..ca21958c 100644
--- a/base/doc/ltnews39.tex
+++ b/base/doc/ltnews39.tex
@@ -234,7 +234,8 @@ well.
 \section{Code improvements}
 
 \subsection{Loading packages at the top level}
-Packages should only be loaded with \cs{usepackage} or \cs{RequirePackage}
+Packages should only be loaded with \cs{usepackage}, \cs{RequirePackage}
+ or \cs{RequirePackageWithOptions}
 at the top level, not inside a group. Previously \LaTeX\ did not check this,
 which would often lead to low level errors later on if package declarations
 were reverted as a group ended.





More information about the latex3-commits mailing list.