diff options
Diffstat (limited to 'macros/latex/contrib/koma-script/scrlogo.dtx')
-rw-r--r-- | macros/latex/contrib/koma-script/scrlogo.dtx | 138 |
1 files changed, 138 insertions, 0 deletions
diff --git a/macros/latex/contrib/koma-script/scrlogo.dtx b/macros/latex/contrib/koma-script/scrlogo.dtx new file mode 100644 index 0000000000..c2c05f1705 --- /dev/null +++ b/macros/latex/contrib/koma-script/scrlogo.dtx @@ -0,0 +1,138 @@ +% \iffalse^^A meta-comment +% ====================================================================== +% scrlogo.dtx +% Copyright (c) Markus Kohm, 2002-2022 +% +% This work may be distributed and/or modified under the conditions of +% the LaTeX Project Public License, version 1.3c of the license. +% The latest version of this license is in +% http://www.latex-project.org/lppl.txt +% and version 1.3c or later is part of all distributions of LaTeX +% version 2005/12/01 or later and of this work. +% +% This work has the LPPL maintenance status "author-maintained". +% +% The Current Maintainer and author of this work is Markus Kohm. +% +% This work consists of the file `scrlogo.dtx' at least. +% ====================================================================== +% +%%% From File: $Id: scrlogo.dtx 3688 2022-02-10 08:26:37Z kohm $ +%<*dtx> +\ifx\ProvidesFile\undefined\def\ProvidesFile#1[#2]{}\fi +\begingroup + \def\filedate$#1: #2-#3-#4 #5${\gdef\filedate{#2/#3/#4}} + \filedate$Date: 2022-02-10 09:26:37 +0100 (Do, 10. Feb 2022) $ + \def\filerevision$#1: #2 ${\gdef\filerevision{r#2}} + \filerevision$Revision: 2631 $ + \edef\reserved@a{% + \noexpand\endgroup + \noexpand\ProvidesFile{scrlogo.dtx}% + [\filedate\space\filerevision\space + KOMA-Script package source + }% +\reserved@a +%</dtx> +%<*dtx|package> +%<package>\ProvidesPackage{scrlogo}[% +%!KOMAScriptVersion +%<package> package + (logo)] +%</dtx|package> +%<*dtx> +\ifx\documentclass\undefined + \ifx\ifTopLevel\undefined + \input scrdocstrip.tex + \@@input scrkernel-version.dtx + \@@input scrstrip.inc + \KOMAdefVariable{COPYRIGHTFROM}{2002} + \generate{\usepreamble\defaultpreamble + \file{scrlogo.sty}{\from{scrlogo.dtx}{package,logo}}% + } + \@@input scrstrop.inc + \fi +\else + \let\endbatchfile\relax +\fi +\endbatchfile +% Make it possible to load scrlogo.dtx directly. +\csname nodriver\endcsname +\expandafter\let\csname endnodriver\endcsname\relax +\documentclass[USenglish]{koma-script-source-doc} +\usepackage{babel} +\setcounter{StandardModuleDepth}{2} +\begin{document} + \DocInput{scrlogo.dtx} +\end{document} +\endnodriver +%</dtx> +% \fi^^A meta-comment +% +% \changes{v3.36}{2022/02/02}{switch over from \cls*{scrdoc} to +% \cls*{koma-script-source-doc}} +% \changes{v3.36}{2022/02/02}{whole implementation documentation in English} +% +% \GetFileInfo{scrlogo.dtx} +% \title{\href{https://komascript.de}{\KOMAScript} \partname\ \file{\filename}} +% \author{\href{mailto:komascript@gmx.info}{Markus Kohm}} +% \date{Revision \fileversion{} of \filedate} +% \maketitle +% \begin{abstract} +% This part of \KOMAScript{} provides not only the \cs{KOMAScript} command +% for all \KOMAScript{} classes and packages, but also a standalone package +% to provide the logo. +% \end{abstract} +% \tableofcontents +% +% \section{User Manual} +% +% You can find the user manual of \pkg*{scrlogo} in the \KOMAScript{} manual, +% either the German \file{scrguide} or the English \file{scrguien}. +% +% \MaybeStop{\PrintIndex} +% +% \section{Implementation of the \KOMAScript{} Logo} +% +% \begin{command}{\KOMAScript} +% \changes{v3.36}{2022/02/02}{respect \pkg{hyperref}} +% \changes{v3.36}{2022/02/02}{other packages and classes load \pkg*{scrlogo} +% instead of defining the command itself} +% From version~3.36, the letter spacing of the upper case letters is not used +% in PDF context of package \pkg{hyperref}. +% \begin{macrocode} +%<*logo> +%<forcedefine>\IfFileExists{scrlogo.sty}{% +%<!package>\RequirePackage{scrlogo} +%<forcedefine>}{}% +%<*(package|forcedefine)&logo> +\@ifundefined{KOMAScript}{% + \DeclareRobustCommand*{\KOMAScript}{\textsf{K\kern.05em O\kern.05em% + M\kern.05em A\kern.1em-\kern.1em Script}}% + \@ifundefined{pdfstringdefPreHook}{% + \def + }{% + \g@addto@macro + }% + \pdfstringdefPreHook{% + \def\KOMAScript{KOMA-Script}% + \expandafter\def\csname KOMAScript \endcsname{KOMA-Script}% + }% +}{} +%</(package|forcedefine)&logo> +%</logo> +% \end{macrocode} +% \end{command} +% +% \Finale +% \PrintChanges +% +\endinput +% Local Variables: +% mode: doctex +% ispell-local-dictionary: "en_US" +% eval: (flyspell-mode 1) +% TeX-master: t +% TeX-engine: luatex-dev +% eval: (setcar (or (cl-member "Index" (setq-local TeX-command-list (copy-alist TeX-command-list)) :key #'car :test #'string-equal) (setq-local TeX-command-list (cons nil TeX-command-list))) '("Index" "mkindex %s" TeX-run-index nil t :help "makeindex for dtx")) +% End: + |