* typing buffers doesn't obey spaces
@ 2003-04-02 5:55 Zeljko Vrba
2003-04-08 11:28 ` Hans Hagen
0 siblings, 1 reply; 3+ messages in thread
From: Zeljko Vrba @ 2003-04-02 5:55 UTC (permalink / raw)
This is related to Hans' suggestion for typing code next to
text in tabulate environment. The following fragment has a
slight problem:
\definebuffer[CodeSnippet]
\startCodeSnippet
\starttyping
first line
second line
\stoptyping
\stopCodeSnippet
When I do a \getbuffer[CodeSnippet] inside tabulate, the empty
line is suppressed :( How to fix it (empty lines really do improve
readability of the source)?
BTW, why it is not possible to have \starttyping/\stoptyping inside
'p' column in tabulate?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: typing buffers doesn't obey spaces
2003-04-02 5:55 typing buffers doesn't obey spaces Zeljko Vrba
@ 2003-04-08 11:28 ` Hans Hagen
2003-04-16 8:03 ` Patrick Gundlach
0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2003-04-08 11:28 UTC (permalink / raw)
At 07:55 02/04/2003 +0200, you wrote:
>This is related to Hans' suggestion for typing code next to
>text in tabulate environment. The following fragment has a
>slight problem:
>
>\definebuffer[CodeSnippet]
>\startCodeSnippet
>\starttyping
>first line
>
>second line
>\stoptyping
>\stopCodeSnippet
>
>When I do a \getbuffer[CodeSnippet] inside tabulate, the empty
>line is suppressed :( How to fix it (empty lines really do improve
>readability of the source)?
dunno, just remove \start-stoptyping and use \typebuffer[CodeSnippet] instead
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | pragma@wxs.nl
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
information: http://www.pragma-ade.com/roadmap.pdf
documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: typing buffers doesn't obey spaces
2003-04-08 11:28 ` Hans Hagen
@ 2003-04-16 8:03 ` Patrick Gundlach
0 siblings, 0 replies; 3+ messages in thread
From: Patrick Gundlach @ 2003-04-16 8:03 UTC (permalink / raw)
Hans Hagen <pragma@wxs.nl> writes:
Hi,
>>This is related to Hans' suggestion for typing code next to
>>text in tabulate environment. The following fragment has a
>>slight problem:
[...]
>>When I do a \getbuffer[CodeSnippet] inside tabulate, the empty
>>line is suppressed :( How to fix it (empty lines really do improve
>>readability of the source)?
>
> dunno, just remove \start-stoptyping and use \typebuffer[CodeSnippet] instead
does not work here, the empty line is ignored:
\definebuffer[CodeSnippet]
\startCodeSnippet
first line
second line
\stopCodeSnippet
\starttext
\starttabulate[|p|r|]
\NC \typebuffer[CodeSnippet] \NC none \NC\NR
\NC hello \NC hello \NC\NR
\stoptabulate
\stoptext
Patrick
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-04-16 8:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-02 5:55 typing buffers doesn't obey spaces Zeljko Vrba
2003-04-08 11:28 ` Hans Hagen
2003-04-16 8:03 ` Patrick Gundlach
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).