<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">% \subsection{Logos}
% \DescribeMacro{\logo}{A logo for the xourse.}
%    \begin{macrocode}
%&lt;*classXourse&gt;
\newcommand*{\logo}[1]{%
  \ifx\@onlypreamble\@notprerr
    \ClassError{xourse}{logo can only be used in the preamble}
      {Move your logo command to the preamble}
  \else %
    \IfFileExists{#1}%
      {\gdef\xourse@logo{#1}}%
      {\ClassError{xourse}{logo file does not exist}
        {To use logo, make sure that the referenced image file exists}}%
  \fi%
}

%&lt;/classXourse&gt;
%    \end{macrocode}

% The xourse logo is an |og:image| in the opengraph taxonomy.
%    \begin{macrocode}
%&lt;*htXourse&gt;
\Configure{@HEAD}{%
  \HCode{&lt;meta name="og:image" content="}%
\ifdefined\xourse@logo%
  \xourse@logo%
\fi%
\HCode{" /&gt;\Hnewline}}%
%&lt;/htXourse&gt;
%    \end{macrocode}
</pre></body></html>