Re: [NTG-context] option=tex in setuptyping causes the background to be drawn twice

2019-04-28 Thread Wolfgang Schuster
Wolfgang will cook up a patch ... The best solution is to remove the values from all three keys because for now each of them is applies twice (even the style). \setuptyping   [before=\hairline,     after=\hairline,     style=\tt\em] \starttext \starttyping[option=tex] \donothing \stoptyping

Re: [NTG-context] option=tex in setuptyping causes the background to be drawn twice

2019-04-28 Thread Hans Hagen
On 4/28/2019 5:56 PM, Aditya Mahajan wrote: On Sun, 28 Apr 2019, Wolfgang Schuster wrote: The problem are these settings in buff-imp-default.mkiv: \setupstartstop   [DefaultSnippet]   [\c!before={\typingparameter\c!before},    \c!after={\typingparameter\c!after},   

Re: [NTG-context] option=tex in setuptyping causes the background to be drawn twice

2019-04-28 Thread Aditya Mahajan
On Sun, 28 Apr 2019, Wolfgang Schuster wrote: The problem are these settings in buff-imp-default.mkiv: \setupstartstop   [DefaultSnippet]   [\c!before={\typingparameter\c!before},    \c!after={\typingparameter\c!after},    \c!style={\typingparameter\c!style}] In buff-imp-tex.mkiv these values

Re: [NTG-context] option=tex in setuptyping causes the background to be drawn twice

2019-04-28 Thread Wolfgang Schuster
    [TexSnippet]     [DefaultSnippet] Wolfgang Aditya Mahajan schrieb am 28.04.2019 um 17:00: Hi, The following minimal example: \definetextbackground     [EXAMPLE]     [   location=paragraph, rulethickness=1pt,     leftoffset=5em,    rightoffset=0mm,     ] \setuptyping[option=tex

[NTG-context] option=tex in setuptyping causes the background to be drawn twice

2019-04-28 Thread Aditya Mahajan
Hi, The following minimal example: \definetextbackground [EXAMPLE] [ location=paragraph, rulethickness=1pt, leftoffset=5em, rightoffset=0mm, ] \setuptyping[option=tex, before=\startEXAMPLE, after=\stopEXAMPLE] \starttext \starttyping A = B + C

Re: [NTG-context] setuptyping

2018-09-11 Thread Wolfgang Schuster
e: To limit the smaller font to \starttyping it should be     \setuptyping [typing] [style=\ttxx] or     \setuptyping [typing] [style=smalltype] because \starttyping is a generated command like \startXML. Wolfgang Taco Hoekwater schrieb am 10.09.18 um 11:32: Hi Hans, Repl

Re: [NTG-context] setuptyping

2018-09-10 Thread Wolfgang Schuster
To limit the smaller font to \starttyping it should be     \setuptyping [typing] [style=\ttxx] or     \setuptyping [typing] [style=smalltype] because \starttyping is a generated command like \startXML. Wolfgang Taco Hoekwater schrieb am 10.09.18 um 11:32: Hi Hans, Replace your two

Re: [NTG-context] setuptyping

2018-09-10 Thread Taco Hoekwater
Hi Hans, Replace your two setuptyping lines with: \setuptyping[style=\ttxx] \definetyping[XML] \setuptyping[XML][option=XML,style=italic] nothing else needs to change Best wishes, Taco > On 10 Sep 2018, at 11:22, Hans van der Meer wrote: > > Taco Hoekwater Elv

[NTG-context] setuptyping

2018-09-10 Thread Hans van der Meer
I want to differentiate the typing of XML-code with \startXML and other text with \starttyping.That doesn’t work as I expect or I misinterpret something.The minimal example shows that in the following code there is no difference between using  \startXML or \starttyping typingsetup.pdf

[NTG-context] three issues with \setuptyping

2017-10-21 Thread Pablo Rodriguez
s standard tags. Using the scite module removes the three issues (XML comment chars are in a different color, both from comment content and from any other element). But the scite module doesn’t allow the options \setuptyping has. Would it be possible that whole comments may be formatted in the

Re: [NTG-context] lines in \setuptyping

2017-08-29 Thread Pablo Rodriguez
On 08/30/2017 02:50 AM, Aditya Mahajan wrote: > On Tue, 29 Aug 2017, Hans Hagen wrote: >> On 8/29/2017 9:02 PM, Pablo Rodriguez wrote: >>> [...] >>> In that case, what enables [lines=yes] in \setuptyping? >> linebreaks > > There is only a subtle d

Re: [NTG-context] lines in \setuptyping

2017-08-29 Thread Pablo Rodriguez
On 08/29/2017 11:28 PM, Hans Hagen wrote: > On 8/29/2017 9:02 PM, Pablo Rodriguez wrote: >> [...] >> In that case, what enables [lines=yes] in \setuptyping? > linebreaks Many thanks for your reply, Hans. I’m afraid this isn’t what I get in the following sample:

Re: [NTG-context] lines in \setuptyping

2017-08-29 Thread Aditya Mahajan
lines in the sample above? empty lines are always collapsed Many thanks for your reply, Hans. In that case, what enables [lines=yes] in \setuptyping? linebreaks There is only a subtle difference between the two: \setuppapersize[A6] \showframe \starttext \starttyping[lines=no] Here is some text

Re: [NTG-context] lines in \setuptyping

2017-08-29 Thread Hans Hagen
are always collapsed Many thanks for your reply, Hans. In that case, what enables [lines=yes] in \setuptyping? linebreaks - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH

Re: [NTG-context] lines in \setuptyping

2017-08-29 Thread Pablo Rodriguez
es are always collapsed Many thanks for your reply, Hans. In that case, what enables [lines=yes] in \setuptyping? I need this to provide a sample in a ConTeXt introduction of empty lines collapse in ConTeXt. Many thanks for your

Re: [NTG-context] lines in \setuptyping

2017-08-29 Thread Hans Hagen
On 8/29/2017 4:43 PM, Pablo Rodriguez wrote: Dear list, I have the following sample: \setuptyping[TEX][lines=yes] \starttext \startTEX code one line before two lines before three lines before \stopTEX \stoptext I thought the lines key should

[NTG-context] lines in \setuptyping

2017-08-29 Thread Pablo Rodriguez
Dear list, I have the following sample: \setuptyping[TEX][lines=yes] \starttext \startTEX code one line before two lines before three lines before \stopTEX \stoptext I thought the lines key should display multiple lines when they are in the code. How

[NTG-context] having all lines with \setuptyping

2017-08-15 Thread Pablo Rodriguez
Dear list, I have the following sample: \setuptyping[TEX][lines=no] \definetyping[TEXlines][lines=yes, option=TEX] \starttext \startxtable[frame=off,option=stretch]\startxrow \startxcell\startTEX \starttext Esto es un único párrafo. Y aquí está el

Re: [NTG-context] \setuptyping[lines=yes] bug in beta?

2013-10-23 Thread Wolfgang Schuster
Am 22.10.2013 um 19:47 schrieb Pablo Rodriguez oi...@gmx.es: Dear list, the following sample: \showframe \setuppapersize[S6] \setuptyping[option=TEX,lines=yes] You can use this setup for the moment: \setuptyping[option=TEX,align={right,broad}] Wolfgang

Re: [NTG-context] \setuptyping[lines=yes] bug in beta?

2013-10-23 Thread Pablo Rodriguez
On 10/23/2013 12:28 PM, Wolfgang Schuster wrote: Am 22.10.2013 um 19:47 schrieb Pablo Rodriguez oi...@gmx.es: Dear list, the following sample: \showframe \setuppapersize[S6] \setuptyping[option=TEX,lines=yes] You can use this setup for the moment: \setuptyping[option=TEX,align

[NTG-context] \setuptyping[lines=yes] bug in beta?

2013-10-22 Thread Pablo Rodriguez
Dear list, the following sample: \showframe \setuppapersize[S6] \setuptyping[option=TEX,lines=yes] \starttext \starttyping \startvariante[MRU]{{\em om} X}En un lugar de la Mancha, de cuyo nombre no quiero acordarme, no ha mucho tiempo que vivía un hidalgo de los de lanza en astillero, adarga

[NTG-context] Problem with \setuptyping-ed \typefile

2011-01-13 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I encountered another problem with \typefile. This code crashes: --- \setuptyping[Model][bodyfont=6pt,style=\tt\setupinterlinespace] \starttext \typefile[Model]{t2.txt} %{t.u8} %\startluacode context.typefile({Model}, t.u8)\stopluacode \stoptext --- Although a .pdf is generated

Re: [NTG-context] Problem with \setuptyping-ed \typefile

2011-01-13 Thread Wolfgang Schuster
Am 13.01.2011 um 11:35 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello, I encountered another problem with \typefile. This code crashes: --- \setuptyping[Model][bodyfont=6pt,style=\tt\setupinterlinespace] You need \definetyping[Model][...]. Wolfgang

Re: [NTG-context] Problem with \setuptyping-ed \typefile

2011-01-13 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Thanks, it works now. (I've been using \setuptyping before and it used to work.) Lukas On Thu, 13 Jan 2011 11:58:28 +0100, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 13.01.2011 um 11:35 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: You need \definetyping[Model

Re: [NTG-context] \setuptyping and \type{}

2010-12-04 Thread Hans Hagen
On 3-12-2010 10:32, Khaled Hosny wrote: Is there a way to setup insertion of some stuff before/after \type{}, tried \setuptyping but only works for \start/stoptyping. \setuptyping[before=\framed] \starttext \type{aa} \starttyping aa \stoptyping \stoptext the next beta will have: \starttext

Re: [NTG-context] \setuptyping and \type{}

2010-12-04 Thread Khaled Hosny
On Sat, Dec 04, 2010 at 06:41:37PM +0100, Hans Hagen wrote: On 3-12-2010 10:32, Khaled Hosny wrote: Is there a way to setup insertion of some stuff before/after \type{}, tried \setuptyping but only works for \start/stoptyping. \setuptyping[before=\framed] \starttext \type{aa

Re: [NTG-context] \setuptyping and \type{}

2010-12-04 Thread Khaled Hosny
On Fri, Dec 03, 2010 at 03:36:14PM +0100, Wolfgang Schuster wrote: Am 03.12.2010 um 10:32 schrieb Khaled Hosny: Is there a way to setup insertion of some stuff before/after \type{}, tried \setuptyping but only works for \start/stoptyping. \setuptyping[before=\framed] You can try

[NTG-context] \setuptyping and \type{}

2010-12-03 Thread Khaled Hosny
Is there a way to setup insertion of some stuff before/after \type{}, tried \setuptyping but only works for \start/stoptyping. \setuptyping[before=\framed] \starttext \type{aa} \starttyping aa \stoptyping \stoptext Regards, Khaled -- Khaled Hosny Arabic localiser and member

Re: [NTG-context] \setuptyping and \type{}

2010-12-03 Thread Wolfgang Schuster
Am 03.12.2010 um 10:32 schrieb Khaled Hosny: Is there a way to setup insertion of some stuff before/after \type{}, tried \setuptyping but only works for \start/stoptyping. \setuptyping[before=\framed] You can try to convince Hans to add a command key to \setuptype, untill then you can use

Re: [NTG-context] \setuptyping and \type{}

2010-12-03 Thread Hans Hagen
On 3-12-2010 10:32, Khaled Hosny wrote: Is there a way to setup insertion of some stuff before/after \type{}, tried \setuptyping but only works for \start/stoptyping. \setuptyping[before=\framed] \starttext \type{aa} \starttyping aa \stoptyping \stoptext that would be 'left' and 'right

[NTG-context] \setuptyping: font size

2010-12-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'm trying to \setuptyping to use a 8pt font size [of a tt typeface]. Here are my trials - in several cases I get the wanted result but with error messages: --- t.mkiv \enableregime[cp1250] %\setuptyping[default][style=\ttxx\setupinterlinespace] % This works somehow but with errors

Re: [NTG-context] \setuptyping: font size

2010-12-01 Thread Hans Hagen
On 1-12-2010 10:50, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, I'm trying to \setuptyping to use a 8pt font size [of a tt typeface]. \setuptyping ... bodyfont=8pt - Hans Hagen

Re: [NTG-context] \setuptyping: font size

2010-12-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello Hans - On Wed, 01 Dec 2010 15:32:05 +0100, Hans Hagen pra...@wxs.nl wrote: I'm trying to \setuptyping to use a 8pt font size [of a tt typeface]. \setuptyping ... bodyfont=8pt - Did you test it? --- t2.mkiv \enableregime[cp1250] \setuptyping[default][bodyfont=8pt] % As you advised

Re: [NTG-context] \setuptyping: font size

2010-12-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Still the same error with the latest beta. Lukas On Wed, 01 Dec 2010 15:47:31 +0100, Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz wrote: Hello Hans - On Wed, 01 Dec 2010 15:32:05 +0100, Hans Hagen pra...@wxs.nl wrote: I'm trying to \setuptyping to use a 8pt font size [of a tt

Re: [NTG-context] \setuptyping: font size

2010-12-01 Thread Wolfgang Schuster
Am 01.12.2010 um 16:53 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: ... Still the same error with the latest beta. Replace your \setuptyping with: \definetyping[default][bodyfont=8pt] Wolfgang ___ If your

Re: [NTG-context] \setuptyping: font size

2010-12-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Much better, thanks! Lukas On Wed, 01 Dec 2010 17:00:59 +0100, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: \definetyping[default][bodyfont=8pt] -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová

Re: [NTG-context] problem with \setuptyping[option=LUA, escape=//]

2010-08-26 Thread Peter Münster
On Wed, Aug 25 2010, Hans Hagen wrote: \definetyping[LUA] \setuptyping[LUA][option=LUA,escape={/btex,/etex}] Hopefully you wikify this Hello Hans, I don't know what to wikify, because I don't understand what is supposed to work and what is not. Here another example with strange behaviour

[NTG-context] [***SPAM***] problem with \setuptyping[option=LUA, escape=//]

2010-08-25 Thread Peter Münster
Hello, The escape=// option is ignored here: \setuptyping[option=LUA, escape=//] \starttext \starttyping bla // \em sometex \stoptyping \stoptext What could be done, to make it work? TIA for any help! Peter -- Contact information: http://pmrb.free.fr/contact

Re: [NTG-context] [***SPAM***] problem with \setuptyping[option=LUA, escape=//]

2010-08-25 Thread Hans Hagen
On 25-8-2010 3:04, Peter Münster wrote: The escape=// option is ignored here: \setuptyping[option=LUA, escape=//] \starttext \starttyping bla // \em sometex \stoptyping \stoptext What could be done, to make it work? \definetyping[LUA] \setuptyping[LUA][option=LUA,escape={/btex,/etex

[NTG-context] \setuptyping[tab=...]

2010-05-10 Thread Peter Münster
Hello, The length of the tab is always 7: % one tab before each bla: \setuptyping[tab=2] \starttext \starttyping 12345678901234567890 bla bla \stoptyping \setuptyping[tab=4] \starttyping 12345678901234567890 bla bla \stoptyping \stoptext Cheers, Peter -- Contact

Re: [NTG-context] \setuptyping[tab=...]

2010-05-10 Thread Hans Hagen
On 10-5-2010 12:04, Peter Münster wrote: Hello, The length of the tab is always 7: % one tab before each bla: \setuptyping[tab=2] \starttext \starttyping 12345678901234567890 bla bla \stoptyping \setuptyping[tab=4] \starttyping 12345678901234567890 bla bla \stoptyping

[NTG-context] \setuptyping[numbering=line] don't emit line numbers

2010-04-21 Thread Hongwen Qiu
$ context --version MTXrun | current version: 2010.04.16 21:08 $ luatex --version This is LuaTeX, Version beta-0.60.0-2010040422 I found that \setuptyping[numbering=line] no longer produces line numbers any more. So are there something changed, or just it's ought to be ok

[NTG-context] setuptyping in MKIV

2009-08-21 Thread Aditya Mahajan
Hi, If I set option to empty in setuptyping, the output of \starttyping stoptyping is colored. \setuptyping[option=] \starttext \starttyping % This is a test \stoptyping \stoptext This works fine in MKII, but in MKIV the % is colored. The color goes away if I set option=none. I think

Re: [NTG-context] setuptyping in MKIV

2009-08-21 Thread Hans Hagen
Aditya Mahajan wrote: Hi, If I set option to empty in setuptyping, the output of \starttyping stoptyping is colored. \setuptyping[option=] \starttext \starttyping % This is a test \stoptyping \stoptext This works fine in MKII, but in MKIV the % is colored. The color goes away if I set

Re: [NTG-context] setuptyping in MKIV

2009-08-21 Thread Aditya Mahajan
On Sat, 22 Aug 2009, Hans Hagen wrote: Aditya Mahajan wrote: Hi, If I set option to empty in setuptyping, the output of \starttyping stoptyping is colored. \setuptyping[option=] \starttext \starttyping % This is a test \stoptyping \stoptext This works fine in MKII, but in MKIV

[NTG-context] feature request: \setuptyping[ignorefirstspace=yes]

2008-08-25 Thread Peter Münster
Hello, Something like \setuptyping[ignorefirstspace=yes] would be nice, to be able to format the source text with indentation but let the typing environment ignore this indentation. Example: \setupcolors[state=start] \setuptyping[margin=3em, ignorefirstspace=yes] \starttext This: \starttyping

Re: [NTG-context] Palet option in setuptyping not working

2007-01-11 Thread Aditya Mahajan
colors. However, if I change \setuptyping [TEX] [palet=MYcolorpretty] with \definepalet[TEXcolorpretty][MYcolorpretty] it works. Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context

Re: [NTG-context] Palet option in setuptyping not working

2007-01-11 Thread Taco Hoekwater
or not. With your code, I do not get any colors. However, if I change \setuptyping [TEX] [palet=MYcolorpretty] with \definepalet[TEXcolorpretty][MYcolorpretty] it works. I believe this is 'as expected'. A bit weird maybe, but still expected (the innards of the pretty typing code are a bit

[NTG-context] Palet option in setuptyping not working

2007-01-10 Thread Berend de Boer
, prettythree=colorprettythree, prettyfour=colorprettyfour] \setuptyping [TEX] [palet=MYcolorpretty] \starttext \startTEX \this \is \a \test \stopTEX \stoptext - -- As you will see, there are no colors anymore. My tex and context

Re: [NTG-context] Unexpected behaviour of setuptyping

2006-03-06 Thread Taco Hoekwater
Aditya Mahajan wrote: core-ver.tex to suggest such a behaviour. Is this a bug or a feature? Feature, I think. Use of color is the default behavior when colors are enabled. Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl

[NTG-context] Unexpected behaviour of setuptyping

2006-03-05 Thread Aditya Mahajan
Conisder \setupcolors[state=start] \setuptyping[option=anything] %Any value that is not a valid option % none, color, normal, commands, slanted \starttext \startbuffer $\sum_{i=1}^n \frac{1}{2} n \cdot (n+1)$ \stopbuffer \typebuffer \stoptext The text is typed

Re: [NTG-context] setuptyping

2006-01-30 Thread Hans Hagen
Taco Hoekwater wrote: Hans van der Meer wrote: I get some unexpected results with setuptyping. According to the manual the style-parameter has options normal, bold, small, etc. AFAICS, this has not worked in a very very long time, and it may even be a bug in the documentation

Re: [NTG-context] setuptyping

2006-01-30 Thread Hans Hagen
Taco Hoekwater wrote: Hans van der Meer wrote: I get some unexpected results with setuptyping. According to the manual the style-parameter has options normal, bold, small, etc. AFAICS, this has not worked in a very very long time, and it may even be a bug in the documentation

[NTG-context] setuptyping

2006-01-28 Thread Hans van der Meer
I get some unexpected results with setuptyping. According to the manual the style-parameter has options normal, bold, small, etc. But if I use them I get the option back. The only thing that seems to work is style=command. Example: \setuptyping[style=bold] \starttext \starttyping abcd

Re: [NTG-context] setuptyping

2006-01-28 Thread Radhelorn
Hans van der Meer wrote: I get some unexpected results with setuptyping. According to the manual the style-parameter has options normal, bold, small, etc. But if I use them I get the option back. The only thing that seems to work is style=command. Example: \setuptyping[style=bold

Re: [NTG-context] setuptyping

2006-01-28 Thread Taco Hoekwater
Hans van der Meer wrote: I get some unexpected results with setuptyping. According to the manual the style-parameter has options normal, bold, small, etc. AFAICS, this has not worked in a very very long time, and it may even be a bug in the documentation. But it was easy to fix the code, so

Re: [NTG-context] setuptyping

2006-01-28 Thread VnPenguin
On 1/27/06, Hans van der Meer [EMAIL PROTECTED] wrote: I get some unexpected results with setuptyping. According to the manual the style-parameter has options normal, bold, small, etc. But if I use them I get the option back. The only thing that seems to work is style=command. Example

Re: [NTG-context] setuptyping

2006-01-28 Thread Hans van der Meer
turn away from context, which would be a pity. So if you don't mind, I will continue to signal such things. Keeps you busy :-) yours sincerely, dr. H. van der Meer On Jan 28, 2006, at 12:23, Taco Hoekwater wrote: Hans van der Meer wrote: I get some unexpected results with setuptyping

[NTG-context] Re: \setuptyping

2003-09-18 Thread Patrick Gundlach
Jean-Pierre Le Narzul [EMAIL PROTECTED] writes: Hello, Thanks for your explanation. I understand the problem now ! But unfortunately, the example you provide is not working for me. The pdf file displays the wrong characters for both \starttyping \stoptyping ... Perhaps you don't have

[NTG-context] \setuptyping

2003-09-17 Thread Jean-Pierre Le Narzul
Hi, For typing Java code in a context document, I use \starttyping ... \stoptyping. I have a problem when I configure \setuptyping in the following way : \setuptyping[typing][color=black,style=\ss,escape=/,option=commands] If I put characters like { or _ in my source (between \starttyping

[NTG-context] Re: \setuptyping

2003-09-17 Thread Patrick Gundlach
: == \starttext \setuptyping[typing][color=black,style=\ss,escape=/,option=commands] \starttyping hello_world {brace} \stoptyping \setupencoding [default=ec] \usetypescript [all] [latin-modern] [\defaultencoding]% \setupbodyfont[reset]% \setupbodyfont[cmr]% \starttyping hello_world {brace

Re: [NTG-context] Re: \setuptyping

2003-09-17 Thread Jean-Pierre Le Narzul
. See for example latin-modern: == \starttext \setuptyping[typing][color=black,style=\ss,escape=/,option=commands] \starttyping hello_world {brace} \stoptyping \setupencoding [default=ec] \usetypescript [all] [latin-modern] [\defaultencoding

[NTG-context] Problem with setuptyping and interline space...

2003-09-07 Thread ^Nitram^
Hi, In document I have: \setupinterlinespace[medium] and I would like to have different interline space when I use: \starttyping ... \stoptyping I tried: \setuptyping [typing] [blank=each_possible_value_from_manual] ;) but there is no effect. What is wrong ?... -- Best regards Martin