Generalminipage, \twocolumns and \listtheorems from ntheorem

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
User avatar
Bozack
Posts: 117
Joined: Wed Feb 06, 2008 4:21 pm

minipage, \twocolumns and \listtheorems from ntheorem

Post by Bozack »

Hi,

I'm using the ntheorem package to make theorems and the like, and I use the \listtheorems command in the end of my document to make a list of the theorems I've made through my book (article class). But I want the list of theorems to be in two columns (without the section-header being it).

This rules out the normal \twocolumn command, which makes a pagebreak before going into two columns. Then I tried to use a minipage environment like the following:

Code: Select all

\section{Oversigt over definitioner og sætninger}
\begin{minipage}{1.0\textwidth}
	\twocolumn
	\listtheorems{st,defi} }}
	\onecolumn
\end{minipage}
But the \listtheorems commands doesn't seem to understand how to make line-breaks when inside a minipage - which ends up in a look like the following:

Image

How do I make the list of theorems into two columns without this behavior? - I'd guess that I should get rid of the minipage at first (it would end up in something very weird if I got to a too big amount of theorems and there would be need of several pages for the list?)...

I've attached the whole book with this post, if anyone would like to try compiling for themselves.
Attachments
main.tex
(57.68 KiB) Downloaded 330 times
OS, LaTeX-system, editor: Arch Linux 64bit, TeXlive, Kile | Windows 10 Professional 64bit, MikTeX 4.9, TeXnicCenter 2.02 64bit

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

minipage, \twocolumns and \listtheorems from ntheorem

Post by localghost »

Try the multicol package. An approach could be to put the list into a multicols environment with two (or more) columns.

Code: Select all

\section{Oversigt over definitioner og sætninger}
\begin{multicols}{2}
   \listtheorems{st,defi}
\end{multicols}
Since I didn't test that, I can't say if it's working or not. The main cause of your problem is that the minipage environment doesn't allow any page break.


Best regards
Thorsten¹
User avatar
Bozack
Posts: 117
Joined: Wed Feb 06, 2008 4:21 pm

minipage, \twocolumns and \listtheorems from ntheorem

Post by Bozack »

localghost wrote:Try the multicol package.
Worked like a charm! Thanks :D
OS, LaTeX-system, editor: Arch Linux 64bit, TeXlive, Kile | Windows 10 Professional 64bit, MikTeX 4.9, TeXnicCenter 2.02 64bit
Post Reply