[latex3-commits] [git/LaTeX3-latex3-iftex] master: document scrbase compat (b48b0e8)

David Carlisle d.p.carlisle at gmail.com
Fri Nov 8 12:55:19 CET 2019


Repository : https://github.com/latex3/iftex
On branch  : master
Link       : https://github.com/latex3/iftex/commit/b48b0e8bd72aa9314d93f25d0b745e287864fe70

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

commit b48b0e8bd72aa9314d93f25d0b745e287864fe70
Author: David Carlisle <d.p.carlisle at gmail.com>
Date:   Fri Nov 8 11:55:19 2019 +0000

    document scrbase compat


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

b48b0e8bd72aa9314d93f25d0b745e287864fe70
 iftex.tex | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/iftex.tex b/iftex.tex
index ee5b666..5fbfbbc 100644
--- a/iftex.tex
+++ b/iftex.tex
@@ -181,4 +181,18 @@ tests for p\TeX\ variants and this package does \emph{not} replace the
 by their original authors and recommended for Japanese documents that
 need fine control over the Japanese \TeX\ system in use.
 
+\section{Compatibility with \textsf{scrbase}}
+The \textsf{scrbase} package (which is automatically included in the
+popular \textsf{KOMA-Script} classes) by default defines
+\verb|\ifpdftex| and \verb|\ifVTeX| with a different syntax.  If you
+use the option \verb|internalonly| then it will not define these and
+the definitions as described here will take effect. This is
+recommended and will not affect any \textsf{scrbase} package code as
+internally \textsf{scrbase} uses private versions of those
+commands prefixed with \verb|\scr@|.  However this package detects if
+the \textsf{scrbase} definitions are in effect and if so does not
+redefine them, for compatibility with existing documents. The
+\textsf{iftex} versions will still be available under the names
+\verb|\ifPDFTeX| and \verb|\ifvtex|.
+
 \end{document}





More information about the latex3-commits mailing list