ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] combining \definetyping and \definebuffer
@ 2023-07-29 19:09 Henning Hraban Ramm
  2023-07-29 20:06 ` [NTG-context] " Bruce Horrocks
  0 siblings, 1 reply; 8+ messages in thread
From: Henning Hraban Ramm @ 2023-07-29 19:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,
I’d like to use a custom buffer ("MyBuffer") to use a custom typing 
style ("MyCode"). How does that work?


"""
\usemodule[visual]

\definetyping[MyCode]

\setuptyping[MyCode][
   option=tex,
   numbering=file,
]

\definebuffer[MyBuffer]

\startMyBuffer
\fakewords{10}{20}
\stopMyBuffer

\starttext

\startMyCode
\fakeword
\stopMyCode

\getMyBuffer

\typeMyBuffer

\stoptext
"""

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2023-07-30 12:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-29 19:09 [NTG-context] combining \definetyping and \definebuffer Henning Hraban Ramm
2023-07-29 20:06 ` [NTG-context] " Bruce Horrocks
2023-07-29 20:35   ` Henning Hraban Ramm
2023-07-29 20:35   ` Henning Hraban Ramm
2023-07-29 20:49     ` Max Chernoff
2023-07-29 21:13       ` Henning Hraban Ramm
2023-07-29 21:16     ` Hans Hagen
2023-07-30 12:36       ` Henning Hraban Ramm

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