summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/koma-script/scrkernel-basics.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/koma-script/scrkernel-basics.dtx')
-rw-r--r--Master/texmf-dist/source/latex/koma-script/scrkernel-basics.dtx77
1 files changed, 61 insertions, 16 deletions
diff --git a/Master/texmf-dist/source/latex/koma-script/scrkernel-basics.dtx b/Master/texmf-dist/source/latex/koma-script/scrkernel-basics.dtx
index c3190e3e9fe..9eb08be0387 100644
--- a/Master/texmf-dist/source/latex/koma-script/scrkernel-basics.dtx
+++ b/Master/texmf-dist/source/latex/koma-script/scrkernel-basics.dtx
@@ -1,8 +1,8 @@
-% \CheckSum{3641}
+% \CheckSum{3675}
% \iffalse meta-comment
% ======================================================================
% scrkernel-basics.dtx
-% Copyright (c) Markus Kohm, 2002-2016
+% Copyright (c) Markus Kohm, 2002-2017
%
% This file is part of the LaTeX2e KOMA-Script bundle.
%
@@ -20,7 +20,7 @@
% This work consists of all files listed in manifest.txt.
% ----------------------------------------------------------------------
% scrkernel-basics.dtx
-% Copyright (c) Markus Kohm, 2002-2016
+% Copyright (c) Markus Kohm, 2002-2017
%
% Dieses Werk darf nach den Bedingungen der LaTeX Project Public Lizenz,
% Version 1.3c, verteilt und/oder veraendert werden.
@@ -55,15 +55,17 @@
% Right brace \} Tilde \~}
%
% \iffalse
-%<prepare>%%% From File: $Id: scrkernel-basics.dtx 2601 2017-02-23 16:26:09Z kohm $ (prepare)
-%<option>%%% From File: $Id: scrkernel-basics.dtx 2601 2017-02-23 16:26:09Z kohm $ (option)
-%<body>%%% From File: $Id: scrkernel-basics.dtx 2601 2017-02-23 16:26:09Z kohm $ (body)
+%%% From File: $Id: scrkernel-basics.dtx 2640 2017-05-08 09:36:55Z kohm $
+%<prepare>%%% (run: prepare)
+%<option>%%% (run: option)
+%<body>%%% (run: body)
+%<load>%%% (run: load)
%<package&prepare>\NeedsTeXFormat{LaTeX2e}[1995/06/01]
-%<*driver>
+%<*dtx>
\ifx\ProvidesFile\undefined\def\ProvidesFile#1[#2]{}\fi
\begingroup
\def\filedate$#1: #2-#3-#4 #5${\def\filedate{#2/#3/#4}}
- \filedate$Date: 2017-02-23 17:26:09 +0100 (Thu, 23 Feb 2017) $
+ \filedate$Date: 2017-05-08 11:36:55 +0200 (Mon, 08 May 2017) $
\def\filerevision$#1: #2 ${\def\filerevision{r#2}}
\filerevision$Revision: 1638 $
\xdef\fileinfo{\filedate\space\filerevision\space}
@@ -73,18 +75,22 @@
[\filedate\space\filerevision\space
}
\reserved@a
-%</driver>
-%<*driver|(package&prepare)>
+%</dtx>
+%<*dtx|(package&prepare)>
%<package>\ProvidesPackage{%
%<package&base> scrbase%
%<package&koma> scrkbase%
%<package>}[%
%!KOMAScriptVersion
- package (%
+ package
+%<*dtx>
+ source
+%</dtx>
+ (%
%<base> KOMA-Script-independent
%<koma> KOMA-Script-dependent
- basics and keyval usage)]
-%</driver|(package&prepare)>
+ basics and keyval usage)]
+%</dtx|(package&prepare)>
%<*dtx>
\ifx\documentclass\undefined
\input scrdocstrip.tex
@@ -108,8 +114,6 @@
\let\endbatchfile\relax
\fi
\endbatchfile
-%</dtx>
-%<*driver>
\documentclass{scrdoc}
\usepackage[english,ngerman]{babel}
\usepackage[latin1]{inputenc}
@@ -127,7 +131,7 @@
\tableofcontents
\DocInput{\filename}
\end{document}
-%</driver>
+%</dtx>
% \fi
%
% \selectlanguage{ngerman}
@@ -2645,6 +2649,47 @@
% \end{macrocode}
% \end{macro}
%
+% \begin{macro}{\IfRTL}
+% \changes{v3.24}{2017/05/04}{neu}
+% Die Anweisung testet, ob wir uns gerade im Von-Rechts-Nach-Links-Modus von
+% Paketen wie \textsf{bidi} befinden. Ist das der Fall, wird das erste
+% Argument ausgeführt, sonst das zweite.
+% \begin{macrocode}
+%<*base>
+\newcommand*{\IfRTL}{%
+ \scr@ifundefinedorrelax{if@RTL}{\@secondoftwo}{%
+ \expandafter\ifx\csname if@RTL\expandafter\endcsname
+ \csname iftrue\endcsname
+ \expandafter\@firstoftwo
+ \else
+ \expandafter\@secondoftwo
+ \fi
+ }
+}
+%</base>
+% \end{macrocode}
+% \end{macro}^^A \IfRTL
+% \begin{macro}{\IfLTR}
+% \changes{v3.24}{2017/05/04}{neu}
+% Die Anweisung testet, ob wir uns gerade nicht im
+% Von-Rechts-Nach-Links-Modus von Paketen wie \textsf{bidi} befinden. Ist
+% das der Fall, wird das erste Argument ausgeführt, sonst das zweite.
+% \begin{macrocode}
+%<*base>
+\newcommand*{\IfLTR}{%
+ \scr@ifundefinedorrelax{if@RTL}{\@firstoftwo}{%
+ \expandafter\ifx\csname if@RTL\expandafter\endcsname
+ \csname iftrue\endcsname
+ \expandafter\@secondoftwo
+ \else
+ \expandafter\@firstoftwo
+ \fi
+ }
+}
+%</base>
+% \end{macrocode}
+% \end{macro}^^A \IfLTR
+%
% \begin{macro}{\PackageInfoNoLine}
% \changes{v2.97d}{2007/10/03}{neu}^^A
% Arbeitet wie \cs{PackageInfo} aber ohne Ausgabe der Zeilennummer.