Is there a preferred way to change \baselinestretch
using the xparse package included in TeX Live 2012? (I believe this is xparse version 3570, dated 2012/04/23.)
If I run latex -output-format pdf document.tex
on Mac OS X 10.7.4 to create a PDF from this document—
\documentclass{minimal}
\usepackage{xparse}
\RenewDocumentCommand \baselinestretch {} {1}
\begin{document}
hello, world
\end{document}
—pdfTeX never exits. Interrupting pdfTeX produces this output, which for the most part I do not understand—
! Interruption.
\size@update ...relax \baselineskip \f@linespread
\baselineskip \normalbasel...
l.4 \begin{document}
If I replace \RenewDocumentCommand \baselinestretch {} {1}
with \renewcommand{\baselinestretch}{1}
to obtain—
\documentclass{minimal}
\usepackage{xparse}
\renewcommand{\baselinestretch}{1}
\begin{document}
hello, world
\end{document}
—then pdfTeX finishes and a PDF is produced. Also, using \RenewDocumentCommand
in xparse version 2219 (2011/04/08) seems to behave as expected.
(I understand that \baselinestretch
is 1 by default; I am using 1 in the examples for the sake of simplicity.)