Tag Info

New answers tagged

3

With xparse it is straight-forward to condition between starred versions and optional arguments. As such, the following redefinition of \section automatically inserts the appropriate starred version in the ToC: \documentclass{article} \usepackage{xparse} \let\oldsection\section \RenewDocumentCommand{\section}{s o m}{% \IfBooleanTF{#1} {% \section* ...



Top 50 recent answers are included