[NTG-context] Re: combining \definetyping and \definebuffer

2023-07-30 Thread Henning Hraban Ramm
Am 29.07.23 um 23:16 schrieb Hans Hagen: On 7/29/2023 10:35 PM, Henning Hraban Ramm wrote: The setup for MyCode is not applied to \typeMyBuffer, and I don’t know how it could; something like \typeMyBuffer[MyCode] doesn’t work. These commands inherit from buffer, so \setupbuffer will work.

[NTG-context] Re: combining \definetyping and \definebuffer

2023-07-29 Thread Hans Hagen
[#3]% \orelse\ifempty{#3}\else \cdef\currenttyping{#3} \fi \buff_verbatim_type_buffer_indeed{\currenttyping}{#2}% \useindentnextparameter\typingparameter \endgroup \dorechecknextindentation} \popoverloadmode \protect \usemodule[visual] \definetyping[MyCode] \setuptyping

[NTG-context] Re: combining \definetyping and \definebuffer

2023-07-29 Thread Henning Hraban Ramm
Am 29.07.23 um 22:49 schrieb Max Chernoff: I'm on mobile now so I can't type out a complete solution, but I think that what you're looking for is in this file: https://github.com/gucci-on-fleek/unnamed-emoji/blob/master/documentation/unemoji-manual.mkxl It doesn't exactly do what you

[NTG-context] Re: combining \definetyping and \definebuffer

2023-07-29 Thread Max Chernoff
I'm on mobile now so I can't type out a complete solution, but I think that what you're looking for is in this file: https://github.com/gucci-on-fleek/unnamed-emoji/blob/master/documentation/unemoji-manual.mkxl It doesn't exactly do what you specifically asked for, but I think that it's

[NTG-context] Re: combining \definetyping and \definebuffer

2023-07-29 Thread Henning Hraban Ramm
Am 29.07.23 um 22:06 schrieb Bruce Horrocks: Your example seems to work: I see the \getbuffer[MyBuffer] command typed (not executed) with colour coding on the keyword and line numbered; then the block text fakewords from the visual module; then the \fakewords macro shown (again not executed)

[NTG-context] Re: combining \definetyping and \definebuffer

2023-07-29 Thread Henning Hraban Ramm
Am 29.07.23 um 22:06 schrieb Bruce Horrocks: Your example seems to work: I see the \getbuffer[MyBuffer] command typed (not executed) with colour coding on the keyword and line numbered; then the block text fakewords from the visual module; then the \fakewords macro shown (again not executed)

[NTG-context] Re: combining \definetyping and \definebuffer

2023-07-29 Thread Bruce Horrocks
exepcting if not this? (onTeXt ver: 2023.07.18 22:07 LMTX) > On 29 Jul 2023, at 20:09, Henning Hraban Ramm wrote: > > Hi, > I’d like to use a custom buffer ("MyBuffer") to use a custom typing style > ("MyCode"). How does that work? > > > "

[NTG-context] combining \definetyping and \definebuffer

2023-07-29 Thread Henning Hraban Ramm
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] \startMyBuff

Re: [NTG-context] [OS X TeX] \ne in a definetyping environment in context

2011-02-15 Thread Wolfgang Schuster
Am 14.02.2011 um 01:37 schrieb David Arnold: All, I have the following in a Context file: \definetyping[XXX] \startXXX If int(N/2) \ne N/2 Then Disp N MUST BE EVEN Stop End \stopXXX Is there an easy way to replace the \ne with code that will produce the normal not equals

[NTG-context] \definetyping to avoid wrapping lines

2011-01-18 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, is there a way how to disable wrapping (breaking) very long lines being processed by \typefile? E.g. with a \definetyping option? Kind regards, Lukas -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147

Re: [NTG-context] \definetyping to avoid wrapping lines

2011-01-18 Thread Hans Hagen
On 18-1-2011 5:26, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, is there a way how to disable wrapping (breaking) very long lines being processed by \typefile? E.g. with a \definetyping option? you have some control over spaces space=on|stretch|normal Hans

Re: [NTG-context] \definetyping to avoid wrapping lines

2011-01-18 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, thanks for the answer. But actually space= option doesn't affect what I need. See the attached example. The right thing is how the first abcdefABCDEF... line (u.txt) is typeset. In the second case, one A is replaced by , so we get abcdef BCDEF And Ctx breaks the line when

Re: [NTG-context] strange colorleak in definetyping[XML]

2007-07-22 Thread Hans Hagen
] \definecolor [colorprettythree] [codecolor] \definecolor [colorprettyfour] [codecolor] \setuptyping [color=codecolor,palet=colorpretty] % XML typesetting inside framebox with background. \definetyping[XMLBOX][option=XML,style=\ttxx, before={\bgroup\setupinterlinespace[line=2ex]\startframedcode

[NTG-context] strange colorleak in definetyping[XML]

2007-07-19 Thread Hans van der Meer
[colorprettythree] [codecolor] \definecolor [colorprettyfour] [codecolor] \setuptyping [color=codecolor,palet=colorpretty] % XML typesetting inside framebox with background. \definetyping[XMLBOX][option=XML,style=\ttxx, before={\bgroup\setupinterlinespace[line=2ex]\startframedcode

[NTG-context] beginner's question: interlinespace and definetyping

2007-04-25 Thread Patrick Gundlach
Hi, it seems that I keep asking the beginner's questions... How do I combine \setupinterlinespace with \definetyping? I'd like to have a verbatim envrionment with less interlinespace then the rest of the document. \definetyping [befehl] [before={\startframedtext[width=.8\makeupwidth

Re: [NTG-context] \definetyping[C][option=commands] and the tabulator

2005-06-02 Thread Peter Münster
On Tue, 31 May 2005, Hans Hagen wrote: \definetyping[C][option=commands,tab=8] (just a few lines patch); i'll send you the files. Thanks again for your efforts! Just one last problem with vertical spacing in a frame: \starttext \framed[align=lohi]{% \starttyping test \stoptyping

[NTG-context] \definetyping[C][option=commands] and the tabulator

2005-05-31 Thread Peter Münster
Hello, here is a typing-problem: \definetyping[C][option=commands] \starttext With option=commands the tabulator is reduced to one space: \startC #include stdiostream.h int main(){ return 0; /BTEX{\em unreachedCode;}/ETEX } \stopC \stoptext TIA for any help, Peter -- http

Re: [NTG-context] \definetyping[C][option=commands] and the tabulator

2005-05-31 Thread Hans Hagen
Peter Münster wrote: Hello, here is a typing-problem: \definetyping[C][option=commands] \starttext With option=commands the tabulator is reduced to one space: \startC #include stdiostream.h int main(){ return 0; /BTEX{\em unreachedCode;}/ETEX } \stopC \stoptext it has to do