[NTG-context] starttyping
Taco Hoekwater
taco at elvenkind.com
Sat Feb 4 15:37:41 CET 2006
Hans van der Meer wrote:
> Found something annoying with \starttyping...\stoptyping.
>
> I wanted side by side two framed texts in verbatim, one of them one
> line longer than the other.
> Of course they should align there lines.
>
> To accomplish this I put a blank line at the end of the shortest text.
> Alas, \starttyping does not honor a blank line at the end, although
> it does honors blank lines inbetween.
> I am inclined to call this a bug.
I agree, but only when \obeyemptylines is in effect (i have documents
that depend on that auto-dropping of trailing empty lines in other
cases). So my patch proposal is:
\def\presetemptylastverbatimline%
{\ifcase \verbatimstatus \or \or \or \doflushverbatimline
\else \kern \zeropoint \doverbatimnobreak \doflushverbatimline \fi
%TH the next \kern is new
\kern \zeropoint }
\def\obeyemptylines%
{\let\donextemptyverbatimline\doemptyverbatimline
%TH the next reassignment is new
\let\presetlastverbatimline\presetemptylastverbatimline }
You have to add an \obeyemptylines command in your document(s), of
course.
Cheers, Taco
More information about the ntg-context
mailing list