TransWikia.com

How to keep an enumerate item from splitting OR define a minipage inside newcommand

TeX - LaTeX Asked by Feva on January 30, 2021

I’d like to keep my enumerate items from splitting between pages, and I haven’t found a very practical solution yet. I think the one that’s closest is defining a minipage for each item, but it’s kinda long when I have a document with lots of items.

Is there any other, more practical ways to keep the item from splitting, or to define a minipage inside a new command, so that I can switch item with something like newitem and it does something like

begin{minipage}

item here would be the text

end{minipage}

Thanks!

Edit: I’ve found somewhat of a way to do it, like this:

newcommand{ej}[1]{

item begin{minipage}{textwidth}
{#1}

end{minipage}
}

So right now it works but I’d like to not have to place the text like ej{here goes the text}. Maybe I’m a bit too picky but it’d be great if someone knows a better way 🙂

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