summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/koma-script/source/scrlogo.dtx
blob: c2c05f170520059ab952725777c2199b87313122 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
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: