[NTG-context] issue with \setuptyping (and XML sources)
Dear list, the issue I’m experiencing comes from XML sources typeset with ConTeXt. I have tried, but I found no way to get a minimal sample. For code fragments in the XML source, I use: \bgroup\xmlprettyprinttext{#1}{none}\egroup To which I apply: \setuptyping [style={\tt\wider}, margin=yes, align={right, broad}, blank={3*halfline}, before={\blank[3*halfline]}, after={\blank[3*halfline]}] Could anyone be so kind to explain me why the first three options from \setuptyping work (style, margin and alignment), and the other three don’t work at all? Sorry, I think it has to be a stupid mistake of mine (but I don’t know which one it might be). Many thanks for your help, Pablo ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
Re: [NTG-context] line numbering for \setuptyping
On 9/24/22 19:56, Pablo Rodriguez via ntg-context wrote: > [...] > Which \setuplinenumbering is applied to typing fragments? > > Just in case my question isn’t clear: how can I get "step=3" in the > sample above? Hi there, I reply this question myself: "step" is a key in "\setuptyping" ("\setuplinenumbering[typing]" won’t work here). Other options for line numbering are configured with "\setuplinenumbering[typing]". Just in case it might help for future reference, 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] line numbering for \setuptyping
Dear list, I have the following sample: \setuplinenumbering[typing] [step=3] \starttext \starttyping[numbering=line] Line Line Line \stoptyping \stoptext Which \setuplinenumbering is applied to typing fragments? Just in case my question isn’t clear: how can I get "step=3" in the sample above? Many thanks for your help, 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] indent in \setuptyping
Dear list, I have the following sample: \showframe \setuppapersize[A8] \setuptyping [align={right,broad}, strip=yes, lines=yes, blank=halfline] \starttext \startXML content content content content content content content content \stopXML \stoptext Which is the option to have the first contents broken and indented automatically by ConTeXt? I have tried all possible options from https://www.pragma-ade.com/general/qrcs/setup-en.pdf#page=266. I had no luck. I remember that this worked (but I couldn’t find the message from Hans where he added the option [years ago...]). Many thanks for your 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] option=tex in setuptyping causes the background to be drawn twice
Hans Hagen schrieb am 28.04.2019 um 18:42: 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}, \c!style={\typingparameter\c!style}] In buff-imp-tex.mkiv these values are inherited: \definestartstop [TexSnippet] [DefaultSnippet] So I can fix this locally by resetting before and after keys for TexSnippet. What would be a good fix in buff-imp-default? I assume 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 \stoptext 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] option=tex in setuptyping causes the background to be drawn twice
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}, \c!style={\typingparameter\c!style}] In buff-imp-tex.mkiv these values are inherited: \definestartstop [TexSnippet] [DefaultSnippet] So I can fix this locally by resetting before and after keys for TexSnippet. What would be a good fix in buff-imp-default? I assume Wolfgang will cook up a patch ... 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] option=tex in setuptyping causes the background to be drawn twice
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 are inherited: \definestartstop [TexSnippet] [DefaultSnippet] So I can fix this locally by resetting before and after keys for TexSnippet. What would be a good fix in buff-imp-default? Aditya___ 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] option=tex in setuptyping causes the background to be drawn twice
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 are inherited: \definestartstop [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, before=\startEXAMPLE, after=\stopEXAMPLE] \starttext \starttyping A = B + C \stoptyping \stoptext gives the attached output where the background is repeated twice. The bug is present with both mkiv and ltmx. Aditya ___ 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 ___ ___ 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] option=tex in setuptyping causes the background to be drawn twice
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 \stoptyping \stoptext gives the attached output where the background is repeated twice. The bug is present with both mkiv and ltmx. Aditya test.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] setuptyping
Hi Alan, the difference between both is that smalltype switches to the monospace font while small uses the default style (in most cases a serif font). Wolfgang Alan Braslau schrieb am 11.09.18 um 16:13: Wolfgang, There is also [style=small]. Is it preferable to use style=smalltype? Also, there is [style=bigger], which is a bit inconsistent (with [style=small] rather than "smaller"). I would have expected "style=big", especially as the value "big" is already used in other contexts. Alan On Mon, 10 Sep 2018 22:16:04 +0200 Wolfgang Schuster wrote: 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 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 Elvenkind BV ___ 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 ___ ___ 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 ___ ___ 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] setuptyping
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 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 Elvenkind BV ___ 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 ___ ___ 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] setuptyping
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 Elvenkind BV ___ 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] setuptyping
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 Description: Adobe PDF document typingsetup.tex Description: Binary data . dr. 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] three issues with \setuptyping
Hans, [I have reported this before the meeting, but it was wiser to wait after the meeting was over.] I have the following sample: %~ \usemodule[scite] \starttext \startTEXpage[offset=2em] \startTEX This is text. % a comment, not \comment \stopTEX \startXML This is text. \stopXML \startLUA if code=="code" then --this is a comment --[[ this is a multiline comment --]] not part of the comment ---[[ this isn’t a multiline comment ---]] \stopLUA \stopTEXpage \stoptext I’m experiencing three issues: 1. Both TeX and Lua comments only mark (in bold and darkyellow) the comment character, but not the comment content. 2. Multiline Lua comments remove the first line break after the comment begins. Brackets are also affected from first issue. 3. XML comment characters are marked as 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 same color and font (TeX, Lua and XML)? Could you fix the issue with removed line break in multiline comments? 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] lines in \setuptyping
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 difference between the two: Many thanks for the info, Aditya. Pablo > \setuppapersize[A6] > \showframe > > \starttext > \starttyping[lines=no] > Here is some text with very very long line that goes on > \stoptyping > > \starttyping[lines=yes] > Here is some text with very very long line that goes on > \stoptyping > > \stoptext -- 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] lines in \setuptyping
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: \setuppapersize[A6] \showframe \starttext \starttyping[lines=no] Here is some text with very very long line that goes on \stoptyping \starttyping[lines=yes] Here is some text with very very long line that goes on \stoptyping \stoptext Exactly the same breaks in both cases using beta from 2017.08.29 19:35. BTW, I realized that I can fake extra line breaks with a non-breaking space. 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] lines in \setuptyping
On Tue, 29 Aug 2017, Hans Hagen wrote: On 8/29/2017 9:02 PM, Pablo Rodriguez wrote: On 08/29/2017 07:25 PM, Hans Hagen wrote: On 8/29/2017 4:43 PM, Pablo Rodriguez wrote: [...] I thought the lines key should display multiple lines when they are in the code. How should I got the multiple 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 with very very long line that goes on \stoptyping \starttyping[lines=yes] Here is some text with very very long line that goes on \stoptyping \stoptext Aditya ___ 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] lines in \setuptyping
On 8/29/2017 9:02 PM, Pablo Rodriguez wrote: On 08/29/2017 07:25 PM, Hans Hagen wrote: On 8/29/2017 4:43 PM, Pablo Rodriguez wrote: [...] I thought the lines key should display multiple lines when they are in the code. How should I got the multiple 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 - 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] lines in \setuptyping
On 08/29/2017 07:25 PM, Hans Hagen wrote: > On 8/29/2017 4:43 PM, Pablo Rodriguez wrote: >> [...] >> I thought the lines key should display multiple lines when they are in >> the code. >> >> How should I got the multiple 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? I need this to provide a sample in a ConTeXt introduction of empty lines collapse in ConTeXt. 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] lines in \setuptyping
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 display multiple lines when they are in the code. How should I got the multiple lines in the sample above? empty lines are always collapsed 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 ___
[NTG-context] lines in \setuptyping
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 should I got the multiple lines in the sample above? 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] having all lines with \setuptyping
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 segundo. Y el tercero. \stoptext \stopTEX\stopxcell \startxcell\startTEXlines \starttext Esto es un único párrafo. Y aquí está el segundo. Y el tercero. \stoptext \stopTEXlines\stopxcell \stopxrow\stopxtable \stoptext I need to show that there is more than one blank line where required. I assumed \setuptyping[lines=yes] should do that. Am I wrong or is there a bug here? (I’m using beta from 2017.08.15 12:35.) 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setuptyping[lines=yes] bug in beta?
On 10/23/2013 12:28 PM, Wolfgang Schuster wrote: > Am 22.10.2013 um 19:47 schrieb Pablo Rodriguez : > >> 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}] Many thanks again for your help, Wolfgang. This is exactly what I need. 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] \setuptyping[lines=yes] bug in beta?
Am 22.10.2013 um 19:47 schrieb Pablo Rodriguez : > 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 ___ 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] \setuptyping[lines=yes] bug in beta?
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 antigua, rocín flaco y galgo corredor.\stopvariante[MRU] \stoptyping \stoptext gets lines broken wrong in beta from 15.10 (I have just updated the ConTeXt Suite, but I get no newer beta), but lines are broken right with MkIV in http://live.contextgarden.net. I think this may be a bug. 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] Problem with \setuptyping-ed \typefile
... 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 wrote: Am 13.01.2011 um 11:35 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: You need \definetyping[Model][...]. Wolfgang -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 ___ 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] Problem with \setuptyping-ed \typefile
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 ___ 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] Problem with \setuptyping-ed \typefile
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, I'm getting: --- MTXrun | run 1: luatex --fmt="c:/ConTeXt/tex/texmf-cache/luatex-cache/context/f53042fa2e1c106bc7e3383ec8c \write18 enabled. (C:/Lukas/Jobs/Holesov.PDPS/SO_201/Statics.Tx/SV/t2.mkiv ConTeXt ver: 2011.01.12 10:20 MKIV fmt: 2011.1.13 int: english/english ... (c:/ConTeXt/tex/texmf-context/tex/context/base/bxml-apa.mkiv) systems : begin file C:/Lukas/Jobs/Holesov.PDPS/SO_201/Statics.Tx/SV/t2.mkiv at line 3 ! Missing number, treated as zero. \relax \docheckverbatimmargins ...er \c!oddmargin \relax \ifzeropt \scratchskip \el... --- Best 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 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 t2.log Description: Binary data t2.mkiv Description: Binary data ABCabc ___ 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] \setuptyping and \type{}
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 to convince Hans to add a command key to \setuptype, untill > then you can use this: > > \unexpanded\def\mytype{\groupedcommand{\setgroupedtype\inframed}{\relax}} > > \starttext > one \mytype{\two} three > \stoptext Thanks Wolfgang. Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer ___ 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] \setuptyping and \type{}
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} > > > >\starttyping > >aa > >\stoptyping > >\stoptext > > the next beta will have: > > \starttext > > test \type[left=(,right=),command=\inframed]{test} > > \stoptext > > but command is somewhat restricted as it does not get an argument > but something \bgroup..\egroup which is fine for anything that gets > boxed Thanks Hans! Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer ___ 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] \setuptyping and \type{}
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 test \type[left=(,right=),command=\inframed]{test} \stoptext but command is somewhat restricted as it does not get an argument but something \bgroup..\egroup which is fine for anything that gets boxed - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setuptyping and \type{}
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' then (but it's not yet there) - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setuptyping and \type{}
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 this: \unexpanded\def\mytype{\groupedcommand{\setgroupedtype\inframed}{\relax}} \starttext one \mytype{\two} three \stoptext „before“ and „after“ keys are used only for environments to change the spacing (e.g. before=\blank) at the begin and end of a environment or to frame it (e.g. before=\startframedtext). 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] \setuptyping and \type{}
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 of Arabeyes.org team Free font developer ___ 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] \setuptyping: font size
... Much better, thanks! Lukas On Wed, 01 Dec 2010 17:00:59 +0100, Wolfgang Schuster 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á 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 ___ 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] \setuptyping: font size
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 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] \setuptyping: font size
... 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. wrote: Hello Hans - On Wed, 01 Dec 2010 15:32:05 +0100, Hans Hagen 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 \starttext \typefile[default]{t2.mkiv} \stoptext --- I got a result (seems desired), but with error return code: --- MTXrun | run 1: luatex --fmt="c:/ConTeXt/tex/texmf-cache/luatex-cache/context/f53042fa2e1c106bc7e3383ec8c3a00c/formats/cont-en" --lua="c:/ConTeXt/tex/texmf-cache/luatex-cache/context/f53042fa2e1c106bc7e3383ec8c3a00c/formats/cont-en.lui" --backend=pdf "C:/Lukas/ConTeXt/Cont-Tst/t2.mki \write18 enabled. (C:/Lukas/ConTeXt/Cont-Tst/t2.mkiv ConTeXt ver: 2010.11.27 14:27 MKIV fmt: 2010.11.29 int: english/english system : cont-new loaded (c:/ConTeXt/tex/texmf-context/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (c:/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv)) system : cont-fil.mkiv loaded (c:/ConTeXt/tex/texmf-context/tex/context/base/cont-fil.mkiv loading : ConTeXt File Synonyms ) system : cont-sys.rme loaded (c:/ConTeXt/tex/texmf-context/tex/context/user/cont-sys.rme (c:/ConTeXt/tex/texmf-context/tex/context/base/type-def.mkiv) (c:/ConTeXt/tex/texmf-context/tex/context/base/type-lua.mkiv) (c:/ConTeXt/tex/texmf-context/tex/context/base/type-siz.mkiv) (c:/ConTeXt/tex/texmf-context/tex/cont system : cont-err loaded (c:/ConTeXt/tex/texmf-context/tex/context/base/cont-err.tex systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead ) system : t2.top loaded (t2.top ){c:/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-math.map}{c:/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{c:/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} bodyfont: 12pt rm is loaded fonts : preloading latin modern fonts (first stage) language: language en is active publications: loading formatting style from bxml-apa (c:/ConTeXt/tex/texmf-context/tex/context/base/bxml-apa.mkiv) systems : begin file C:/Lukas/ConTeXt/Cont-Tst/t2.mkiv at line 5 ! Missing number, treated as zero. \relax \docheckverbatimmargins ...er \c!oddmargin \relax \ifzeropt \scratchskip \el... \firststageinitializetyping ...eckverbatimmargins \dosettypingattributes \c!... \dodododotypefile ... \firststageinitializetyping \secondstageinitializetypi... \dotypefile ...le {#3}} {\dododotypefile {#1}{#3}} \else \dododotypefile \v!f... l.6 \typefile[default]{t2.mkiv} ! Illegal unit of measure (pt inserted). ... MTXrun | fatal error: return code: 1 --- The source file and the log are attached... Lukas t2.log Description: Binary data t2.mkiv Description: Binary data t2.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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setuptyping: font size
Hello Hans - On Wed, 01 Dec 2010 15:32:05 +0100, Hans Hagen 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 \starttext \typefile[default]{t2.mkiv} \stoptext --- I got a result (seems desired), but with error return code: --- MTXrun | run 1: luatex --fmt="c:/ConTeXt/tex/texmf-cache/luatex-cache/context/f53042fa2e1c106bc7e3383ec8c3a00c/formats/cont-en" --lua="c:/ConTeXt/tex/texmf-cache/luatex-cache/context/f53042fa2e1c106bc7e3383ec8c3a00c/formats/cont-en.lui" --backend=pdf "C:/Lukas/ConTeXt/Cont-Tst/t2.mki \write18 enabled. (C:/Lukas/ConTeXt/Cont-Tst/t2.mkiv ConTeXt ver: 2010.11.27 14:27 MKIV fmt: 2010.11.29 int: english/english system : cont-new loaded (c:/ConTeXt/tex/texmf-context/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (c:/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv)) system : cont-fil.mkiv loaded (c:/ConTeXt/tex/texmf-context/tex/context/base/cont-fil.mkiv loading : ConTeXt File Synonyms ) system : cont-sys.rme loaded (c:/ConTeXt/tex/texmf-context/tex/context/user/cont-sys.rme (c:/ConTeXt/tex/texmf-context/tex/context/base/type-def.mkiv) (c:/ConTeXt/tex/texmf-context/tex/context/base/type-lua.mkiv) (c:/ConTeXt/tex/texmf-context/tex/context/base/type-siz.mkiv) (c:/ConTeXt/tex/texmf-context/tex/cont system : cont-err loaded (c:/ConTeXt/tex/texmf-context/tex/context/base/cont-err.tex systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead ) system : t2.top loaded (t2.top ){c:/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-math.map}{c:/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{c:/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} bodyfont: 12pt rm is loaded fonts : preloading latin modern fonts (first stage) language: language en is active publications: loading formatting style from bxml-apa (c:/ConTeXt/tex/texmf-context/tex/context/base/bxml-apa.mkiv) systems : begin file C:/Lukas/ConTeXt/Cont-Tst/t2.mkiv at line 5 ! Missing number, treated as zero. \relax \docheckverbatimmargins ...er \c!oddmargin \relax \ifzeropt \scratchskip \el... \firststageinitializetyping ...eckverbatimmargins \dosettypingattributes \c!... \dodododotypefile ... \firststageinitializetyping \secondstageinitializetypi... \dotypefile ...le {#3}} {\dododotypefile {#1}{#3}} \else \dododotypefile \v!f... l.6 \typefile[default]{t2.mkiv} ! Illegal unit of measure (pt inserted). ... MTXrun | fatal error: return code: 1 --- The source file and the log are attached... Lukas -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 t2.log Description: Binary data t2.mkiv Description: Binary data t2.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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setuptyping: font size
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 | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \setuptyping: font size
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 \setuptyping[default][bodyfont=8pt,style=\tt\setupinterlinespace] % This works somehow but with errors %\setuptyping[default][style=\eightpoint\tt\setupinterlinespace] %\setuptyping[default][style=\viii\tt\setupinterlinespace] %\setuptyping[default][bodyfont=viii,style=\tt\setupinterlinespace] %\setuptyping[default][bodyfont=sixpoint,style=\tt\setupinterlinespace] \starttext \typefile[default]{t.mkiv} \stoptext --- A part of the error message: --- ! Missing number, treated as zero. \relax \docheckverbatimmargins ...er \c!oddmargin \relax \ifzeropt \scratchskip \el... \firststageinitializetyping ...eckverbatimmargins \dosettypingattributes \c!... \dodododotypefile ... \firststageinitializetyping \secondstageinitializetypi... \dotypefile ...le {#3}} {\dododotypefile {#1}{#3}} \else \dododotypefile \v!f... l.9 \typefile[default]{t.mkiv} --- The code "\setuptyping[default][bodyfont=8pt,style=\tt\setupinterlinespace]" used to work; but this may have been an accident - there is no option "bodyfont" for \setuptyping on wiki. So what is the CORRECT way how to select a specific font size for \setuptyping or \typefile? 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 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 t.mkiv Description: Binary data t.log Description: Binary data ___ 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] problem with \setuptyping[option=LUA, escape=//]
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: \startbuffer[typefile-test] btex-etex: // /btex \em sometex /etex xxx-yyy:// XXX \em sometex YYY zzz:// ZZZ \em sometex \stopbuffer \savebuffer[typefile-test][typefile-test] \definetyping[LUA] \starttext \section{file=zzz} \start \setuptyping[file][option=LUA, escape=ZZZ] \typefile{typefile-test} % problem here \stop \section{file=zzz, lua=xxx-yyy} \start \setuptyping[file][option=LUA, escape=ZZZ] \setuptyping[LUA][option=LUA, escape={XXX,YYY}] \startLUA btex-etex: // /btex \em sometex /etex xxx-yyy:// XXX \em sometex YYY zzz:// ZZZ \em sometex \stopLUA \typefile{typefile-test} % problem here \stop \section{file=zzz, lua=btex-etex} \start \setuptyping[file][option=LUA, escape=ZZZ] \setuptyping[LUA][option=LUA, escape={/btex,/etex}] \startLUA btex-etex: // /btex \em sometex /etex xxx-yyy:// XXX \em sometex YYY zzz:// ZZZ \em sometex \stopLUA \typefile{typefile-test} % problem here \stop \section{file=zzz, lua=zzz} \start \setuptyping[file][option=LUA, escape=ZZZ] \setuptyping[LUA][option=LUA, escape=ZZZ] \typefile{typefile-test} % problem here \stop \section{file=zzz, lua=zzz} \start \setuptyping[file][option=LUA, escape=ZZZ] \setuptyping[LUA][option=LUA, escape=ZZZ] \startLUA \stopLUA \typefile{typefile-test} % now it works \stop \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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] [***SPAM***] problem with \setuptyping[option=LUA, escape=//]
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}] \starttext \startLUA bla // /btex\em sometex /etex \stopLUA \stoptext Hopefully you wikify this Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] [***SPAM***] problem with \setuptyping[option=LUA, escape=//]
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/ ___ 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] \setuptyping[tab=...]
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 \stoptext fixed in next beta - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \setuptyping[tab=...]
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 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \setuptyping[numbering=line] don't emit line numbers
$ 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? ___ 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] setuptyping in MKIV
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 the % is colored. The color goes away if I set option=none. I think this is a bug, but cannot figure out its cause. it's just the fallback: \edef\prettyidentifier{\executeifdefined{\??ty\??ty\ascii}{TEX}}% add \setvalue{\??tp:\c!option:\empty}{\let\obeycharacters\relax} to buff-ver.mkiv and it will work ok Thanks. Aditya ___ 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] setuptyping in MKIV
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 option=none. I think this is a bug, but cannot figure out its cause. it's just the fallback: \edef\prettyidentifier{\executeifdefined{\??ty\??ty\ascii}{TEX}}% add \setvalue{\??tp:\c!option:\empty}{\let\obeycharacters\relax} to buff-ver.mkiv and it will work ok - 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 - ___ 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] setuptyping in MKIV
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 this is a bug, but cannot figure out its cause. Aditya ___ 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] feature request: \setuptyping[ignorefirstspace=yes]
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 some typing \stoptyping should be same as this: \starttyping some typing \stoptyping This: \startcolor[blue] \starttyping some typing \stoptyping \stopcolor should be same as this: \startcolor[blue] \starttyping some typing \stoptyping \stopcolor some text \stoptext Cheers, Peter -- 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] Palet option in setuptyping not working
Aditya Mahajan wrote: > On Thu, 11 Jan 2007, Berend de Boer wrote: > > >>Hi All, >> >>(I've repeated this post, because I didn't see any answers. Sample >>file included, you can easily check if I'm wrong or right). > > > I have not used palets before, so I do not know if something has > broken 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 hairy sometimes). Taco ___ 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
On Thu, 11 Jan 2007, Berend de Boer wrote: > Hi All, > > (I've repeated this post, because I didn't see any answers. Sample > file included, you can easily check if I'm wrong or right). I have not used palets before, so I do not know if something has broken 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. Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Palet option in setuptyping not working
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi All, (I've repeated this post, because I didn't see any answers. Sample file included, you can easily check if I'm wrong or right). It seems user palets don't work (anymore?), just downloaded the new version but still has the same problem as the version I used before (aug 2006). Sample file: - -- % interface=en \setupbodyfont [postscript,16pt] \setupcolors [state=start] \setupalign [hyphenated] \definepalet [MYcolorpretty] [prettyone=colorprettyone, prettytwo=colorprettytwo, 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 versions: This is pdfeTeXk, Version 3.141592-1.20a-2.2 (Web2C 7.5.3) (format=cont-en 2007.1.4) 4 JAN 2007 20:14 entering extended mode ConTeXt ver: 2007.01.02 13:44 MK II fmt: 2007.1.4 int: english/english - -- Live long and prosper, Berend de Boer PS: This email has been digitally signed if you wonder what the strange characters are that your outdated email client displays. PGP public key: http://www.pobox.com/~berend/berend-public-key.txt -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.3 (GNU/Linux) Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/> iD8DBQFFpUqYIyuuaiRyjTYRAlccAKCNjxWNXOJd3Z7I9XiYr3rRB5VQTQCfdgEJ AImWg4IZYM9fkXuFIM9TIjY= =gaQu -END PGP SIGNATURE- ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Unexpected behaviour of setuptyping
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 http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Unexpected behaviour of setuptyping
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 in color. I gave an invalid option and expected it to have no effect, but was pleasantly surprised that it gives color output. There is nothing in the definition of \setupcommonverbatim in core-ver.tex to suggest such a behaviour. Is this a bug or a feature? Aditya -- Aditya Mahajan, EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam || Ph: 7342624008 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] setuptyping
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. But it was easy to fix the code, > so see attached file with a small change to the \setupcommonverbatim > routine. > > for HansH: I did not want to call \startattributes, so I invented > a new macro called '\getstylevalue'. \def\verbatimfont{\dosetfontattribute{#1}\c!style\normalnoligatures\font}% so, there is a macro that kind of does what your's does: \dosetfontattribute i'll apply your patch (i need to move the attr code from core-spa to font-att or so) Hans - 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 ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] setuptyping
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. But it was easy to fix the code, > so see attached file with a small change to the \setupcommonverbatim > routine. it's indeed a bug in the documentation, and maybe a font parameter is better; the reason is that verbatim is one of the trickiest part of (any) tex macro package, if only because tex needs to be able to typeset tex > > for HansH: I did not want to call \startattributes, so I invented > a new macro called '\getstylevalue'. i'll have a look at it Hans - 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 ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] setuptyping
Thanks. It is of course a minor annoyance, because one can always give the font commands themselves. However, I think it is confusing for newcomers when these things are shown in the manual but will not work. One cannot expect from newcomers to delve into the code. As a result they might 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. >> 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 see attached file with a small change to the \setupcommonverbatim > routine. > > for HansH: I did not want to call \startattributes, so I invented > a new macro called '\getstylevalue'. > > Cheers, taco > > ___ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] setuptyping
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: > \setuptyping[style=bold] > \starttext > \starttyping > abcd > \stoptyping > \stoptext > > Results in typeset text "boldabcd" Yes, I got the same error here with: TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 tex : pdfeTeX, 3.141592-1.30.5-2.2 (Web2C 7.5.5) context : ver: 2006.01.28 10:09 cont-en : ver: 2006.01.28 10:09 fmt: 2006.1.28 mes: english But if you change to \setuptyping[style={\bf}] it works fine :-) -- http://vnoss.org Vietnamese Open Source Software Community ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] setuptyping
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 see attached file with a small change to the \setupcommonverbatim routine. for HansH: I did not want to call \startattributes, so I invented a new macro called '\getstylevalue'. Cheers, taco ma.tex Description: TeX document ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] setuptyping
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] > \starttext > \starttyping > abcd > \stoptyping > \stoptext > > Results in typeset text "boldabcd" > > yours sincerely, > dr. H. van der Meer > > > > ___ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context > > Try \setuptyping[style=\bf] -- always works. -- Radhelorn <[EMAIL PROTECTED]> ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] setuptyping
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 \stoptyping \stoptext Results in typeset text "boldabcd" yours sincerely, dr. H. van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: \setuptyping
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 latinmodern installed? Visit your local ctan node and look for fonts/lm. Or try another font with a "good" encoding. Patrick -- Silent is the goldfish in its bowl ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: \setuptyping
Hi, 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 ... jp PS: sorry for not providing an example in my first mail. I am using yours now Le jeudi, 18 sep 2003, à 00:18 Europe/Paris, Patrick Gundlach a écrit : Hi, Jean-Pierre Le Narzul <[EMAIL PROTECTED]> writes: Any idea ? Yes: don't use computer-modern fonts. They don't have { } and _ except for typewriter. Use any other font encoded in ec or texnansi or whatever encoding. 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]% \setupbodyfont[reset]% \setupbodyfont[cmr]% \starttyping hello_world {brace} \stoptyping \stoptext == Patrick PS: and please (!!!) provide a minimal but complete working (or no-working) example next time. It would save the others some time. -- Silent is the goldfish in its bowl ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: \setuptyping
Hi, Jean-Pierre Le Narzul <[EMAIL PROTECTED]> writes: > Any idea ? Yes: don't use computer-modern fonts. They don't have { } and _ except for typewriter. Use any other font encoded in ec or texnansi or whatever encoding. 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]% \setupbodyfont[reset]% \setupbodyfont[cmr]% \starttyping hello_world {brace} \stoptyping \stoptext == Patrick PS: and please (!!!) provide a minimal but complete working (or no-working) example next time. It would save the others some time. -- Silent is the goldfish in its bowl ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \setuptyping
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 and \stoptyping) , they do not appear in the produced document { character is replaced by - character _ character is replaced by ' character etc If I configure setuptyping in the following way \setuptyping[typing][color=black,style=\tt,escape=/,option=commands] (just change \ss to \tt) everything is ok ! Any idea ? thanks in advance for any help jp ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Problem with setuptyping and interline space...
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 ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context