summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/koma-script/doc/scrguide.cls
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/koma-script/doc/scrguide.cls')
-rw-r--r--Master/texmf-dist/source/latex/koma-script/doc/scrguide.cls96
1 files changed, 69 insertions, 27 deletions
diff --git a/Master/texmf-dist/source/latex/koma-script/doc/scrguide.cls b/Master/texmf-dist/source/latex/koma-script/doc/scrguide.cls
index 9eb3bf23d8a..a8d5e63c2a7 100644
--- a/Master/texmf-dist/source/latex/koma-script/doc/scrguide.cls
+++ b/Master/texmf-dist/source/latex/koma-script/doc/scrguide.cls
@@ -1,6 +1,6 @@
% ======================================================================
% scrguide.cls
-% Copyright (c) Markus Kohm, 2005-2020
+% Copyright (c) Markus Kohm, 2005-2021
%
% This file is part of the LaTeX2e KOMA-Script bundle.
%
@@ -18,7 +18,7 @@
% This work consists of all files listed in manifest.txt.
% ----------------------------------------------------------------------
% scrguide.cls
-% Copyright (c) Markus Kohm, 2005-2020
+% Copyright (c) Markus Kohm, 2005-2021
%
% Dieses Werk darf nach den Bedingungen der LaTeX Project Public Lizenz,
% Version 1.3c, verteilt und/oder veraendert werden.
@@ -38,7 +38,7 @@
% \section{Identification}
%
% \begin{macrocode}
-\ProvidesClass{scrguide}[2020/03/17 v1.23 internal KOMA-Script guide class]
+\ProvidesClass{scrguide}[2021/02/11 v1.25 internal KOMA-Script guide class]
% \end{macrocode}
%
%
@@ -128,8 +128,25 @@
\expandafter\RequirePackage\expandafter[\languages]{babel}%
\AtBeginDocument{%
\typeout{TRACE: Current language is `\languagename`.}}%
-\RequirePackage[fixlanguage]{babelbib}
-\expandafter\selectbiblanguage\expandafter{\uselanguage}
+% \end{macrocode}
+% In future we should use biblatex instead of babelbib, but currently some
+% things are still missing:
+% \begin{itemize}
+% \item prefix \texttt{CTAN://},
+% \item line breaks after the author (but not full \texttt{openbib} style like
+% \texttt{block=nbpar}),
+% \item removing language tag \texttt{ngerman} from output.
+% \end{itemize}
+% So currently we still use babelbib.
+% \begin{macrocode}
+\newif\ifusebabelbib\usebabelbibtrue % Should be deactivated soon
+\ifusebabelbib
+ \RequirePackage[fixlanguage]{babelbib}
+ \newcommand*{\printbibliography}[1][]{\bibliography{\jobname}}
+\else
+ \RequirePackage[backend=bibtex,style=alphabetic,block=ragged]{biblatex}
+ \DeclareFieldFormat{url}{\url{#1}}
+\fi
\RequirePackage{afterpage}
\RequirePackage{makeidx}
\RequirePackage{scrdate}
@@ -593,12 +610,15 @@
% \end{macro}
%
% \begin{macro}{\File}
+% \changes{v1.25}{2021/02/11}{usage of \cs{texorpdfstring}}
% \begin{macro}{\Class}
+% \changes{v1.25}{2021/02/11}{usage of \cs{texorpdfstring}}
% \begin{macro}{\Package}
+% \changes{v1.25}{2021/02/11}{usage of \cs{texorpdfstring}}
% Some markup macros for files with special meanings.
-\DeclareRobustCommand*{\File}[1]{\mbox{\texttt{#1}}}
-\DeclareRobustCommand*{\Class}[1]{\mbox{\textsfrm{#1}}}
-\DeclareRobustCommand*{\Package}[1]{\mbox{\textsfrm{#1}}}
+\DeclareRobustCommand*{\File}[1]{\texorpdfstring{\mbox{\texttt{#1}}}{#1}}
+\DeclareRobustCommand*{\Class}[1]{\texorpdfstring{\mbox{\textsfrm{#1}}}{#1}}
+\DeclareRobustCommand*{\Package}[1]{\texorpdfstring{\mbox{\textsfrm{#1}}}{#1}}
% \end{macro}
% \end{macro}
% \end{macro}
@@ -645,12 +665,14 @@
% \end{macro}
%
% \begin{macro}{\Macro}
+% \changes{v1.25}{2021/02/11}{usage of \cs{texorpdfstring}}
% \begin{macro}{\Option}
% \begin{macro}{\KOption}
% \begin{macro}{\OptionValue}
% \begin{macro}{\Environment}
% \begin{macro}{\Counter}
% \begin{macro}{\Length}
+% \changes{v1.25}{2021/02/11}{usage of \cs{texorpdfstring}}
% \begin{macro}{\PLength}
% \changes{v1.17}{2019/10/24}{\cs{setplength} verschoben}%^^A
% \begin{macro}{\FloatStyle}
@@ -704,7 +726,9 @@
\kernel@ifstar {\@DescPageRef*}{\@DescPageRef\space}%
}
\newcommand*{\@DescPageRef}[2]{\expandafter\autopageref#1{\label@desc@prefix#2}}
-\DeclareSpecialMarkup{\Macro}{\mbox{\texttt{\char`\\#1}}}{%
+\DeclareSpecialMarkup{\Macro}{%
+ \texorpdfstring{\mbox{\texttt{\char`\\#1}}}{\textbackslash#1}%
+}{%
\par
\settowidth{\leftskip}{\textMacro{#1}}% indent from left
\hskip-\leftskip
@@ -980,7 +1004,9 @@
\label{\label@desc@prefix\label@base.length.#2#1}%
\endgroup
}
-\DeclareSpecialMarkup{\Length}{\mbox{\texttt{\char`\\#1}}}{%
+\DeclareSpecialMarkup{\Length}{%
+ \texorpdfstring{\mbox{\texttt{\char`\\#1}}}{\textbackslash#1}%
+}{%
\par
\leftskip\z@
\BeginIndex{Length}{#1}% index entry
@@ -1222,9 +1248,18 @@
% \end{macro}
%
% \begin{macro}{\eTeX}
-% This may already be defined.
+% \changes{v1.25}{2021/02/16}{workaround for (temporary) changes in
+% \textsf{hyperref}}
+% This may already be defined.
% \begin{macrocode}
\providecommand*{\eTeX}{\ensuremath{\varepsilon}-\TeX}
+\AtBeginDocument{%
+ \@ifundefined{textepsilon}{%
+ \@ifundefined{pdfstringdef}{}{%
+ \pdfstringdef{\textepsilon}{\ifHy@unicode\83\265\else e\fi}%
+ }%%
+ }{}%
+}
\providecommand*{\NTS}{%
\leavevmode\hbox{$\cal N\kern-0.35em\lower0.5ex\hbox{$\cal T$}%
\kern-0.2emS$}}
@@ -2300,26 +2335,33 @@ KOMAScript \endcsname
%
% Use of a preamble and sime other usefull changes.
% \begin{macrocode}
-\AtBeginDocument{%
- \setbibpreamble{\GuideBibPreamble\bigskip}%
- \selectbiblanguage{\languagename}%
- \bibliographystyle{babalpha-fl}%
- \renewcommand*{\@openbib@code}{%
- \setlength{\parsep}{0pt}%
- \renewcommand*{\btxauthorcolon}[1]{:\par\nobreak}%
- \renewcommand*{\btxurlfont}{\par\nobreak\url}%
- \raggedright
- }%
-}
+\ifusebabelbib
+ \AtBeginDocument{%
+ \setbibpreamble{\GuideBibPreamble\bigskip}%
+ \bibliographystyle{babalpha-fl}%
+ \renewcommand*{\@openbib@code}{%
+ \setlength{\parsep}{0pt}%
+ \renewcommand*{\btxauthorcolon}[1]{:\par\nobreak}%
+ \renewcommand*{\btxurlfont}{\par\nobreak\url}%
+ \raggedright
+ }%
+ }
% \end{macrocode}
%
% The generated argument of thebibliography is to short:
% \begin{macrocode}
-\newcommand*{\OrigTheBibliography}{}
-\let\OrigTheBibliography\thebibliography
-\renewcommand*{\thebibliography}[1]{%
- \OrigTheBibliography{XXXX99}%
-}
+ \newcommand*{\OrigTheBibliography}{}
+ \let\OrigTheBibliography\thebibliography
+ \renewcommand*{\thebibliography}[1]{%
+ \selectbiblanguage{\languagename}%
+ \OrigTheBibliography{XXXX99}%
+ }
+\else
+ \AtBeginDocument{%
+ \defbibnote{bibpreamble}{\GuideBibPreamble}%
+ }%
+ \addbibresource{guide.bib}
+\fi
% \end{macrocode}
%
%