Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

clubpenalty in multicols

6 views
Skip to first unread message

Steffen Wolfrum

unread,
Aug 22, 2003, 1:40:01 PM8/22/03
to
While my main text has \clubpenalty=5000
I'd like to have in my appendix \clubpenalty=10000.

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

Donald Arseneau

unread,
Aug 22, 2003, 7:02:18 PM8/22/03
to
xmai...@estfiles.de (Steffen Wolfrum) writes:

> \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

Steffen Wolfrum

unread,
Aug 22, 2003, 7:01:40 PM8/22/03
to
> > \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.


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

Donald Arseneau

unread,
Aug 22, 2003, 8:31:04 PM8/22/03
to
xmai...@estfiles.de (Steffen Wolfrum) writes:

> > > \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

0 new messages