As the appendix is set in two columns (using mulitcols)
I thought it should work with:
\let\realLaTeXmulticols\multicols
\def\myhackedmulticols{\realLaTeXmulticols\clubpenalty=10000
\ignorespaces}
\let\multicols\myhackedmulticols
set in the preamble of my document.
But it doesn't. Package Multicol Error: Too many columns.
In fact it is still \begin{multicols}{2}[\section{Cited Literature}]
So what should be the right way?
Thank you for any help,
Steffen Wolfrum
> \def\myhackedmulticols{\realLaTeXmulticols\clubpenalty=10000
>
> But it doesn't. Package Multicol Error: Too many columns.
Well Duhhh. multicols needs to read the number of columns.
You provide the value "\clubpenalty". 5000 columns is a tad
much. If you make a wrapper, you can (a) put the original
command last, or (b) gather all (required and optional)
arguments and pass them to the original.
Disallowing widows/clubs will make multicols' balanced columns
very very ugly.
Donald Arseneau as...@triumf.ca
Sorry? What do you mean by "make a wrapper"?
As I am not very familiar in this syntax may I ask you to
please write an example, for:
"Normal" text - as definied in preamble: clubpenalty=500
multicols{2} environment at the document's end: clubpenalty=10000
Thank you very, very much!
Steffen Wolfrum
> > > \def\myhackedmulticols{\realLaTeXmulticols\clubpenalty=10000
>
> Sorry? What do you mean by "make a wrapper"?
This sort of definition, where you "wrap" a new definition around
an existing previous definition.
> As I am not very familiar in this syntax may I ask you to
> please write an example,
\def\myhackedmulticols{\clubpenalty=10000\realLaTeXmulticols}
following one of my two suggestions. The other method is left as
an excercise.
Donald Arseneau as...@triumf.ca