Article View: comp.text.tex
Article #2557macro question (wizards welcome)
From: Jeff Rummel
Date: Thu, 20 Aug 1992 13:58
Date: Thu, 20 Aug 1992 13:58
21 lines
1332 bytes
1332 bytes
I'm using some macros to typeset c++ listings (cnoweb). When it encounters
comments it runs in regular tex mode and in verbatim mode for the code
itself. What I would like to do is encourage the page breaks to occur
between blocks, not inside them (if possible). I've done this before with
outlines by putting glue and goodbreaks in strategic places. I wonder if
the same solution could be used here.
My thought was to make the brace { an active character that would insert
the goodbreak, etc, but in many places, the { occurs at the end of the
line:
if (something) {
<body to keep with the if>
and I would want the goodbreak at the beginning:
รฃgoodbreak
if <etc>...
I've seen unboxing but am not sure how/if it would work. Any
pointers/suggestions would be most appreciated. If this is infeasible,
I'd like to know that, too, so I can stop thinking about it.
--jeff.
Technical Details
Message-ID:
<7851195@MVB.SAIC.COM>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!news.acns.nwu.edu!network.ucsd.edu!mvb.saic.com!info-texShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!news.acns.nwu.edu!network.ucsd.edu!mvb.saic.com!info-tex From: Jeff Rummel <RUMMEL%DUKEFSB.BITNET@SHSU.edu> Newsgroups: comp.text.tex Subject: macro question (wizards welcome) Message-ID: <7851195@MVB.SAIC.COM> Date: Thu, 20 Aug 92 08:58 EST Organization: Info-Tex<==>Comp.Text.Tex Gateway X-Gateway-Source-Info: Mailing List Lines: 21