[NTG-context] Trouble with # character in TABLE environment...
Hello, all Why is a problem with character # inside TABLE?? \type{#XXX} is without problem but inside TABLE is a problem with compilation It works: \bTABLE \bTR \bTD \type{\#patt}\eTD \eTR \eTABLE Isnt works: \bTABLE \bTR \bTD \type{#patt}\eTD \eTR \eTABLE Is there solving the problem?? Jaroslav Dne 24.8.2010 16:15, Wolfgang Schuster napsal(a): Am 24.08.10 15:53, schrieb Jaroslav Hajtmar: Hello all... I am converting any manual from HTML to ConTeXt. There are a lot of programm code. and in the code is very often % character. Ther is no problem in \startyping - \stoptyping environment, but I need using this in text ... for example The sequence \type{%0} stands for the whole match. The sequence \type{%%} stands for a single~\type{%}. or For instance, the call \type{string.format('%q', 'a string with quotes and \n new line')} will produce the string: ... etc.. 1. It is clear that this can not work, but is there any satisfactory solution?? Something like \startypingintext ... \stoptypingintext i.e. intext typing environment.. What prevents you from testting this yourself, \type{%} produce a '%' in the text. 2. in html code is often emphasis found inside the program code for example: code\emddd/em/code, Maybe it's a dumb question, but may be inside emphasis inside verbatim (\startyping - \stoptyping) environment?? Yes, it's possible to use style commands in verbatim mode but the mechanism in MkII and MkIV are different and it's important to know which system you use. 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] Virtual math
Hi all, I need directions on how to get started with a virtual math font... I'd like to take an existing math font, say Latin Modern, and replace certain glyphs by their corresponding ones from an OpenType font, say Minion Pro. (Proper math kerning won't be an issue at the moment since I'm having in mind a proof-of-principle type of thing.) How would I do that? Many thanks, Oliver ___ 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] ConTeXt meeting Lua tutorials
Am 24.08.2010 um 20:37 schrieb Oliver Buerschaper: Hi all, Today I started preparations for my activities at the ConTeXt meeting. There are two small lua tutorials in the program, and I am looking for input on both. There is one that is supposed to be a general beginner's introduction, and one specifically about fonts. For both, I am looking for input on what subjects I should cover? Since both tutorials will end up as articles/wiki pages, it makes sense to ask everybody on the list for input (but requests by actual attendees will be scored considerably higher). Perhaps some example to modify a font at runtime? I don't know whether that's possible at all, but if yes, it would be great to see how one could modify kerning tables etc. Often a font needs to be groomed but its license places some restrictions on modifying the file itself... +1 st. ___ 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] ConTeXt meeting Lua tutorials
On 25-8-2010 10:05, Steffen Wolfrum wrote: Am 24.08.2010 um 20:37 schrieb Oliver Buerschaper: Hi all, Today I started preparations for my activities at the ConTeXt meeting. There are two small lua tutorials in the program, and I am looking for input on both. There is one that is supposed to be a general beginner's introduction, and one specifically about fonts. For both, I am looking for input on what subjects I should cover? Since both tutorials will end up as articles/wiki pages, it makes sense to ask everybody on the list for input (but requests by actual attendees will be scored considerably higher). Perhaps some example to modify a font at runtime? I don't know whether that's possible at all, but if yes, it would be great to see how one could modify kerning tables etc. Often a font needs to be groomed but its license places some restrictions on modifying the file itself... +1 This is somewhat tricky. Actually I had a mechanism for that but I discarded the code. However there will be a feature like that some day as it needs a rather tight integration in the core of context's font handling. (btw, there is a feature for type 1 fonts that adds 'missing' kerns based on shape codes). 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 ___
Re: [NTG-context] Virtual math
On 25-8-2010 9:37, Oliver Buerschaper wrote: I need directions on how to get started with a virtual math font... I'd like to take an existing math font, say Latin Modern, and replace certain glyphs by their corresponding ones from an OpenType font, say Minion Pro. (Proper math kerning won't be an issue at the moment since I'm having in mind a proof-of-principle type of thing.) How would I do that? It depends on your goal. For instance if you want to support minion math, and it's not an otf font, then you need tfm with the right metrics. Given that they are in default tex encoding, you then just need to set up a virtual font definition (you can look into px-math.lfg to see how that is done for palatino). If your fonts have lots of exceptions you might need to create additional vectors. 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 ___
Re: [NTG-context] Trouble with # character in TABLE environment...
On 25-8-2010 9:27, Jaroslav Hajtmar wrote: Hello, all Why is a problem with character # inside TABLE?? \type{#XXX} is without problem but inside TABLE is a problem with compilation It works: \bTABLE \bTR \bTD \type{\#patt}\eTD \eTR \eTABLE Isnt works: \bTABLE \bTR \bTD \type{#patt}\eTD \eTR \eTABLE Is there solving the problem?? the next version will have \asciimode which will make all those chars regular characters (apart from % \ { }) - 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] Virtual math
I need directions on how to get started with a virtual math font... I'd like to take an existing math font, say Latin Modern, and replace certain glyphs by their corresponding ones from an OpenType font, say Minion Pro. (Proper math kerning won't be an issue at the moment since I'm having in mind a proof-of-principle type of thing.) How would I do that? It depends on your goal. For instance if you want to support minion math, and it's not an otf font, then you need tfm with the right metrics. Given that they are in default tex encoding, you then just need to set up a virtual font definition (you can look into px-math.lfg to see how that is done for palatino). If your fonts have lots of exceptions you might need to create additional vectors. This sounds complicated... almost as I expected ;-) I'm not quite sure what these vectors are good for... so for the sake of a simple scenario: I'd like to start with the standard Latin Modern math fonts but grab the lower case italic \alpha from the OpenType font MinionPro-It.otf. Would I need to write such an additional vector? Oliver ___ 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] Trouble with # character in TABLE environment... trouble with \starttyping environment too
Ok. Thanx Hans. I solve it with \#\type{patt} it look like as have it and therefore isnt problem. BUT now I have problem with \starttyping - \stoptyping environment too. here is example: This works OK... \starttyping c = re.compile([[ longstring - ('[' {:eq: '='* :} '[' close) = void close - ']' =eq ']' / . close ]], {void = function () return true end}) \stoptyping But when I add last row, then stop work and get error message: \starttyping c = re.compile([[ longstring - ('[' {:eq: '='* :} '[' close) = void close - ']' =eq ']' / . close ]], {void = function () return true end}) print(c:match'[==[]]=====]===[]') -- 17 \stoptyping Message error surprised me: systems : begin file lpeg.tex at line 32 ! LuaTeX error main ctx instance:7: ')' expected (to close '(' at line 1) near ']'. \dododowithbuffer ...!!bs \detokenize {#1}\!!es )} \dododowithbuffer \nododo... l.46 \stoptyping What system controlling inside \starttyping \ stoptyping environment? Thanx Jaroslav Dne 25.8.2010 11:46, Hans Hagen napsal(a): On 25-8-2010 9:27, Jaroslav Hajtmar wrote: Hello, all Why is a problem with character # inside TABLE?? \type{#XXX} is without problem but inside TABLE is a problem with compilation It works: \bTABLE \bTR \bTD \type{\#patt}\eTD \eTR \eTABLE Isnt works: \bTABLE \bTR \bTD \type{#patt}\eTD \eTR \eTABLE Is there solving the problem?? the next version will have \asciimode which will make all those chars regular characters (apart from % \ { }) - 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] Items with head
Hi all, in strc-itm.mkiv I found the following example: \def\MyItemCommand#1{{\bf#1}\quad} \setupitemgroup[itemize][command=\MyItemCommand] \startitemize \item {test} is this okay? \item {test} is this okay? \item {test} is this okay? \stopitemize Is it deprecated? Is there an alternative? Greeting Andreas ___ 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] Items with head
Am 25.08.2010 um 12:24 schrieb Andreas Harder: Hi all, in strc-itm.mkiv I found the following example: \def\MyItemCommand#1{{\bf#1}\quad} \setupitemgroup[itemize][command=\MyItemCommand] \startitemize \item {test} is this okay? \item {test} is this okay? \item {test} is this okay? \stopitemize Is it deprecated? Is there an alternative? I answer myself: one can use enumerations. ___ 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] \typefile without the last n lines
Hello, Here a little feature request: \starttext \typefile[start=1, stop=-3]{test.tex} % printing this file without the % last 3 lines % line to print \stoptext % don't print this line % don't print this line % don't print this line 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 ___
[NTG-context] [***SPAM***] Re: Trouble with # character in TABLE environment...
On Wed, Aug 25 2010, Hans Hagen wrote: the next version will have \asciimode which will make all those chars regular characters (apart from % \ { }) Why not %? 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] ConTeXt meeting Lua tutorials
How about including Lua library loading in the tutorial? The discussion of converting from pre-formats like Markdown seems like a good starting point for demonstrating how to load Lua libraries and integrate procedural programming into a ConTeXt workflow. Hopefully I will be there, still rounding up the cash but it looks like I might make it. On Wed, Aug 25, 2010 at 11:17 AM, Hans Hagen pra...@wxs.nl wrote: On 25-8-2010 10:05, Steffen Wolfrum wrote: Am 24.08.2010 um 20:37 schrieb Oliver Buerschaper: Hi all, Today I started preparations for my activities at the ConTeXt meeting. There are two small lua tutorials in the program, and I am looking for input on both. There is one that is supposed to be a general beginner's introduction, and one specifically about fonts. For both, I am looking for input on what subjects I should cover? Since both tutorials will end up as articles/wiki pages, it makes sense to ask everybody on the list for input (but requests by actual attendees will be scored considerably higher). Perhaps some example to modify a font at runtime? I don't know whether that's possible at all, but if yes, it would be great to see how one could modify kerning tables etc. Often a font needs to be groomed but its license places some restrictions on modifying the file itself... +1 This is somewhat tricky. Actually I had a mechanism for that but I discarded the code. However there will be a feature like that some day as it needs a rather tight integration in the core of context's font handling. (btw, there is a feature for type 1 fonts that adds 'missing' kerns based on shape codes). 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 ___ ___ 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] ConTeXt meeting Lua tutorials
On Wed, Aug 25, 2010 at 11:17:13AM +0200, Hans Hagen wrote: On 25-8-2010 10:05, Steffen Wolfrum wrote: Am 24.08.2010 um 20:37 schrieb Oliver Buerschaper: Hi all, Today I started preparations for my activities at the ConTeXt meeting. There are two small lua tutorials in the program, and I am looking for input on both. There is one that is supposed to be a general beginner's introduction, and one specifically about fonts. For both, I am looking for input on what subjects I should cover? Since both tutorials will end up as articles/wiki pages, it makes sense to ask everybody on the list for input (but requests by actual attendees will be scored considerably higher). Perhaps some example to modify a font at runtime? I don't know whether that's possible at all, but if yes, it would be great to see how one could modify kerning tables etc. Often a font needs to be groomed but its license places some restrictions on modifying the file itself... +1 This is somewhat tricky. Actually I had a mechanism for that but I discarded the code. However there will be a feature like that some day as it needs a rather tight integration in the core of context's font handling. (btw, there is a feature for type 1 fonts that adds 'missing' kerns based on shape codes). And there is font feature files, which, when not broken :), look the same to the OpenType handling code as if the feature were in the original font i.e. no special handling needed. 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] ConTeXt meeting Lua tutorials
On 25-8-2010 12:14, Steffen Wolfrum wrote: Am 25.08.2010 um 11:37 schrieb Hans Hagen: On 25-8-2010 11:22, Steffen Wolfrum wrote: Am 25.08.2010 um 11:17 schrieb Hans Hagen: On 25-8-2010 10:05, Steffen Wolfrum wrote: Am 24.08.2010 um 20:37 schrieb Oliver Buerschaper: Hi all, Today I started preparations for my activities at the ConTeXt meeting. There are two small lua tutorials in the program, and I am looking for input on both. There is one that is supposed to be a general beginner's introduction, and one specifically about fonts. For both, I am looking for input on what subjects I should cover? Since both tutorials will end up as articles/wiki pages, it makes sense to ask everybody on the list for input (but requests by actual attendees will be scored considerably higher). Perhaps some example to modify a font at runtime? I don't know whether that's possible at all, but if yes, it would be great to see how one could modify kerning tables etc. Often a font needs to be groomed but its license places some restrictions on modifying the file itself... +1 This is somewhat tricky. Actually I had a mechanism for that but I discarded the code. However there will be a feature like that some day as it needs a rather tight integration in the core of context's font handling. (btw, there is a feature for type 1 fonts that adds 'missing' kerns based on shape codes). Great! How can this feature be triggered? happens automatically \usetypescriptfile[type-ghz] \enabletrackers[afm.features] \starttext \definetypeface[main][rm][serif][melior][default] \setupbodyfont[main] test \stoptext reports (when not cached): load afm add ligatures load afm add tex-ligatures load afm add extra kerns Where does it report these lines? I looked at terminal output and compared the log files (no difference with/without enabletrackers) in vain. when not cached does mean the first time typesetting, no? fonts are cached so you will only see this if you erase the font cache - 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] [***SPAM***] Re: Trouble with # character in TABLE environment...
On 25-8-2010 12:42, Peter Münster wrote: On Wed, Aug 25 2010, Hans Hagen wrote: the next version will have \asciimode which will make all those chars regular characters (apart from % \ { }) Why not %? debatable but it's a comment things like this can be discussed extensively at the upcoming context meeting 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 ___
Re: [NTG-context] Trouble with # character in TABLE environment... trouble with \starttyping environment too
On 25-8-2010 12:07, Jaroslav Hajtmar wrote: Ok. Thanx Hans. I solve it with \#\type{patt} it look like as have it and therefore isnt problem. BUT now I have problem with \starttyping - \stoptyping environment too. here is example: This works OK... \starttyping c = re.compile([[ longstring - ('[' {:eq: '='* :} '[' close) = void close - ']' =eq ']' / . close ]], {void = function () return true end}) \stoptyping But when I add last row, then stop work and get error message: \starttyping c = re.compile([[ longstring - ('[' {:eq: '='* :} '[' close) = void close - ']' =eq ']' / . close ]], {void = function () return true end}) print(c:match'[==[]]=====]===[]') -- 17 \stoptyping Message error surprised me: mkiv happens to use === itself so either change your example to use 4 ='s or adapt this: \unprotect \def\!!bs{[=[} \def\!!es{]=]} \protect (i might even move to == instead of === as it's saves tokens) - 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] Items with head
On 25-8-2010 12:24, Andreas Harder wrote: \def\MyItemCommand#1{{\bf#1}\quad} \setupitemgroup[itemize][command=\MyItemCommand] \startitemize \item {test} is this okay? \item {test} is this okay? \item {test} is this okay? \stopitemize \unexpanded\def\MyItemCommand#1{{\bf#1}\quad} - 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] Virtual math
On 25-8-2010 12:01, Oliver Buerschaper wrote: I'm not quite sure what these vectors are good for... so for the sake of a simple scenario: I'd like to start with the standard Latin Modern math fonts but grab the lower case italic \alpha from the OpenType font MinionPro-It.otf. Would I need to write such an additional vector? i guess so technicaly i could support ranges but even then, greek is special as it has a noncontinuous vector - 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] [PATCH] small corrections for the ConTeXt-correspondence manual
Hi Paul, the source for the correspondence module is now online available. I created a new repository [1] with the latest version of the code, the manual compiles only with mkiv and there are no plans to change this. [1] http://bitbucket.org/wolfs/correspondence 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] footnote numbering reset bychapter
hello all in the sample bellow, when a \part have only one \chapter inside, the footnote number does not reset properly, but if there is more than one chapter in a part, it resets fine. thankyou % \starttext \setuphead[chapter][number=no,page=no]\setuphead[part][placehead=yes,number=no,page=no]\setupfootnotes[way=bychapter] \part Part I \chapter Chapter 1 Text Chapter 1\footnote{footnote 1 chapter 2} \part Part II \chapter Chapter 2 Texto chapter 2\footnote{Footnote 1 chapter 2. This footnote should be 1!!} \chapter Chapter 3 Texto chapter 3\footnote{footnote 1 chapter 3} \part Part III \chapter Chapter 4 Texto chapter 4\footnote{footnote 1 chapter 4} \part Part IV \chapter Chapter 5 Text chapter 5\footnote{footnote 1 chapter 5. This footnote shlould be 1 too.} \stoptext % Horacio Suarez ___ 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 ___
Re: [NTG-context] Trouble with # character in TABLE environment... trouble with \starttyping environment too
Thanx Hans, I did not think that inside \starttyping -- \stoptyping environment ConTeXt could do such a check this thing. Thanks so much. Health Jaroslav Dne 25.8.2010 13:34, Hans Hagen napsal(a): On 25-8-2010 12:07, Jaroslav Hajtmar wrote: Ok. Thanx Hans. I solve it with \#\type{patt} it look like as have it and therefore isnt problem. BUT now I have problem with \starttyping - \stoptyping environment too. here is example: This works OK... \starttyping c = re.compile([[ longstring - ('[' {:eq: '='* :} '[' close) = void close - ']' =eq ']' / . close ]], {void = function () return true end}) \stoptyping But when I add last row, then stop work and get error message: \starttyping c = re.compile([[ longstring - ('[' {:eq: '='* :} '[' close) = void close - ']' =eq ']' / . close ]], {void = function () return true end}) print(c:match'[==[]]=====]===[]') -- 17 \stoptyping Message error surprised me: mkiv happens to use === itself so either change your example to use 4 ='s or adapt this: \unprotect \def\!!bs{[=[} \def\!!es{]=]} \protect (i might even move to == instead of === as it's saves tokens) - 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] Trouble with # character in TABLE environment... trouble with \starttyping environment too
On Wed, 25 Aug 2010, Hans Hagen wrote: On 25-8-2010 12:07, Jaroslav Hajtmar wrote: Ok. Thanx Hans. I solve it with \#\type{patt} it look like as have it and therefore isnt problem. BUT now I have problem with \starttyping - \stoptyping environment too. here is example: This works OK... \starttyping c = re.compile([[ longstring - ('[' {:eq: '='* :} '[' close) = void close - ']' =eq ']' / . close ] ] , {void = function () return true end}) \stoptyping But when I add last row, then stop work and get error message: \starttyping c = re.compile([[ longstring - ('[' {:eq: '='* :} '[' close) = void close - ']' =eq ']' / . close ] ] , {void = function () return true end}) print(c:match'[==[]]=====]===[]') -- 17 \stoptyping Message error surprised me: mkiv happens to use === itself so either change your example to use 4 ='s or adapt this: \unprotect \def\!!bs{[=[} \def\!!es{]=]} \protect (i might even move to == instead of === as it's saves tokens) Is there a more robust way to do this? Perhaps making the number of equal signs user configurable? 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Trouble with # character in TABLE environment... trouble with \starttyping environment too
On 25-8-2010 8:49, Jaroslav Hajtmar wrote: Thanx Hans, I did not think that inside \starttyping -- \stoptyping environment ConTeXt could do such a check this thing. Well, the captured content is passed to the lua end using long strings so nothing is processed at that stage. Of course I could parse for embedded long strings but that a bit over the top I think. 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 ___
Re: [NTG-context] Trouble with # character in TABLE environment... trouble with \starttyping environment too
On 25-8-2010 8:59, Aditya Mahajan wrote: Is there a more robust way to do this? Perhaps making the number of equal signs user configurable? redefining \!!bs and \!!es is ok as they will not disappear after all, how often does one use [===[ and ]===] in lua code (in a non symmetrical way). 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] hoffset and voffset have no effect
Hi everyone, I cannot see any effect when using voffset and hoffset as a parameter for \startstandardmakeup. For example: \startstandardmakeup[headerstate=none, footerstate=none, hoffset=1in, hoffset=1in, width=4in, height=7.0in] ... \stopstandardmakeup I'd expect them to shift the page content up and to the right, respectively. This is guessing from their name: I actually cannot find any documentation on these parameters. Am I missing something? Thanks, Michael ___ 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] table row span question
I am having trouble working out a solution for spanning some rows of tables. The instructions at http://wiki.contextgarden.net/Table got me so far as the example shows. The example is a timetable excerpt. So I want horizontal lines everywhere, except on Mo, Di, Mi (Monday Tuesday Wednesday) where there are double periods. Adding any more \DLs or \VLs results in not being able to translate the file or other errors. Currently the horizontal lines are not where they should be (now on Mo, Mi, Fr) but kind of evenly spread. Lastly: How do I control row height? thanks! Martin \setuppapersize[A4,landscape][A4] \def\TagBreite{4cm} \starttext \placetable{Stundenplan} \starttable[|r w(1cm) |p(\TagBreite) c|p(\TagBreite) c|p(\TagBreite) c|p(\TagBreite) c|p(\TagBreite) c|] \HL \VL Std \VL Montag \VL Dienstag \VL Mittwoch \VL Donnerstag \VL Freitag \VL\FR \HL % Row Span \VL 1. \VL \LOW{mo}\VL \LOW{di}\VL \LOW{mi}\VL do leer \VL fr leer \VL\MR \DC \DL \DL \DL \DR \VL 2. \VL \VL \VL \VL do leer \VL fr leer \VL\MR \HL \VL 3. \VL class \VL class \VL class \VL do class \VL fr class \VL\MR \HL \stoptable \stoptext ___ 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] table row span question
于 2010年08月26日 12:42, Martin Althoff 写道: \DC \DL \DL \DL \DR As far as I know, this should be written as \DC \DL[3] \DR ___ 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 ___