groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multi-columns in ms, again


From: Oliver Corff
Subject: Re: Multi-columns in ms, again
Date: Mon, 20 Nov 2023 22:43:17 +0100
User-agent: Mozilla Thunderbird

Dear All,

I am not going to bother you anymore with my column journey.

.NCOL

in the mm package does the trick. It allows breaking a column, and since
this is a one-time task, I do not mind searching for the optimal
breakpoint by hand.

All my questions of April 29 answered! Thank you all for your patience!

Best regards,

Oliver.

PS:

So, in mm, a document would contain the following commands:

Text text text text
.\" and now switch to two columns
.2C
Text text text text
and so on
.\" search for best balance of columns manually
.NCOL
Some more text
.\" Switch to one-column mode
.1C 1
.TS
.\" Your wide table here
.TE
.\" And back to two-column mode.
.2C
Rest of the text


On 20/11/2023 21:04, Oliver Corff via wrote:
Another follow-up:

I just checked the one-column mode across the macro packages ms, me and
mm, and lo and behold, the mm man page tells me:

 1C [1] Begin  one-column  processing.   A 1 as an argument disables
the page break.  Use wide footnotes, small foot‐
              notes may be overprinted.

I never worked with the mm package. I'll give it a try.

Best regards,

Oliver.


On 20/11/2023 19:55, Oliver Corff wrote:
Dear All,

in April 29, I asked whether there is a possibility to resume one-column
text after a two-column text on the same page. Your answers, uni sono,
said what the the manual says: returning to one-column mode will always
finish the page and begin a new one.

The reason for this behaviour is to "[m]ake sure we don't exit if there
are still floats or footnotes left-over." (line 578 of s.tmac, groff
1.22.4)*

I am by far not familiar enough to modify the macros in s.tmac, so may I
kindly ask for some guidance?

Task: create a private 1C-style command which

    - perhaps named .1Cs ("s" as in simplified or stripped down)
    - flushes the material not yet typeset, happily ignoring any floats
of footnotes, in two balanced columns; certainly using .pg*end-col, I
assume?
    - returns to one-column mode, trusting that
    - my file is a clean text file without surprises, so need to take
care of footnotes etc.

I could start with line 527 of s.tmac, that's where the definition of
.1C starts.

But how many lines between 527 and 601 do I really have to copy into a
private macro definition file? While I understand individual definitions
(the macro names are quite transparent) I fail to make sense of how
everything works together.

Thank you very much for your occasional enlightenment,

Best regards,

Oliver.

* Please bear with me that this particular machine hasn't yet been
upgraded to groff 1.23. It will happen.


--
Dr. Oliver Corff
Wittelsbacherstr. 5A
10707 Berlin
GERMANY
Tel.: +49-30-85727260
mailto:oliver.corff@email.de


--

Dr. Oliver Corff
Wittelsbacherstr. 5A
10707 Berlin
G E R M A N Y
Tel.: +49-30-85727260
Mail:oliver.corff@email.de
--

Dr. Oliver Corff
Wittelsbacherstr. 5A
10707 Berlin
G E R M A N Y
Tel.: +49-30-85727260
Mail:oliver.corff@email.de


reply via email to

[Prev in Thread] Current Thread [Next in Thread]