ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \typebuffer with typing style
@ 2009-06-08 16:20 Matthijs Kooijman
  2009-06-08 17:20 ` Matthijs Kooijman
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Matthijs Kooijman @ 2009-06-08 16:20 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 1128 bytes --]

Hi,

I'm trying to use a buffer together with a custom typing style using the
latest beta with MkIV, but so far I've only managed to do this using \startFOO
and \stopFOO inside the buffer:

\definetyping[FOO][option=FOO]

\startbuffer[bar]
\startFOO
baz
\stopFOO
\stopbuffer

\getbuffer[bar]


Since the \getbuffer is really inside some self-defined command, I'd like to
put the startFOO / stopFOO in there as well. However, I can't seem to find a
way to do this, since \startFOO \getbuffer[bar] \stopFOO gives me compile
errors. It seems the canonical way to define typing and buffers is using
\typebuffer, but that only seems to work with the default typing style. I'd
like to do the following:

\definetyping[FOO][option=FOO]

\startbuffer[bar]
baz
\stopbuffer

\typebuffer[FOO][bar]

From looking at buff-ini.mkiv it seems typebuffer has some code to handle a
second argument, but it seems to always throw it away (as far as I can
understand this Tex stuff... :-).

Is there some way to achieve this? Would it be good to make \typebuffer
support this if there isn't?

Gr.

Matthijs

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-06-10 15:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-08 16:20 \typebuffer with typing style Matthijs Kooijman
2009-06-08 17:20 ` Matthijs Kooijman
2009-06-09 16:28 ` Matthijs Kooijman
2009-06-09 17:11 ` Peter Münster
2009-06-10 13:52   ` Matthijs Kooijman
2009-06-10 15:53     ` Peter Münster

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).