Needing help of explainning the meaning of the following code for me, the code is in the file "PostDocRep.cls" that begins with
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesClass{PostDocRep}
[2009/09/23 v0.1e PostDocRep
document class]
........
\def\PDR@getfileinfo#1 #2 #3\relax#4\relax{%
\def\PDRfiledate{#1}%
\def\PDRfileversion{#2}%
\def\PDRfileinfo{#3}}%
\expandafter\ifx\csname ver@PostDocRep.cls\endcsname\relax
\edef\reserved@a{\csname ver@ctextemp_PostDocRep.cls\endcsname}
\else
\edef\reserved@a{\csname ver@PostDocRep.cls\endcsname}
\fi
\expandafter\PDR@getfileinfo\reserved@a\relax? ? \relax\relax
I do not know what is the result of statement
\expandafter\ifx\csname ver@PostDocRep.cls\endcsname\relax
if it ture or false and which branch it selects?
\edef\reserved@a{\csname ver@ctextemp_PostDocRep.cls\endcsname}
or
\edef\reserved@a{\csname ver@PostDocRep.cls\endcsname}
Moreover, I have no idea of how the statement
\expandafter\PDR@getfileinfo\reserved@a\relax? ? \relax\relax
execute? why there are so many \relax,
ver@ctextemp_PostDocRep.clswhich is presumably defined somewhere in code you have not shown. – David Carlisle Apr 09 '22 at 22:33\expandafter\ifx\csname ver@PostDocRep.cls\endcsname\relaxshould never be true as it follows\ProvidesClass{PostDocRep}that defines that command so it is hard to guess why this test is there without seeing the full context – David Carlisle Apr 09 '22 at 22:36