[NTG-context] typo in context current
Hi, \setuplayout[grid=yes] fails with the current current, because of this small typo in spac-ver.mkiv: --- spac-ver.mkiv.orig 2011-05-17 12:17:33.0 +0200 +++ spac-ver.mkiv 2011-06-05 10:16:16.995334850 +0200 @@ -1374,7 +1374,7 @@ \resetsystemmode\v!grid \resetsnapvalue} -\def\docheckgridsnappinyes +\def\docheckgridsnappingyes {\gridsnappingtrue \setsystemmode\v!grid \autosetsnapvalue\askedgridmode} ___ 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] \define[1]\command or \define\command[1]? (was: math: command for absolute value: `\define\abs[1]{\lvert #1 \rvert}` throws `\lvert -\Udelimiter`.)
Dear Otared, Am Samstag, den 04.06.2011, 23:59 +0200 schrieb Otared Kavian: I think the error comes from your way of using \define: you use \define\abs[1]{\lvert #1 \rvert} instead of \define[1]\abs{\lvert#1\rvert} the following works fine for me: \starttext %\define[1]\abs{|#1|} % this works \define[1]\abs{\lvert#1\rvert} % this works too $\abs{-1} = 1$ \stoptext thank you very much for the solution. I took my definition from the Wiki [1]. Could the developers please clarify the correct syntax so that it can be updated in the source or the Wiki. Thanks, Paul [1] http://wiki.contextgarden.net/Reference/en/define signature.asc Description: This is a digitally signed message part ___ 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] [solved] \define[1]\command or \define\command[1]? (was: math: command for absolute value: `\define\abs[1]{\lvert #1 \rvert}` throws `\lvert -\Udelimiter`.)
Dear ConTeXt folks, Am Sonntag, den 05.06.2011, 12:11 +0200 schrieb Paul Menzel: Am Samstag, den 04.06.2011, 23:59 +0200 schrieb Otared Kavian: I think the error comes from your way of using \define: you use \define\abs[1]{\lvert #1 \rvert} instead of \define[1]\abs{\lvert#1\rvert} the following works fine for me: \starttext %\define[1]\abs{|#1|} % this works \define[1]\abs{\lvert#1\rvert} % this works too $\abs{-1} = 1$ \stoptext thank you very much for the solution. I took my definition from the Wiki [1]. Could the developers please clarify the correct syntax so that it can be updated in the source or the Wiki. I am sorry. I messed up and confused the LaTeX syntax (?) (`texdoc amsldoc`) and the one in the Wiki. I am sorry for the noise. Thanks, Paul [1] http://wiki.contextgarden.net/Reference/en/define signature.asc Description: This is a digitally signed message part ___ 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] \define[1]\command or \define\command[1]? (was: math: command for absolute value: `\define\abs[1]{\lvert #1 \rvert}` throws `\lvert -\Udelimiter`.)
Am 05.06.2011 um 12:11 schrieb Paul Menzel: thank you very much for the solution. I took my definition from the Wiki [1]. Could the developers please clarify the correct syntax so that it can be updated in the source or the Wiki. The wiki entry is correct, the syntax is \define[number of arguments]\name of the command{do something with the arguments} When you want a command without argument you can omit the brackets and write \define\command{...} 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] DocBook in ConTeXt - any new ideas?
On 4-6-2011 2:24, Aditya Mahajan wrote: On Jun 4, 2011, at 5:06 AM, Hans Hagenpra...@wxs.nl wrote: On 4-6-2011 10:21, R. Ermers wrote: Adding the prefix cals: to the tag names (thus making the file invalid, which is contrary to the docbook philosophy), using the cals table module and the directives is not enough, at least the cals tables in my valid xml docbook document were never typeset. can be any prefix (namespace) ... the code that implements it uses a namespace in order to avoid a mixup IIRC, the namespace was hardcoded in the parser (or the call to the parser). Robert's trouble with the cals table could have been resolved if there were a user option to set (or disable) the cals namespace. No, the namespace is just used to isolate code so 'cals' is an abstraction. However, the assumption is indeed is that when used in an xml file there is a namespace (afaiks in docbook they embed the cals model, so it's not used as an independent definition). When in x-cals.lua the following is used in line 128 local prefix = namespace and namespace ~= and (namespace .. :) or one can do this then: \startxmlsetups xml:cals:nonamespace \xmlsetfunction {main} {table} {moduledata.cals.table} \stopxmlsetups \xmlregistersetup{xml:cals:nonamespace} (I need to check such a change for side effects.) (BTW, x-cals-test.xml in the testsuite shows all kind of namespace remapping / usage) 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] testing TeX Live 2011
Dear Mojca, dear Taco, Thank you for sharing th einfo on TexLIve 2011 pretest. I would like to let you know that I downloaded mactex20110529.mpkg.zip from one of the sites on http://tug.org/texlive/pretest.html and after unzipping, tried to install the pacjkage for pretesting. However, I get an error message stating that: The package could not be completed. (com.apple.installer.pagecontroller error -1.) Couldn't open mactex20110529.mpkg. This is just to inform you about an issue (I use only ConTeXt from th eminimals at this point). Best regards: OK On 4 juin 2011, at 10:10, Taco Hoekwater wrote: Hi, For those of you who are not 'in the loop', so to say: instructions for running the texlive 2011 pretest are here: http://tug.org/texlive/pretest.html 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 ___ ___ 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] testing TeX Live 2011
On Sun, Jun 5, 2011 at 13:34, Otared Kavian wrote: Dear Mojca, dear Taco, Thank you for sharing th einfo on TexLIve 2011 pretest. I would like to let you know that I downloaded mactex20110529.mpkg.zip from one of the sites on http://tug.org/texlive/pretest.html and after unzipping, tried to install the pacjkage for pretesting. However, I get an error message stating that: The package could not be completed. (com.apple.installer.pagecontroller error -1.) Couldn't open mactex20110529.mpkg. This is just to inform you about an issue (I use only ConTeXt from th eminimals at this point). In past emails on the list you mention that you are using Snow Leopard. I guess the same is true for the machine where you tested MacTeX or do you happen to have some Tiger left somewhere in the corner? The weird thing is that the same file worked for me on 64-bit SL (10.6.7) a few days ago and unless there is some file corruption present (but then it wouldn't even unzip properly), mactex didn't change since then. Mojca PS: Not relevant for your report, but I would warn you that MacTeX doesn't yet have an out-of-the-box working ConTeXt (you need to update context first, but even then there are some problems with outdated texmfcnf.lua file), but that was probably already evident from the release date that is part of the name as we only got a properly working ConTeXt today in the morning (tomorow morning follows another no-so-critical fix). ___ 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] testing TeX Live 2011
Hi Mojca, Sorry for not having stated the OS and machine on which I tried the MacTex package: yes I am on a Mac Intel Core 2 Duo, and Mac OS X 10.6.7. Right now I don't have Tiger at hand, but maybe I can find one with a friend willing to try. Regarding what you say about your experience of MacTex under Mac OS X 10.6.7, it is indeed weird that it doesn't work for me. Would it be possible that unzipping with Zipeg (an application which I use for expanding zipped files) may explain the difference between your experience and mine? Thanks again for your efforts for bringing ConTeXt in various flavors to the Mac community! Best regards: OK On 5 juin 2011, at 14:54, Mojca Miklavec wrote: On Sun, Jun 5, 2011 at 13:34, Otared Kavian wrote: Dear Mojca, dear Taco, Thank you for sharing th einfo on TexLIve 2011 pretest. I would like to let you know that I downloaded mactex20110529.mpkg.zip from one of the sites on http://tug.org/texlive/pretest.html and after unzipping, tried to install the pacjkage for pretesting. However, I get an error message stating that: The package could not be completed. (com.apple.installer.pagecontroller error -1.) Couldn't open mactex20110529.mpkg. This is just to inform you about an issue (I use only ConTeXt from th eminimals at this point). In past emails on the list you mention that you are using Snow Leopard. I guess the same is true for the machine where you tested MacTeX or do you happen to have some Tiger left somewhere in the corner? The weird thing is that the same file worked for me on 64-bit SL (10.6.7) a few days ago and unless there is some file corruption present (but then it wouldn't even unzip properly), mactex didn't change since then. Mojca PS: Not relevant for your report, but I would warn you that MacTeX doesn't yet have an out-of-the-box working ConTeXt (you need to update context first, but even then there are some problems with outdated texmfcnf.lua file), but that was probably already evident from the release date that is part of the name as we only got a properly working ConTeXt today in the morning (tomorow morning follows another no-so-critical fix). ___ 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 ___ %% Otared Kavian Département de Mathématiques Université de Versailles Saint-Quentin Bâtiment Fermat 45 avenue des Etats Unis 78035 Versailles cedex Téléphone: +33 1 39 25 46 42 Secrétariat: +33 1 39 25 46 44 Secrétariat: +33 1 39 25 46 46 e-mail: otared.kav...@math.uvsq.fr ___ 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] testing TeX Live 2011
Do you know mactex On Sun, Jun 5, 2011 at 20:03, Otared Kavian wrote: Hi Mojca, Sorry for not having stated the OS and machine on which I tried the MacTex package: yes I am on a Mac Intel Core 2 Duo, and Mac OS X 10.6.7. Right now I don't have Tiger at hand, but maybe I can find one with a friend willing to try. Regarding what you say about your experience of MacTex under Mac OS X 10.6.7, it is indeed weird that it doesn't work for me. Would it be possible that unzipping with Zipeg (an application which I use for expanding zipped files) may explain the difference between your experience and mine? If the program is faulty or if there were problems with download (incomplete download for example) and your program ignored that, yes. But in general this is not very common. You can try md5sum mactex20110529.mpkg.zip and try to unzip with something else. I would say that it might be best to ask Richard Koch, the author of MacTeX, but I'm not sure that he would be able to help either. An alternative is to wait for the next version of MacTeX and see if that one is going to work any better. 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] Include a list in a list, for example, a List of Figures in a Table of Content
Yes, I would like to obtain :(page 1)Table of ContentList of Figures1 Chapter(page 2)List of Figures1.1 Cow.I could use, instead of \completeLOF, something like :\chapter{List of Figures}\placeLOFbut then I would have to adjust many other things and it becomes very messy. Mathieu Date: Fri, 3 Jun 2011 22:55:28 +0200 From: pra...@wxs.nl To: ntg-context@ntg.nl CC: mathieudup...@hotmail.com Subject: Re: [NTG-context] Include a list in a list, for example, a List of Figures in a Table of Content On 3-6-2011 7:10, Mathieu DUPONT wrote: Hi, How can one include a list into another list ?The \definecombinedlist command doesn't work.I tried to find other ways but didn't find anything that worked. Thanks for help ! \definecombinedlist[TOC][chapter,LOF]\definecombinedlist[LOF][figure] \setupheadtext[TOC=Table of Content]\setupheadtext[LOF=List of Figures] \starttext \completeTOC\completeLOF \chapter{Chapter}\placefigure{Cow.}{\externalfigure[cow]} \stoptext What do you expect? Can you give some ascii art example? 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] Wiki Topics Menu
Yes, actually your help led me to the following page, which is exactly what I was looking for: http://wiki.contextgarden.net/Special:Categories I think it would be useful to have an obvious link to it on the Wiki main page. Thanks a lot Pont ! Mathieu Date: Sat, 4 Jun 2011 12:28:01 +1200 From: p...@talvi.net To: ntg-context@ntg.nl Subject: Re: [NTG-context] Wiki Topics Menu On Fri 03 Jun 2011, Mathieu DUPONT wrote: Is there a menu page on the wiki to see all the topics/pages there are, such as these few examples : Do you mean something like http://wiki.contextgarden.net/Special:AllPages ? http://wiki.contextgarden.net/Special:SpecialPages has some other resources of a similar nature. Pont ___ 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] No chapter prefixes in section numbers
Ok, thank you very much for the great work Wolfgang ! For now I guess I could look at the source code of a command to find out its properties (I am not familiar with TeX but maybe I can figure out a few things). I tried http://source.contextgarden.net/ but I can't find out how to find the script of a command. Can you help me out ? Thanks ! Mathieu From: schuster.wolfg...@googlemail.com Date: Sat, 4 Jun 2011 14:35:04 +0200 To: ntg-context@ntg.nl Subject: Re: [NTG-context] No chapter prefixes in section numbers Am 03.06.2011 um 21:43 schrieb Mathieu DUPONT:Is there an exhaustive list of all the parameters the \setuphead function can take ? Neither the 2011 ConTeXt Commands Manual nor the Wiki Command Reference page mention this one (sectionsegments). Where can I find all the parameters one ConTeXt command can take ? I’m working on a update for the command reference but it will stilltake some time unless i have looked in all source files. Even wheni have the list it won’t always help you because the reference isonly a list with all valid keys and values but it doesn’t explainthe meaning of them and how they need to be combined to havea certain output. 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 ___ ___ 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] Include a list in a list, for example, a List of Figures in a Table of Content
Am 06.06.2011 um 01:19 schrieb Mathieu Dupont: Yes, I would like to obtain : (page 1) Table of Content List of Figures 1 Chapter (page 2) List of Figures 1.1 Cow. I could use, instead of \completeLOF, something like : \chapter{List of Figures} \placeLOF but then I would have to adjust many other things and it becomes very messy. You want this? \setuplist[chapter][after={\placelist[figure]}] \setuplist[figure][label=figure,width=6em] \starttext \completecontent \chapter{One} \placefigure{Two}{2} \section{Three} \placefigure{Four}{4} \chapter{Five} \placefigure{Six}{6} \section{Seven} \placefigure{Eight}{8} \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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___