Debian Codegraph @

texmf-dist/doc/latex/ximera/src/logo.dtx

raw
1 % \subsection{Logos}
2 % \DescribeMacro{\logo}{A logo for the xourse.}
3 % \begin{macrocode}
4 %<*classXourse>
5 \newcommand*{\logo}[1]{%
6 \ifx\@onlypreamble\@notprerr
7 \ClassError{xourse}{logo can only be used in the preamble}
8 {Move your logo command to the preamble}
9 \else %
10 \IfFileExists{#1}%
11 {\gdef\xourse@logo{#1}}%
12 {\ClassError{xourse}{logo file does not exist}
13 {To use logo, make sure that the referenced image file exists}}%
14 \fi%
15 }
16
17 %</classXourse>
18 % \end{macrocode}
19
20 % The xourse logo is an |og:image| in the opengraph taxonomy.
21 % \begin{macrocode}
22 %<*htXourse>
23 \Configure{@HEAD}{%
24 \HCode{<meta name="og:image" content="}%
25 \ifdefined\xourse@logo%
26 \xourse@logo%
27 \fi%
28 \HCode{" />\Hnewline}}%
29 %</htXourse>
30 % \end{macrocode}