% variables.sty % Variables for universal LaTeX test documents \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{variables}[2026/10/30 v1.0 Test document variables] \RequirePackage{iftex} \RequirePackage{metalogo} % TeX engine \ifPDFTeX \def\MyEngine{pdf\LaTeX{}} \else\ifXeTeX \def\MyEngine{\XeLaTeX{}} \else\ifLuaTeX \def\MyEngine{\LuaLaTeX{}} \else \def\MyEngine{unknown} \fi\fi\fi \makeatletter % Language package \newcommand*{\MyLanguagePackage}{% \@ifpackageloaded{polyglossia}{Polyglossia}{% \@ifpackageloaded{babel}{Babel}{none}% }% } % Language package version \newcommand*{\MyLanguagePackageVersion}{% \@ifpackageloaded{polyglossia}{% \csname ver@polyglossia.sty\endcsname }{% \@ifpackageloaded{babel}{% \csname ver@babel.sty\endcsname }{not loaded}% }% } % Document class. LaTeX has no general public command returning its name, % so the classes used by the universal test are checked explicitly. \newcommand*{\MyDocumentClass}{% \@ifclassloaded{article}{article}{% \@ifclassloaded{report}{report}{% \@ifclassloaded{book}{book}{% \@ifclassloaded{scrartcl}{scrartcl}{% \@ifclassloaded{scrreprt}{scrreprt}{% \@ifclassloaded{scrbook}{scrbook}{% \@ifclassloaded{memoir}{memoir}{unknown}% }}}}}}% } % Options passed to \documentclass. \newcommand*{\MyDocumentClassOptions}{% \ifx\@classoptionslist\@empty none% \else \@classoptionslist \fi } \makeatother \newcommand{\InfoRow}[2]{% \noindent \parbox[t]{0.33\textwidth}{\raggedright #1\strut}% \hfill \parbox[t]{0.63\textwidth}{\raggedright #2\strut}% \par\smallskip } \endinput