My current version of parskip
is 2021-03-14
so:
\IfPackageAtLeastTF{parskip}{2018-08-24}{\PassOptionsToPackage{indent}{parskip}}{}
\usepackage{parskip}
should pass the indent
option to parskip
. But it is not the case as pointed out by the following MCE where the paragraphs aren't indented (in the real use case, I need this conditional, not for a document, but for a package). Why?
\documentclass{article}
\IfPackageAtLeastTF{parskip}{2018-08-24}{\PassOptionsToPackage{indent}{parskip}}{}
\usepackage{parskip}
\usepackage{lipsum}
\begin{document}
\lipsum[1-2]
\end{document}
\IfPackageAtLeastTF
returns false if the package isn't loaded. LaTeX cannot know the version of the package unless it has been loaded.\RequirePackage{etoolbox} \preto\@classoptionslist{indent}\makeatother
. But personally I wouldn't care. How probable is it that someone uses your new class from 2024 (which probably uses hooks and so requires a rather new LaTeX) with a parindent from before 2021?