Re: [NTG-context] \starttable ... \stoptable III
On 24-11-2010 7:20, Alan BRASLAU wrote: On Wednesday 24 November 2010 19:06:19 Hans Hagen wrote: ok, thanks for testing it ... I'm stripping that old code so bugs can creep in; I'm also considering removing the CL and such \CL[color] % colored line \BL[number_cells] % grey background (BL = ?) They are useful. What should replace them? tabulate and bTABLE if colors shows up again in table then it's as in tabulate now but i need some strong motivation for that 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] enumeration counters, way=bysection
Hi! I want to have the following (Theorems and Lemmas share the counter, way=bysection): Section 1. Foo Theorem 1.1 Bar Lemma 1.2 Baz Section 2. Foo Theorem 2.1 Bar Lemma 2.2 Baz The following used to work about a month or two ago. \setupenumerations[way=bysection] \newcounter\theorems \defineenumeration[thm] [text=Theorem,prefix=yes,prefixsegments=section,counter=theorems] \defineenumeration[lem] [text=Lemma,prefix=yes,prefixsegments=section,counter=theorems] \starttext \dorecurse{5}{ \section{Foo} \startthm Bar \stopthm \startlem Baz \stoplem } \stoptext Today the counter doesn't reset, i.e. I get Theorem 2.3, Lemma 2.4, Theorem 3.5 etc. How can I fix it? ___ 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] enumeration counters, way=bysection
Am 25.11.2010 um 09:54 schrieb Yury G. Kudryashov: The following used to work about a month or two ago. \setupenumerations[way=bysection] \newcounter\theorems \defineenumeration[thm] [text=Theorem,prefix=yes,prefixsegments=section,counter=theorems] \defineenumeration[lem] [text=Lemma,prefix=yes,prefixsegments=section,counter=theorems] \newcounter has nothing to do with enumeration counter the counter key expects the name from another enumeration, e.g. „thm“ \defineenumeration[thm][text=Theorem,prefix=yes,prefixsegments=section] \defineenumeration[lem][text=Lemma, prefix=yes,prefixsegments=section,counter=thm] 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] TEI - conTeXt - pdf
On Nov 24, 2010, at 11:47 PM, Jon Crump wrote: All, Having abandoned apache's FOP, I've now been trying to get my arms around XML typesetting with conTeXt with the help of Thomas's excellent tutorial at http://wiki.contextgarden.net/TEI_xml. With some difficulty I got the philostratus.xml/lorem ipsum example to work, save for errors like this from the \definemargins command: ! You can't use `\dimexpr' in restricted horizontal mode. (The marginal notations are typeset, but so are the distance arguments) What version of ConTeXt are you using? I don't get this error with the latest beta. Updating your MacTeX (which really is a slightly modified TeXLive) might be difficult, so I would recommend trying the minimals. Arabic: others will be able to help you; there is a number of Arabic users on this list some of whom are regulars. Good luck Thomas ___ 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] New Release Winedt WORKS with MKIV!!
Update on using MikTeX 2.9, ConTeXt MKIV, Winedt 6.?!!! First let me thank Mojca, Aditya, Ulrike and Hans for looking into this. I received a suggestion to remove Miktex Full and install Miktex basic. That did NOT work as I like lucida and lucida math which will not function correctly using Miktex basic. So here is what I did to make it all work: 1. uninstall Miktex 2.9 basic 2. Install Miktex 2.9 complete 3.Go to Miktex\doc\latex\circuitikz and rename context.tex some other name. For some reason known only to Christian Schenk Miktex searches until it finds that sample and attempts to use it. So renaming that file allows luatex to kick in and start processing. Finally success! now all I need to do is figure out how to invoke bibiliographies in MKIV using bibstyle econometrica. Thanks to all!!! ___ 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] New Release Winedt WORKS with MKIV!!
Am Tue, 23 Nov 2010 19:43:13 +0100 schrieb Mojca Miklavec: limited utf-8 is now available -- so interesting that Aleks made MkIV default --, don't know when/if-ever bidi support will be there ... I don't know if bidi will ever be there either, but the sole fact that it supports UTF-8 is already surprising (the editor lags behing for ages in that respect) and enough for a vast majority of TeX users. The limited utf-8-support has been there for years. And it is really very limited: WinEdt is not capable to handle utf-8 documents that require more than one code page (eg. a mix of Russian and French). I don't care very much as I'm not using other scripts. In the few cases I need access to chars from other codepages I can use -notation. Or use emacs. -- Ulrike Fischer ___ 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 on MikTeX
Am Wed, 24 Nov 2010 09:27:32 + schrieb Richard Stephens: Hello all, As I cannot use rsynch to update ConTeXt, I was wondering if the MikTeX distribution might provide an alternative route to getting updates. There are questions: 1) The Wiki page on MikTeX (http://wiki.contextgarden.net/MikTeX) still says it's broken. I presume this is out of date? Yes. 2) Does MKIV work in MikTeX? In principle yes. There is a problem with the search pathes: context finds files everywhere in the texmf-trees. This can lead to problems. 3) How often will the MikTeX distribution be updated with a new ConTeXt? No idea. 4) Does TeXworks (which is part of MikTeX distribution) work with ConTeXt? I didn't try but I don't see a reason why not. You will have to add tool which calls context.exe. I had no problems to adapt winedt. -- Ulrike Fischer ___ 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] \starttable ... \stoptable III
On Thursday 25 November 2010 09:49:39 Hans Hagen wrote: On 24-11-2010 7:20, Alan BRASLAU wrote: On Wednesday 24 November 2010 19:06:19 Hans Hagen wrote: ok, thanks for testing it ... I'm stripping that old code so bugs can creep in; I'm also considering removing the CL and such \CL[color] % colored line \BL[number_cells] % grey background (BL = ?) They are useful. What should replace them? tabulate and bTABLE if colors shows up again in table then it's as in tabulate now but i need some strong motivation for that The logic behind table (tables, and tabulate) differs greatly from that of bTABLE. Their use is different and one may be more natural than the other, depending on one's point of view. Both mechanisms have their legitimate place in ConTeXt. I see that tabulate is recommended (http://wiki.contextgarden.net/Tables_Overview) and that table and tables are deprecated. I suppose that this is due to an internal re-write. What remains to be implemented in tabulate in order to fully replace table and tables? According to the wiki: vertical lines. The wiki is out-of-date, however, for in mkiv \VL is % present but not yet 100% ok So if tabulate is indeed to replace table and tables, perhaps they should be eliminated. For backward compatibility, perhaps starttable and starttables could be synonymes for starttabulate? Or perhaps I am missing something. Alan ___ 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 on MikTeX
On Wed, Nov 24, 2010 at 10:27, Richard Stephens wrote: As I cannot use rsynch to update ConTeXt, I was wondering if the MikTeX distribution might provide an alternative route to getting updates. There are questions: Is it a firewall problem or something else? 3) How often will the MikTeX distribution be updated with a new ConTeXt? I guess I only need updating a couple of times a year, now that MKIV is looking pretty good. You need to ask Christian Schenk about that. ConTeXt is tightly bound to a specific LuaTeX version. So until version of LuaTeX is updated in MikTeX, there is no way to update ConTeXt there (unless somebody does a heavy patching or backporting of features; which won't happen). It is quite possible that LuaTeX will only be updated with MikTeX 2.10. The history of MikTeX says that there have usually been major version releases in intervals from 8 months up to 3 years, so maybe you won't see any ConTeXt update in MikTeX during the next year or two. I used to have two separate trees: one for MikTeX and one from Pragma and if MikTeX failed, I switched the distribution temporary. 4) Does TeXworks (which is part of MikTeX distribution) work with ConTeXt? There is no reason why it shouldn't. Mojca ___ 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] New Release Winedt WORKS with MKIV!!
On Thu, Nov 25, 2010 at 11:01:17AM +0100, Ulrike Fischer wrote: Am Tue, 23 Nov 2010 19:43:13 +0100 schrieb Mojca Miklavec: limited utf-8 is now available -- so interesting that Aleks made MkIV default --, don't know when/if-ever bidi support will be there ... I don't know if bidi will ever be there either, but the sole fact that it supports UTF-8 is already surprising (the editor lags behing for ages in that respect) and enough for a vast majority of TeX users. The limited utf-8-support has been there for years. And it is really very limited: WinEdt is not capable to handle utf-8 documents that require more than one code page (eg. a mix of Russian and French). I've seen all sorts of limited unicode support, but that one is really retarded, I can't actually imagine how such thing would be coded! 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] New Release Winedt WORKS with MKIV!!
Am Thu, 25 Nov 2010 12:31:05 +0200 schrieb Khaled Hosny: limited utf-8 is now available -- so interesting that Aleks made MkIV default --, don't know when/if-ever bidi support will be there ... I don't know if bidi will ever be there either, but the sole fact that it supports UTF-8 is already surprising (the editor lags behing for ages in that respect) and enough for a vast majority of TeX users. The limited utf-8-support has been there for years. And it is really very limited: WinEdt is not capable to handle utf-8 documents that require more than one code page (eg. a mix of Russian and French). I've seen all sorts of limited unicode support, but that one is really retarded, I can't actually imagine how such thing would be coded! It is a simple mapping to a 256 codepage: To quote from the documentation: However, WinEdt can transparently convert Unicode (UTF-8) documents into ACP when they are loaded and back to UTF-8 when they are saved. This makes it possible to work with UTF-8 documents as long as they can be converted into ACP (Ansi Code Page). -- Ulrike Fischer ___ 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] MkII index bug?
Hi Hans, playing with the solution for Horacio the line \enableregime[utf] stops treating index entries and its subentries right in MkII. %\enableregime[utf] \starttext \placeregister[index] \page A\index[arbol+rojo]{arbol+rojo}\page B\index[araña+linda]{araña+linda}\page C\index[arbol+verde]{arbol+verde}\page D\index[araña+grande]{araña+grande}\page E\index[arbol+blanco]{arbol+blanco}\page \stoptext Creator:ConTeXt - 2010.11.20 12:51 Producer: pdfTeX-1.40.11 Jano ___ 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] Set the space after a figure?
I want to setup the space after the figure (caption inclusive), i tried \setupfloat[figure][spaceafter = mediaum], no change after i compile, then i tried \setupfloat[figure][after=\blank[big], no change again? Anyway to do this? ___ 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 on MikTeX
As I cannot use rsynch to update ConTeXt, I was wondering if the MikTeX distribution might provide an alternative route to getting updates. Is it a firewall problem or something else? Firewall. I am protected by two company firewalls (so I'm told). There is no prospect of opening ports that are currently blocked and 'tunnelling' or whatever it's called would be seen as a contavention of company rules! 3) How often will the MikTeX distribution be updated with a new ConTeXt? I guess I only need updating a couple of times a year, now that MKIV is looking pretty good. You need to ask Christian Schenk about that. ConTeXt is tightly bound to a specific LuaTeX version. So until version of LuaTeX is updated in MikTeX, there is no way to update ConTeXt there (unless somebody does a heavy patching or backporting of features; which won't happen). It is quite possible that LuaTeX will only be updated with MikTeX 2.10. The history of MikTeX says that there have usually been major version releases in intervals from 8 months up to 3 years, so maybe you won't see any ConTeXt update in MikTeX during the next year or two. I guess I'll carry on using my own update method then: I download cont-tmf.zip (from http://www.pragma-ade.com/download-2.htm) then hunt for new binaries in the directory tree at http://minimals.contextgarden.net/. It's a pain but it seems to work at the moment. It would be nice if there were a .zip file that contained the latest binaries to go into texmf-mswin/bin. But perhaps that would open up another can of worms!? Perhaps now that MKIV has most features working I could just update with the stable releases rather than the betas. Thanks for your help. Richard Converteam UK Ltd. Registration Number: 5571739 and Converteam Ltd. Registration Number: 2416188 Registered in England and Wales. Registered office: Boughton Road, Rugby, Warwickshire, CV21 1BU. CONFIDENTIALITY : This e-mail and any attachments are confidential and may be privileged. If you are not a named recipient, please notify the sender immediately and do not disclose the contents to another person, use it for any purpose or store or copy the information in any medium. http://www.converteam.com Please consider the environment before printing this e-mail. ___ 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] Ctx Lua: determination of the language being used
Hello, how to determine the current language being used in Ctx source via Lua? I mean soumething like: --- \mainlanguage[cz] \starttext AAA \startluacode if context.mainlanguage == cz then -- Do something specific context(Ahoj!) elseif context.mainlanguage == en then -- Do something specific context(Hello!) else end \stopluacode \stoptext --- So is there something like 'context.mainlanguage' or 'context.mainlanguage()' or 'tex.mainlanguage' or ...? 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 ___ 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 on MikTeX
On Thu, Nov 25, 2010 at 12:46, Richard Stephens wrote: I guess I'll carry on using my own update method then: I download cont-tmf.zip (from http://www.pragma-ade.com/download-2.htm) then hunt for new binaries in the directory tree at http://minimals.contextgarden.net/. It's a pain but it seems to work at the moment. It would be nice if there were a .zip file that contained the latest binaries to go into texmf-mswin/bin. But perhaps that would open up another can of worms!? Perhaps now that MKIV has most features working I could just update with the stable releases rather than the betas. There is this one: http://minimals.contextgarden.net/pragma/ but it's not being updated on regular basis. At least not yet. I need to get back to this sometime soon ... Mojca ___ 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] Ctx Lua: determination of the language being used
Am 25.11.2010 um 12:49 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello, how to determine the current language being used in Ctx source via Lua? I mean soumething like: --- \mainlanguage[cz] \starttext AAA \startluacode if context.mainlanguage == cz then -- Do something specific context(Ahoj!) elseif context.mainlanguage == en then -- Do something specific context(Hello!) else end \stopluacode \stoptext --- So is there something like 'context.mainlanguage' or 'context.mainlanguage()' or 'tex.mainlanguage' or ...? \mainlanguage[...] - \currentmainlanguage \language[...] - \currentlanguage 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] Set the space after a figure?
Dear seasoul, here are some general remarks (I didn't try if this works at all or not) that are independent of your particular problem: On Thu, Nov 25, 2010 at 12:34, seasoul wrote: I want to setup the space after the figure (caption inclusive), i tried \setupfloat[figure][spaceafter = mediaum], - you may not use any space; you would need to write spaceafter=medium and not spaceafter = medium - medium is misspelled - I suspect that spaceafter is only for setupfloats, not for setupfloat, but I didn't really try or read the source; so maybe \setupfloats[spaceafter=medium] could work no change after i compile, then i tried \setupfloat[figure][after=\blank[big], no change again? You need to use after={\blank[big]} that is: you need braces, else the closing bracket of big will also close setupfloat. The following is from one of my old documents: \setupformulas [spacebefore=0.6cm,spaceafter=0.6cm] \setupfloats [spacebefore=0.8cm,spaceafter=0.8cm] Mojca ___ 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] Set the space after a figure?
Am 25.11.2010 um 12:34 schrieb seasoul: I want to setup the space after the figure (caption inclusive), i tried \setupfloat[figure][spaceafter = mediaum], Remove the spaces: \setupfloat[figure][spaceafter=medium] 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] \starttable ... \stoptable III
Am 25.11.2010 um 11:16 schrieb Alan BRASLAU: So if tabulate is indeed to replace table and tables, perhaps they should be eliminated. For backward compatibility, perhaps starttable and starttables could be synonymes for starttabulate? Or perhaps I am missing something. Tables has different spacing between the rows (\FL, \ML, etc.) than tabulate and you can span columns which isn’t supported by tabulate. What tables miss is the indent feature from tabulate in narrower environments and itemize. 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] Ctx Lua: determination of the language being used
On 11/25/2010 01:13 PM, Wolfgang Schuster wrote: Am 25.11.2010 um 12:49 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello, how to determine the current language being used in Ctx source via Lua? I mean soumething like: --- \mainlanguage[cz] \starttext AAA \startluacode if context.mainlanguage == cz then -- Do something specific context(Ahoj!) elseif context.mainlanguage == en then -- Do something specific context(Hello!) else end \stopluacode \stoptext --- So is there something like 'context.mainlanguage' or 'context.mainlanguage()' or 'tex.mainlanguage' or ...? \mainlanguage[...] - \currentmainlanguage \language[...] - \currentlanguage For the benefit of the mailing list archive, this means you can write in lua: if \currentmainlanguage==cz then Except that that will not work because 'cz' is just an alias for 'cs', so you should test for that instead: if \currentmainlanguage==cs then context(Ahoj!) elseif \currentmainlanguage==en then context(Hello!) Best wishes, Taco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] tables and column spanning
Dear Hans, In MKIV I miss the probably recently dropped command \use{number-of-column} from \starttable ... \stoptable environment. In MKII it still works perfectly fine. Here's an example from Wiki for testing: \starttable[s(0pt)|ls(10pt)|rs(0pt)|] \HL \NC \use{2}\ReFormat[cB]{Spanning head} \SR \HL \NC \Use{2}[cB]{Spanning head} \SR % slightly shorted \HL \NC left column text\VL right column text \NC \AR \NC new row \VL new row \NC \AR \NC left column text\VL \ReFormat[l]{reformatted} \NC \AR \HL \NC \use{2}Spanning entry \SR \HL \stoptable Mojca PS: I cannot use \bTABLE since it is very ugly. ___ 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] Ctx Lua: determination of the language being used
... Thanks to both. So - On Thu, 25 Nov 2010 13:31:36 +0100, Taco Hoekwater t...@elvenkind.com wrote: On 11/25/2010 01:13 PM, Wolfgang Schuster wrote: Am 25.11.2010 um 12:49 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello, how to determine the current language being used in Ctx source via Lua? I mean soumething like: --- \mainlanguage[cz] \starttext AAA \startluacode if context.mainlanguage == cz then -- Do something specific context(Ahoj!) elseif context.mainlanguage == en then -- Do something specific context(Hello!) else end \stopluacode \stoptext --- So is there something like 'context.mainlanguage' or 'context.mainlanguage()' or 'tex.mainlanguage' or ...? \mainlanguage[...] - \currentmainlanguage \language[...] - \currentlanguage For the benefit of the mailing list archive, this means you can write in lua: if \currentmainlanguage==cz then Except that that will not work because 'cz' is just an alias for 'cs', so you should test for that instead: if \currentmainlanguage==cs then context(Ahoj!) elseif \currentmainlanguage==en then context(Hello!) Best wishes, Taco - In standalone Lua, the \c would be read (translated) as c, as \c is not a valid escape sequence. See the test: --- Microsoft Windows XP [Verze 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Lukas\ConTeXt\Samples\LuaTestlua Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio a=\currentmainlanguage =a currentmainlanguage =(\currentmainlanguage==currentmainlanguage) true -- SO \c BECOMES c --- So does it mean that \char (in the beginning of a string) in Lua for ConTeXt is a hack which expands a (Con)TeX(t) internal value (in the case that char is not a valid escape char)? - If so, how to get an internal (Con)TeX(t) value which begins with a valid escape char, e.g. 't', so e.g. \textwidth? (\t should become tab in this case, or am I wrong?) (Where to read about? I've been searching in luatexref-t.pdf...) Lukas ___ 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] Ctx Lua: determination of the language being used
On 11/25/2010 02:16 PM, Procházka Lukáš Ing. - Pontex s. r. o. wrote: So does it mean that \char (in the beginning of a string) in Lua for ConTeXt is a hack which expands a (Con)TeX(t) internal value (in the case that char is not a valid escape char)? No, nothing as complicated as that: \currentmainlanguage is an expandable macro, so it simply expands to its actual content: cs This also means that my proposed solution will not work if you put it in a separate lua file: you have to convert it to a lua function in that case that takes \currentmainlanguage as an argument. Best wishes, Taco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Ctx Lua: determination of the language being used
On Thu, 25 Nov 2010 14:22:18 +0100, Taco Hoekwater t...@elvenkind.com wrote: On 11/25/2010 02:16 PM, Procházka Lukáš Ing. - Pontex s. r. o. wrote: No, nothing as complicated as that: \currentmainlanguage is an expandable macro, so it simply expands to its actual content: cs This also means that my proposed solution will not work if you put it in a separate lua file: you have to convert it to a lua function in that case that takes \currentmainlanguage as an argument. ... And using this in a separate file is also what I'd need. So do I have to do something like: --- A.mkiv \startluacode function currentmainlanguage() return \currentmainlanguage end -- Or: the_currentmainlanguage = \currentmainlanguage dofile(A.lua) \stopluacode --- And: --- A.lua if currentmainlanguage() == cs then -- Or: if the_currentmainlanguage = cs then -- Something end --- OK? (Suggestion: Wouldn't be nice to have function(s) or variable(s) like e.g. 'context.environment[currentmainlanguage]' or something like this?) Best regards, Lukas (To Taco: Sorry, I sent the same message to your private address first.) ___ 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] enumeration counters, way=bysection
Wolfgang Schuster wrote: Am 25.11.2010 um 09:54 schrieb Yury G. Kudryashov: The following used to work about a month or two ago. \setupenumerations[way=bysection] \newcounter\theorems \defineenumeration[thm] [text=Theorem,prefix=yes,prefixsegments=section,counter=theorems] \defineenumeration[lem] [text=Lemma,prefix=yes,prefixsegments=section,counter=theorems] \newcounter has nothing to do with enumeration counter the counter key expects the name from another enumeration, e.g. „thm“ Thanks! ___ 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] Ctx Lua: determination of the language being used
On 11/25/2010 02:43 PM, Procházka Lukáš Ing. - Pontex s. r. o. wrote: ... And using this in a separate file is also what I'd need. So do I have to do something like: Something like that, yes. But it depends a little on what you want to do: because \currentmainlanguage expands, you will get the value that is active during the first scan of the lua code block, which may not be what you want, but it is hard to judge without the actual use case. (Suggestion: Wouldn't be nice to have function(s) or variable(s) like e.g. 'context.environment[currentmainlanguage]' or something like this?) Yes, agreed, something like that would be useful. The same applies to some other things, like color and active modes. Some of these are probably there already, but it would be nice if they were documented. Best wishes, Taco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Wondering how to get bibliography sorted by author
Hans, I see on the wiki that MKIV has bibliography reenabled. I put this code in my document: \setupbibtex[database={mybib},sort=author] text text text \completepublications[criterium=all] \placepublications[criterium=all] but the references are ordered by occurance NOT alphabetical by author. Could you point me in the right direction to get the list alphabetically sorted please? barney ___ 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] Ctx Lua: determination of the language being used
On 25-11-2010 4:13, Taco Hoekwater wrote: On 11/25/2010 02:43 PM, Procházka Lukáš Ing. - Pontex s. r. o. wrote: ... And using this in a separate file is also what I'd need. So do I have to do something like: Something like that, yes. But it depends a little on what you want to do: because \currentmainlanguage expands, you will get the value that is active during the first scan of the lua code block, which may not be what you want, but it is hard to judge without the actual use case. (Suggestion: Wouldn't be nice to have function(s) or variable(s) like e.g. 'context.environment[currentmainlanguage]' or something like this?) Yes, agreed, something like that would be useful. The same applies to some other things, like color and active modes. Some of these are probably there already, but it would be nice if they were documented. it's not so hard to interface that but we need to pick up the current value \ctxlua{tex.sprint(languages.numbers[1])} however, tex does not privide access to the current language so i'd have to introduce an extra counter at the tex end anyhow, for the moment you can use languages.numbers[tex.count.mainlanguagenumber] which probably gives you wat you want: en - 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] \todo
[OT / Emacs-related] It would be nice to have a ConTeXt export for org-mode! Is there any org-mode users? Le 23/11/2010 20:46, Procházka Lukáš a écrit : ... OK, thanks both for the inspiration. Lukas ___ 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] Bibliography contains references not cited in the text
Hi All, I am having trouble with the bib module. The bibliography section of my article contains references that I have not cited in the text. These are in my .bib file, but it seems to me that references that were not cited in the text were ignored when constructing the bibliography. This is a minimal example. The bib file is attached. Thanks very much for your help. \setuppapersize[letter][letter] \setuplayout[backspace=1.25in, width=middle,topspace=0.75in,headerheight=0.5in,bottomspace=0.75in,footerheight=0.5in] \setupwhitespace[medium] \setuppagenumbering[location=footer] \setuphead[section][textstyle=bold, numberstyle=bold, continue=yes] \usemodule[bib] \setupbibtex[database=templib] \setuppublications[refcommand=authoryear] \setupcite[authoryears][left=,right=] \starttext \section{Main Body} This file is for testing whether the bibliography works. There seems to be some problem. Let us first cite \cite[Aghion1991], then we will cite \cite[authoryears][Trefler1993]. In the new para we cite: \cite[Segal2003] \section{References} \placepublications[criterium=all] \stoptext templib.bib 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] \todo
Quoting Renaud AUBIN au...@nibua-r.org: [OT / Emacs-related] It would be nice to have a ConTeXt export for org-mode! Is there any org-mode users? Yes. I have been using org-mode for about 2 years, and I'm now doing everything except e-mail there. I have files like lectures.org that would contain everything pertaining to lectures: Dates and TODOs that I can export to the agenda, links to papers, tables with data, code blocks acting on those data (babel), and lecture notes and handouts that I export to pdf. The way I'm doing that is: export to a (latex) .tex file (provided by org-mode) and then converting to a ConTEXt .tex file with a (still very primitive) ruby script I wrote for the purpose. One of the advantages is that, in order to communicate with my colleagues, I can export to html and then (as long as the document is not too complicated) import it in OpenOffice. Cheers, Jörg This message was sent using IMP, the Internet Messaging Program. ___ 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] \todo
Hi Jörg, It would be nice to have a native ConTeXt support… Ok ⇒ on my someday.org ;) I'm interested by your (even-still-very-primitive) ruby script… Renaud, implementing GTD with org-mode for 3 months Yes. I have been using org-mode for about 2 years, and I'm now doing everything except e-mail there. I have files like lectures.org that would contain everything pertaining to lectures: Dates and TODOs that I can export to the agenda, links to papers, tables with data, code blocks acting on those data (babel), and lecture notes and handouts that I export to pdf. The way I'm doing that is: export to a (latex) .tex file (provided by org-mode) and then converting to a ConTEXt .tex file with a (still very primitive) ruby script I wrote for the purpose. One of the advantages is that, in order to communicate with my colleagues, I can export to html and then (as long as the document is not too complicated) import it in OpenOffice. Cheers, Jörg ___ 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] \todo
Quoting Renaud AUBIN au...@nibua-r.org: It would be nice to have a native ConTeXt support? I agree. I'm interested by your (even-still-very-primitive) ruby script? Ok. I'll be away bird-watching for a few days; I'll send you the script when I'm back and have time - later next week -- with a few notes. Cheers, Jörg Yes. I have been using org-mode for about 2 years, and I'm now doing everything except e-mail there. I have files like lectures.org that would contain everything pertaining to lectures: Dates and TODOs that I can export to the agenda, links to papers, tables with data, code blocks acting on those data (babel), and lecture notes and handouts that I export to pdf. The way I'm doing that is: export to a (latex) .tex file (provided by org-mode) and then converting to a ConTEXt .tex file with a (still very primitive) ruby script I wrote for the purpose. One of the advantages is that, in order to communicate with my colleagues, I can export to html and then (as long as the document is not too complicated) import it in OpenOffice. Cheers, Jörg ___ 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 ___ This message was sent using IMP, the Internet Messaging Program. ___ 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] \inmargin / full textwidth line interac tion (was Toward the use of inleft…)
Since my previous post doesn't seem inspiring at all (sniff), here is a simplified and more precise description of what need to be done: 1 − I need a full textwidth black line as separator with a short title centered vertically at left 2 − This separator must be followed by text, and the inbetween vertical space must be configurable (i.e. .5lineheight or a full lineheight doesn't satisfy me) My first idea has been to combine a vertically centered line with inleft or inmargin but that introduces an annoying afterspace… Another idea could be to combine some \hairlines or full textwidth fillinline but then don't know how to vertically align my inmargin text… −−− TEST \setuplayout[reset] \setuplayout[ location=singlesided, leftedge=0mm, leftmargin=25mm, rightedge=0mm, rightmargin=0mm, backspace=40mm, topspace=10mm, bottomspace=10mm, header=0mm, headerdistance=0mm, footer=0mm, footerdistance=0mm, margindistance=0mm, height=fit, width=fit, grid=yes] \setuppagenumbering[state=stop] \setupinmargin[style=normal,align=outer] \starttext \inmargin{blurp}{\line{\leaders\hbox{\vrule width 1pt height .5\strutht depth -\dimexpr.5\strutht-\linewidth\relax} \hfil}} This is not a test \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] analog of \hdotsfor command
Hi. 2010/11/24 Aditya Mahajan adit...@umich.edu: On Wed, 24 Nov 2010, Vladimir Lomov wrote: Hi. Is there analog of \hdotsfor command in context (mkiv)? The description of \hdotsfor command is in amsldoc.pdf[1] on page 11. [1] http://mirror.ctan.org/macros/latex/required/amslatex/math/amsldoc.pdf I don't think there is an equivalent context macro. But hdotsfor should just be a combination of \span\omit + \hdotfill. The command \hdotfill is not defined (in TeX Live 2010 context with updates from tlcontrib.metatex.org and in context minimal). So, just copying the definition from amsmath.sty should work. I looked into this definition and think that it uses some LaTeX commands. I could convert it to context but I'd like to have test files, so not right now. We need to think of a good syntax for matrices in ConTeXt to handle such things. Command \start/stopmatrix is good enough, but you mean matrix as visual representation. --- WBR, Vladimir Lomov ___ 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] \HL[...] in mkiv
runs in mkii and mkiv, but the optional argument for \HL is only valid for mkii. For mkiv it is not taken into account. \starttext \starttable[|c|c|c|c|c|c|c|c|c|c|]\HL \VL 1 \VL 2 \VL 3 \VL 4 \VL 5 \VL 6 \VL 7 \VL 8 \VL 9 \VL 10 \VL\AR\HL[5] \stoptable \stoptext Herbert ___ 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] \starttable ... \stoptable III
On Thursday 25 November 2010 13:16:38 Wolfgang Schuster wrote: Am 25.11.2010 um 11:16 schrieb Alan BRASLAU: So if tabulate is indeed to replace table and tables, perhaps they should be eliminated. For backward compatibility, perhaps starttable and starttables could be synonymes for starttabulate? Or perhaps I am missing something. Tables has different spacing between the rows (\FL, \ML, etc.) than tabulate and you can span columns which isn’t supported by tabulate. What tables miss is the indent feature from tabulate in narrower environments and itemize. Would it be logical to merge table, tables, and tabulate? The choice can be a bit confusing. Alan ___ 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] Strange behavior of '\setupmathematics' and '\iint'
Hi. I faced with strange (for me) behavior of combination of '\setupmathematics' and '\iint'. Consider the following example: example name=ex1.tex \setupbodyfont[xits] \setupmathematics[integral=displaylimits] \starttext This is a sample. \startformula \exp^{\imath\phi}=\cos\phi+\imath\sin\phi \stopformula \startformula \int_{a}^{b}f(x)\text{d}x=F(x)+C \stopformula \startformula \iint_{D}f(x,y)\text{d}x\text{d}y=\mu(D),\quad\text{here $\mu$ is a measure} \stopformula \stoptext /example If I comment line with '\etupmathematics' then I could compile the example without error. The shown example however gives error when compiled by context (mkiv): error ! Missing } inserted. inserted text } to be read again $ \stopdisplaymath -\stopinnermath $ $\par \afterdisplayspace \par \egroup \dostopformula ...eter \c!alternative \v!formula } \dostoptagged \dostoptagge... l.21 \stopformula ? /error Does this mean that 1) something wrong with font setup? 2) mathematics setup? P.S. I took fonts (symlink) from TL2010 installed in parallel. --- WBR, Vladimir Lomov ___ 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 ___