[NTG-context] Re: empty line before typebuffer
Am 31.07.23 um 17:25 schrieb Pablo Rodriguez: On 7/30/23 21:50, Henning Hraban Ramm wrote: Am 30.07.23 um 21:22 schrieb Wolfgang Schuster: Henning Hraban Ramm schrieb am 30.07.2023 um 21:14: Yet another issue: \typebuffer always starts with a blank line. Is this a bug, or how can I disable it? Sorry for being too late, Hraban. \typeinlinebuffer is probably the best option here. Thank you, but no. I needed it for code examples in a frame. strut=no did the trick. 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 ___
[NTG-context] Re: empty line before typebuffer
On 7/30/23 21:50, Henning Hraban Ramm wrote: > Am 30.07.23 um 21:22 schrieb Wolfgang Schuster: >> Henning Hraban Ramm schrieb am 30.07.2023 um 21:14: >>> Yet another issue: >>> >>> \typebuffer always starts with a blank line. >>> Is this a bug, or how can I disable it? Sorry for being too late, Hraban. \typeinlinebuffer is probably the best option here. Pablo ___ 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 ___
[NTG-context] Re: empty line before typebuffer
Am 30.07.23 um 21:22 schrieb Wolfgang Schuster: Henning Hraban Ramm schrieb am 30.07.2023 um 21:14: Yet another issue: \typebuffer always starts with a blank line. Is this a bug, or how can I disable it? Hraban MWE: """ \starttext \startbuffer \samplefile{tufte} \stopbuffer \framedtext{\typebuffer[option=tex]} \stoptext """ \framedtext[strut=no]{\typebuffer[option=tex]} or \startframedtext \typebuffer[option=tex] \stopframedtext Thank you (also Jacob)! Seems like I didn’t look in the right place. 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 ___
[NTG-context] Re: empty line before typebuffer
It comes from framedtext: \starttext \startbuffer \samplefile{tufte} \stopbuffer \framedtext[strut=no]{\typebuffer[option=tex]} \stoptext Best, Jacob > Am 30.07.2023 um 21:14 schrieb Henning Hraban Ramm : > > Yet another issue: > > \typebuffer always starts with a blank line. > Is this a bug, or how can I disable it? > > Hraban > > MWE: > """ > \starttext > > \startbuffer > \samplefile{tufte} > \stopbuffer > > \framedtext{\typebuffer[option=tex]} > > \stoptext > """ > ___ > 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 > ___ signature.asc Description: Message signed with OpenPGP ___ 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 ___
[NTG-context] Re: empty line before typebuffer
Henning Hraban Ramm schrieb am 30.07.2023 um 21:14: Yet another issue: \typebuffer always starts with a blank line. Is this a bug, or how can I disable it? Hraban MWE: """ \starttext \startbuffer \samplefile{tufte} \stopbuffer \framedtext{\typebuffer[option=tex]} \stoptext """ \framedtext[strut=no]{\typebuffer[option=tex]} or \startframedtext \typebuffer[option=tex] \stopframedtext Wolfgang ___ 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 ___
[NTG-context] empty line before typebuffer
Yet another issue: \typebuffer always starts with a blank line. Is this a bug, or how can I disable it? Hraban MWE: """ \starttext \startbuffer \samplefile{tufte} \stopbuffer \framedtext{\typebuffer[option=tex]} \stoptext """ ___ 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 ___
Re: [NTG-context] Avoid indentation after \typebuffer
On 7/1/2020 12:25 PM, Mikael Sundqvist wrote: Does the indentnext do something else for this setup? I'll look at it Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Avoid indentation after \typebuffer
On Wed, Jul 1, 2020 at 8:53 AM Hans Hagen wrote: > On 6/30/2020 9:50 PM, Mikael Sundqvist wrote: > > Hi, > > > > I want to avoid indentation after \typebuffer (or set indentnext to auto > > perhaps). I am probably missing something simple, but I thought that the > > example file below should have worked: > > > > \setupindenting[yes,medium] > > > > \setuptyping[buffer][ > > indentnext=no, > > ] > > > > \starttext > > > > \startbuffer > > \startformula > > \int_a^b f'(x)\,dx > > \stopformula > > \stopbuffer > > > > \typebuffer > > I do not want this line to be indented. > > > > \stoptext > > > > Compiled with an updated lmxt, and resulting pdf file is attached. > \setuptyping >[buffer] >[before=\blank, > after={\blank\noindentation}]% indentnext=no] > > OK, that is a way around. I thought the indentnext existed for this, since it was present in http://www.pragma-ade.com/general/qrcs/setup-en.pdf Does the indentnext do something else for this setup? /Mikael ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Avoid indentation after \typebuffer
On 6/30/2020 9:50 PM, Mikael Sundqvist wrote: Hi, I want to avoid indentation after \typebuffer (or set indentnext to auto perhaps). I am probably missing something simple, but I thought that the example file below should have worked: \setupindenting[yes,medium] \setuptyping[buffer][ indentnext=no, ] \starttext \startbuffer \startformula \int_a^b f'(x)\,dx \stopformula \stopbuffer \typebuffer I do not want this line to be indented. \stoptext Compiled with an updated lmxt, and resulting pdf file is attached. \setuptyping [buffer] [before=\blank, after={\blank\noindentation}]% indentnext=no] - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Avoid indentation after \typebuffer
Hi, I want to avoid indentation after \typebuffer (or set indentnext to auto perhaps). I am probably missing something simple, but I thought that the example file below should have worked: \setupindenting[yes,medium] \setuptyping[buffer][ indentnext=no, ] \starttext \startbuffer \startformula \int_a^b f'(x)\,dx \stopformula \stopbuffer \typebuffer I do not want this line to be indented. \stoptext Compiled with an updated lmxt, and resulting pdf file is attached. /Mikael indentproblem.pdf Description: Adobe PDF document ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] typebuffer different from typefile
The point is not that I am without options for a practical solution here. My point is that the difference between \typebuffer and \typefile breaks the strict and so much appreciated congruence between like macro calls. Therefore my post must rather be seen as a plea to the maintainer(s) of these to consider a change in the given direction. Hans van der Meer > On 24 Apr 2016, at 17:04, Pablo Rodriguez <oi...@gmx.es> wrote: > > On 04/24/2016 10:31 AM, dr. Hans van der Meer wrote: >> Why is there a difference in syntax between typing buffers and typing files? >> For files enclosure in {} for buffers in [], for files optional >> parameters, for buffers not. >> Is it possible to make the syntax of these two the same, because their >> usage parallels each other? > > Hi Hans, > > I wonder whether any of these two options may help you: > >\setuptyping[buffer][style=\ttx] >\startbuffer[test] >content of buffer >\stopbuffer >\starttext >\typebuffer[test][style=\ss\red] >\typefile[style=\ttx\blue]{test.txt} >\stoptext > > Again, just in case it might help, > > Pablo ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] typebuffer different from typefile
On 04/24/2016 10:31 AM, dr. Hans van der Meer wrote: > Why is there a difference in syntax between typing buffers and typing files? > For files enclosure in {} for buffers in [], for files optional > parameters, for buffers not. > Is it possible to make the syntax of these two the same, because their > usage parallels each other? Hi Hans, I wonder whether any of these two options may help you: \setuptyping[buffer][style=\ttx] \startbuffer[test] content of buffer \stopbuffer \starttext \typebuffer[test][style=\ss\red] \typefile[style=\ttx\blue]{test.txt} \stoptext Again, just in case it might help, Pablo -- http://www.ousia.tk ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] typebuffer different from typefile
Why is there a difference in syntax between typing buffers and typing files? For files enclosure in {} for buffers in [], for files optional parameters, for buffers not. Is it possible to make the syntax of these two the same, because their usage parallels each other? Example code: \startbuffer[test] content of buffer \stopbuffer \starttext \typebuffer[test] \typefile[style=\ttx]{test.txt} \stoptext Hans van der Meer ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] apply typing environment to \typebuffer
On 01/15/2014 01:12 AM, Marco Patzer wrote: On 2014–01–14 Pablo Rodriguez wrote: I have a presentation that defines a typing environment and I would like to know who to apply it to \typebuffer. Use: \setuptyping [buffer] [option=TEX] Many thanks for your reply, Marco. This is exactly what I wanted. Although I’m afraid that this breaks the \typesetbuffer (since it typesets an empty buffer). Here is a more detailed sample: \definetyping[buffer][option=TEX,before=\startframedtext,after=\stopframedtext] \setuptyping[buffer][style=\tt\setupinterlinespace,align={right,broad}] \starttext \startbuffer[basic-document] \mainlanguage[es] \setuppapersize[A5,landscape] \setuppagenumbering[location=bottom] \starttext \chapter{Introducción} \ConTeXt\ is {\en\em a document generation system}. \stoptext \stopbuffer \typebuffer[basic-document] \typesetbuffer[basic-document][frame=on,scale=750] \stoptext I guess this might be a bug. Could anyone confirm this? Pablo -- http://www.ousia.tk ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] apply typing environment to \typebuffer
On Wed, Jan 15 2014, Pablo Rodriguez wrote: \definetyping[buffer][option=TEX,before=\startframedtext,after=\stopframedtext] \setuptyping[buffer][style=\tt\setupinterlinespace,align={right,broad}] Why \definetyping[buffer] ? \typebuffer is already defined. Shouldn't it be: \setuptyping[buffer][style=\tt\setupinterlinespace,align={right,broad}, option=TEX,before=\startframedtext,after=\stopframedtext] -- Peter ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] apply typing environment to \typebuffer
On 01/15/2014 08:50 PM, Peter Münster wrote: On Wed, Jan 15 2014, Pablo Rodriguez wrote: \definetyping[buffer][option=TEX,before=\startframedtext,after=\stopframedtext] \setuptyping[buffer][style=\tt\setupinterlinespace,align={right,broad}] Why \definetyping[buffer] ? \typebuffer is already defined. Shouldn't it be: \setuptyping[buffer][style=\tt\setupinterlinespace,align={right,broad}, option=TEX,before=\startframedtext,after=\stopframedtext] Of course, Peter, you’re right. Many thanks for pointing this out. I simply copied and pasted a code for an already-defined typing environment and replaced the name in both \definetyping and \setuptyping without realizing that buffer was already defined. Many thanks again for your help, Pablo -- http://www.ousia.tk ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] apply typing environment to \typebuffer
Am 15.01.2014 um 20:42 schrieb Pablo Rodriguez oi...@gmx.es: On 01/15/2014 01:12 AM, Marco Patzer wrote: On 2014–01–14 Pablo Rodriguez wrote: I have a presentation that defines a typing environment and I would like to know who to apply it to \typebuffer. Use: \setuptyping [buffer] [option=TEX] Many thanks for your reply, Marco. This is exactly what I wanted. Although I’m afraid that this breaks the \typesetbuffer (since it typesets an empty buffer). Here is a more detailed sample: \definetyping[buffer][option=TEX,before=\startframedtext,after=\stopframedtext] This is the worst thing you can do because \definetyping[buffer] creates the new environment \startbuffer … \stopbuffer which overwrites the existing buffer environment. Wolfgang ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] apply typing environment to \typebuffer
Dear list, I have a presentation that defines a typing environment and I would like to know who to apply it to \typebuffer. Here is a sample: \definetyping[TeXcode][option=TEX] \starttext \startbuffer[a] \starttext \input knuth \stoptext \stopbuffer \typesetbuffer[a] \typebuffer[a] \stoptext Of course, the defined typing environment is richer in the presentation. How could I get \typebuffer to use TeXcode? Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] apply typing environment to \typebuffer
On 2014–01–14 Pablo Rodriguez wrote: I have a presentation that defines a typing environment and I would like to know who to apply it to \typebuffer. Here is a sample: \definetyping[TeXcode][option=TEX] Use: \setuptyping [buffer] [option=TEX] This applies globally, though. If that's not desired you can pass options to the \typebuffer command: \typebuffer [a] [option=TEX] Passing a previously defined environment is not supported: %% doesn't work \typebuffer [a] [TeXcode] Marco signature.asc Description: Digital signature ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \typebuffer with typing style
Hi Peter, \setuptyping[option=TEX] This is what I am using now, but this changes the global settings and requires resetting them afterwards. Not so pretty. I was hoping for a better method to achieve this, but I'm starting to doubt there is one currently. I've been trying to give \typebuffer a second argument with options or a typing style, but I haven't been so succesful so far... However, from looking at the definition of \dotypebuffer makes me wonder a bit if my understanding of TeX macros is faulty, or the code is weird: \def\dotypebuffer[#1][#2]% {\iffirstargument \dobuffer{17}{#1}\dotypefilebuffer \else \dobuffer{17}{#2}\dotypefilebuffer \fi} What I see here is the there is an argument 17 passed, which is not used by \dobuffer at all. Also, why is this 17 ? Secondly, there is a use of #2 in this definition, but only when there is no first argument (and thus, no second argument either). Is this a leftover that could be replaced with {}, or am I missing something? Gr. Matthijs signature.asc Description: Digital signature ___ 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 ___
Re: [NTG-context] \typebuffer with typing style
On Wed, 10 Jun 2009, Matthijs Kooijman wrote: \setuptyping[option=TEX] This is what I am using now, but this changes the global settings and requires resetting them afterwards. Not so pretty. I was hoping for a better method to achieve this, but I'm starting to doubt there is one currently. 2 ideas: - With \setuptyping[file][option=TEX] the global setting is only for \typefile or \typebuffer. - Use grouping, for example: \def\myTypeBuffer#1{\bgroup \setuptyping[...] \typebuffer[#1] \egroup} Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ 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 ___
Re: [NTG-context] \typebuffer with typing style
Hi all, Snip question about styled \typebuffer Shortly after sending my email, I realized the actual problem I was trying to solve was not the one I posted, so perhaps I can clarify that a bit. What I'm trying to do, is pass some text to a custom command, which should then be displayed in a custom typing style. It seems I can pass some text to a command fine, even multiple lines: \define[1]\test{Lines: #1} \test{ One line Two lines Three lines } However, this will obviously not give me any typing style at all, just a single line with all the words after eachother. I can't just use \starttyping (or \startFOO, which was the actual goal of all this) inside a \define, since that gives me: File ended while scanning use of \dododowithbuffer. So, this made me look at using buffers, since I can pass in an entire buffer and use \typebuffer to get it in a typing style. However, as mentioned before I can't seem to be able to pass an actual style to \typebuffer (one defined with \definetyping). The only way I've found just now, is to use \setuptyping. However, that takes effect for the rest of the document, so I have to reset the settings to their defaults afterwards, destroying any custom settings that could have been set. I can't seem to find a way to push the typing settings or save them somehow, so this is not quite a perfect solution... Any other suggestions? Gr. Matthijs signature.asc Description: Digital signature ___ 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 ___
Re: [NTG-context] \typebuffer with typing style
On Mon, 8 Jun 2009, Matthijs Kooijman wrote: \definetyping[FOO][option=FOO] \startbuffer[bar] baz \stopbuffer \typebuffer[FOO][bar] Perhaps you are looking for this: \setuptyping[option=TEX] \starttext \startbuffer[bar] This is \ConTeXt. \stopbuffer \typebuffer[bar] \stoptext ? Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ 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 ___
[NTG-context] \typebuffer with typing style
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 signature.asc Description: Digital signature ___ 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 ___
Re: [NTG-context] \typebuffer with typing style
Hi all, since \startFOO \getbuffer[bar] \stopFOO gives me compile errors. Actually, that turned out to be my own typo. However, this doesn't give me what I want, but just a verbatim \getbuffer[bar]... Gr. Matthijs signature.asc Description: Digital signature ___ 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 ___
[NTG-context] typebuffer extra line
Exercising \typebuffer gives an extra blank line afterwards. See the following minimal example. How can I prevent this extra line? Using: ConTeXt ver: 2008.05.21 15:21 MKII fmt: 2008.5.24 int: english/english Example: \startbuffer[A] Contents of buffer A. \stopbuffer \startbuffer[B] Contents of buffer B. \stopbuffer \starttext \typebuffer[A]\typebuffer[B] \stoptext Output: testtypebuffer.pdf Description: Adobe PDF document Hans van der Meer ___ 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 ___
Re: [NTG-context] typebuffer extra line
Hans van der Meer wrote: Exercising \typebuffer gives an extra blank line afterwards. See the following minimal example. How can I prevent this extra line? \setuptyping[file][before=,after=] Best wishes, Taco ___ 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 ___
Re: [NTG-context] typebuffer extra line
2008/6/3 Hans van der Meer [EMAIL PROTECTED]: Exercising \typebuffer gives an extra blank line afterwards. See the following minimal example. How can I prevent this extra line? Using: ConTeXt ver: 2008.05.21 15:21 MKII fmt: 2008.5.24 int: english/english Example: \startbuffer[A] Contents of buffer A. \stopbuffer \startbuffer[B] Contents of buffer B. \stopbuffer \starttext \typebuffer[A]\typebuffer[B] \stoptext Hans van der Meer \setuptyping[before=\nowhitespace,after=\nowhitespace] Greetings Wolfgang ___ 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 ___
[NTG-context] \typebuffer with typing name
Hi everybody, please consider: --- \definetyping[TEX] \setuptyping[TEX][option=TEX] \starttext \startbuffer[A] \somemacro[bla][obla=vbla] \stopbuffer \typebuffer[A] \stoptext --- It works perfectly. I would like to type buffer with options for typing, e.g. \typebuffer[A][TEX] but the second param is ignored. It seems to me, the definition of \typebuffer is preprepared for that, but not finnished. Or is there some solution that I omitted? (It is not crutial since I solved it by calling \typefile[TEX][]{\jobname-A.tmp} ) Thanks vit ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \typebuffer and tabs / specify code type
On Wed, Nov 03, 2004 at 02:19:19PM +0100, Eckhart Guthöhrlein wrote: On Wed, Nov 03, 2004 at 01:39:45PM +0100, Hans Hagen wrote: Eckhart Guthöhrlein wrote: Hi all, I'm using \typebuffer to typeset some metapost code. How can I tell it to either ignore tabs or treat them like 1,2,3,... spaces, instead of printing ^^I? Another question: There has been a thread on telling \typebuffer what type of code on this list some time ago, without a final solution. Is there a switch to use metapost or whatever appropriate highlighting? \setuptyping[tab=on] % or off That does not work here. Example file: \starttext \startbuffer[ex] draw unitsquare scaled 1cm; \stopbuffer % \setuptype[tab=on] % \setuptype[tab=off] % \setuptyping[tab=on] \setuptyping[tab=off] \typebuffer[ex] \stoptext None of the \setuptyp* has any effect, I alwas get ^^I^^I for the two tabs. I have furthermore observed that typing of files via \typefile as well as \starttyping..\stoptyping are affected, opposed to \typebuffer. \typefile and the typing environment do never print ^^I for a tab, but either a space or several spaces, depending on the tab=on/off option. This behavior is what I would like to have for \typebuffer, too. How to do it? -- Eckhart ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \typebuffer and tabs / specify code type
Hi all, I'm using \typebuffer to typeset some metapost code. How can I tell it to either ignore tabs or treat them like 1,2,3,... spaces, instead of printing ^^I? Another question: There has been a thread on telling \typebuffer what type of code on this list some time ago, without a final solution. Is there a switch to use metapost or whatever appropriate highlighting? Greetings, Eckhart ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \typebuffer and tabs / specify code type
Eckhart Guthöhrlein wrote: Hi all, I'm using \typebuffer to typeset some metapost code. How can I tell it to either ignore tabs or treat them like 1,2,3,... spaces, instead of printing ^^I? Another question: There has been a thread on telling \typebuffer what type of code on this list some time ago, without a final solution. Is there a switch to use metapost or whatever appropriate highlighting? \setuptyping[tab=on] % or off \setuptyping[file][option=TEX] and alike - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \typebuffer and tabs / specify code type
On Wed, Nov 03, 2004 at 01:39:45PM +0100, Hans Hagen wrote: Eckhart Guthöhrlein wrote: Hi all, I'm using \typebuffer to typeset some metapost code. How can I tell it to either ignore tabs or treat them like 1,2,3,... spaces, instead of printing ^^I? Another question: There has been a thread on telling \typebuffer what type of code on this list some time ago, without a final solution. Is there a switch to use metapost or whatever appropriate highlighting? \setuptyping[tab=on] % or off That does not work here. Example file: \starttext \startbuffer[ex] draw unitsquare scaled 1cm; \stopbuffer % \setuptype[tab=on] % \setuptype[tab=off] % \setuptyping[tab=on] \setuptyping[tab=off] \typebuffer[ex] \stoptext None of the \setuptyp* has any effect, I alwas get ^^I^^I for the two tabs. I'm using TeXExec 5.0 - ConTeXt / PRAGMA ADE 1997-2004 ConTeXt ver: 2004.10.28 fmt: 2004.11.3 int: english mes: english \setuptyping[file][option=TEX] \setuptyping[option=MP] works fine. -- Eckhart ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context