TransWikia.com

Clearing the definition of an environment

TeX - LaTeX Asked by wilk on December 24, 2020

I need to render the minipage environment ineffective (the reason is that I need to sometimes compile latex documents for a visually impaired reader with a huge point size, not compatible with the general layout of the document).

renewenvironment{minipage}[1]{relax}{relax}

fails because of the optional arguments sometimes passed to begin{minipage}

I guess I can use renewcommand on minipage and endminipage to adapt their definitions from latex.ltx but I was wondering if there isn’t a more straightforward way to do it.

One Answer

Nowadays making macros with multiple optional args is super easy using the xparse package (the contents of which will be added to the latex kernel in a near future)

Minipage takes three optional and one mandatory. So if you just want to remove the effect of Minipage leaving the contents intact use

 RenewDocumentEnvironment{minipage}{ o o o m }{}{}

Correct answer by daleif on December 24, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP