[NTG-context] git repo is not updated?
Hello, I see that context minimals is at 2010-06-05 version, hovewer git repo [1] is last updated on 2010-05-29. http://contextgarden.wordpress.com/2009/07/29/news-from-the-git-repository/ Marius ___ 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] git repo is not updated?
On 5-6-2010 10:07, Marius wrote: Hello, I see that context minimals is at 2010-06-05 version, hovewer git repo [1] is last updated on 2010-05-29. http://contextgarden.wordpress.com/2009/07/29/news-from-the-git-repository/ the repos updates at midnight (so, once per day) 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] updating context don´t work anymor e on mac os x snow leopard
On 5-6-2010 8:04, Taco Hoekwater wrote: Mojca Miklavec wrote: Dear Bernhard & others, Thanks a lot for reporting the problem. Please wait for a fix from Hans or (in case that you need to update for some reason) first disable updating stuff in bin (comment out a line in first-setup) and then copy the old mtxrun from tex/texmf-yourplatform/bin to bin/. This is the fixed line: homedir = osenv[ostype == "windows" and 'USERPROFILE' or 'HOME'] or '~', fixed on the website - 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] 3. Re: \MPpos, pxy, initialize_box(), oh my! (Hongwen Qiu)
? 2010?06?05? 10:56, Adam Fuller ??: my initial post had a mistake: i meant to refer to the /Metafun/ manual, not the Metapost manual. that probably didn't help. Actually, I know that you mean the /Metafun/ manual. i guess what i should have said is, i know that pxy can give me the bounding /box/ (the rectangle with the maximum horizontal and vertical extents of its contents, be they set in horizontal or vertical mode), but can it give me the subset of that, the bounding /path/, if you will, when the contents are text which flows over several lines. the bounding /path/ may not be rectangular, although it will be something like the union of the bounding boxes of the text's individual lines. So now, I understand what mean. i think if you look at the correct reference, the difference of the effects is clear. i think the challenge is that you don't know where the line breaks will occur until you typeset it. --adam And the source code from the manual may help you: \setupMPvariables[mpos:box][linecolor=darkred] \setupMPvariables[mpos:par][linecolor=darkred] \startpositionoverlay{backgraphics} \setMPpositiongraphic{A-3}{mpos:box}{self=A-3} \setMPpositiongraphic{A-4}{mpos:box}{self=A-4} \setMPpositiongraphic{b:A-5}{mpos:par}{self=A-5} \setMPpositiongraphic{b:A-6}{mpos:par}{self=A-6} \stoppositionoverlay \fpos {A-5} Because the text must be laid on top of the graphic, the graphic must precede the first word in the typeset stream or it must be positioned on a separate layer. In the latter case it can be calculated directly after the paragraph is typeset, but in the former case a second pass is needed. \tpos {A-5} Given the above code, I think you can get some information about the horizontal and vertical pos of texts from \fpos and \tpos. And the mpos:par is defined in anch-pgr.mkii and anch-pgr.mkiv. But I haven't dig into the code which implement mpos:par. Hope you can find useful information there. And hope the following message I just searched out will help you too: http://archive.contextgarden.net/message/20080107.024554.314d9fee.ca.html ___ 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] Keeping margin note on the same line
Hello, Please, advise me. Is there a way to keep margin text and body text on the same line in the following situation? \define[0]\chorus{\startnarrower{\itx CHORUS}\stopnarrower} \starttext \chorus \chorus \inmargin{B}\chorus \stoptext Now "B" is above "CHORUS", I want it to be exactly on the same line. Regards, Vyatcheslav ___ 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] macro beginner question...
Hello all, in the process of learning macro programming in context i encountered the following problem (minimal example is attached): when i have \setuphead[section][color={red}] the color key influences in a strange way my „novice macro“ (see the text which should be black but is red). Further more the \ruledhbox in my macro stops at some point the red color (with a normal \hbox all the text in the section is red). what i´m doing wrong here? best regards Bernhard Typescript_Test.tex 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 ___
[NTG-context] macro beginner question
Hello all, in the process of learning macro programming in context i encountered the following problem (minimal example is attached): When i have \setuphead[section][color={red}] the color key influences in a strange way my „novice macro“ (see the text which should be black but is red). Further more the \ruledhbox in my macro stops at some point the red color (with a normal \hbox all the text in the section is red). what i´m doing wrong here? I don’t expect such a behaviour best regards Bernhard Typescript_Test.tex 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] macro beginner question
Bernhard Rosensteiner wrote: Hello all, in the process of learning macro programming in context i encountered the following problem (minimal example is attached): When i have \setuphead[section][color={red}] the color key influences in a strange way my „novice macro“ (see the text which should be black but is red). Further more the \ruledhbox in my macro stops at some point the red color (with a normal \hbox all the text in the section is red). what i´m doing wrong here? I don’t expect such a behaviour Somewhere you should execute \Mycolor, you are only defining it. 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] Keeping margin note on the same line
Vyatcheslav Yatskovsky (2010-06-05 14:25): > Hello, > > Please, advise me. > > Is there a way to keep margin text and body text on the same line in > the following situation? > > \define[0]\chorus{\startnarrower{\itx CHORUS}\stopnarrower} > > \starttext > \chorus > > \chorus > > \inmargin{B}\chorus > \stoptext > > Now "B" is above "CHORUS", I want it to be exactly on the same line. I somehow feel that this is not what you want: \def\chorus#1{\startnarrower{\itx CHORUS}\doiftext{#1}{\inmargin{#1}}\stopnarrower} \starttext \chorus{} \chorus{B} \stoptext -- -- Rogutės Sparnuotos ___ 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] macro beginner question
deleting the \def\Mycolor line does not help - same result. best regards Bernhard Am 05.06.2010 um 14:34 schrieb Taco Hoekwater: > Bernhard Rosensteiner wrote: >> Hello all, >> in the process of learning macro programming in context i encountered the >> following problem (minimal example is attached): >> When i have \setuphead[section][color={red}] the color key influences in a >> strange way my „novice macro“ (see the text which should be black but is >> red). Further more the \ruledhbox in my macro stops at some point the red >> color (with a normal \hbox all the text in the section is red). what i´m >> doing wrong here? I don’t expect such a behaviour > > Somewhere you should execute \Mycolor, you are only defining it. > > 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] updating context don´t work anymor e on mac os x snow leopard
Am 05.06.2010 um 11:04 schrieb Hans Hagen: > On 5-6-2010 8:04, Taco Hoekwater wrote: >> Mojca Miklavec wrote: >>> Dear Bernhard & others, >>> >>> Thanks a lot for reporting the problem. >>> >>> Please wait for a fix from Hans or (in case that you need to update >>> for some reason) first disable updating stuff in bin (comment out a >>> line in first-setup) and then copy the old mtxrun from >>> tex/texmf-yourplatform/bin to bin/. >> >> This is the fixed line: >> >> homedir = osenv[ostype == "windows" and 'USERPROFILE' or 'HOME'] or '~', > > fixed on the website ok, now i get an error: MTXrun | there is something wrong with your system (see attachment) best regards Bernhard Last login: Sat Jun 5 11:45:31 on console 196-086-142-078:~ Bernhard$ cd /Applications/ConTeXt 196-086-142-078:ConTeXt Bernhard$ . /Applications/ConTeXt/first-setup.sh receiving file list ... done sent 37 bytes received 132 bytes 338.00 bytes/sec total size is 5364246 speedup is 31741.10 MTXrun | fileio: variable 'SELFAUTOLOC' set to '/Applications/ConTeXt/bin' MTXrun | fileio: variable 'SELFAUTODIR' set to '/Applications/ConTeXt' MTXrun | fileio: variable 'SELFAUTOPARENT' set to '/Applications' MTXrun | fileio: variable 'TEXMFCNF' set to '{$SELFAUTODIR,$SELFAUTOPARENT}{,{/share,}/texmf{-local,.local,}/web2c}' MTXrun | fileio: no cnf files found (TEXMFCNF may not be set/known) MTXrun | forcing cache reload MTXrun | fileio: no cnf files found (TEXMFCNF may not be set/known) MTXrun | there is something wrong with your system MTXrun | using script: ./bin/mtx-update.lua MTXrun | state: loaded MTXrun | update: start MTXrun | run: rsync -rpztlv --delete contextgarden.net::'minimals/current/base/tex/ minimals/current/base/metapost/ minimals/current/fonts/common/ minimals/current/fonts/other/ minimals/current/misc/web2c minimals/current/base/xetex/ minimals/current/fonts/new/ minimals/current/fonts/new/ minimals/current/fonts/old/' '/Applications/ConTeXt/tex/texmf' receiving file list ... done sent 37 bytes received 70883 bytes 141840.00 bytes/sec total size is 105817121 speedup is 1492.06 MTXrun | run: rsync -rpztlv contextgarden.net::'minimals/current/bin/common/osx-64/ minimals/current/bin/context/osx-64/ minimals/current/bin/metapost/osx-64/ minimals/current/bin/man/ minimals/current/bin/luatex/osx-64/ minimals/current/bin/xetex/osx-64/ minimals/current/bin/luatex/osx-64/ minimals/current/bin/luatex/osx-64/ minimals/current/bin/pdftex/osx-64/' '/Applications/ConTeXt/tex/texmf-osx-64' receiving file list ... done bin/ bin/luatools bin/mtxrun sent 5859 bytes received 1599 bytes 4972.00 bytes/sec total size is 33459736 speedup is 4486.42 MTXrun | run: rsync -rpztlv contextgarden.net::'minimals/current/misc/setuptex/' '/Applications/ConTeXt/tex/.' receiving file list ... done sent 37 bytes received 136 bytes 346.00 bytes/sec total size is 16420 speedup is 94.91 MTXrun | run: rsync -rpztlv --delete contextgarden.net::'minimals/current/context/beta/ minimals/current/context/img/ minimals/current/modules/f-urwgaramond/ minimals/current/modules/f-urwgothic/ minimals/current/modules/t-account/ minimals/current/modules/t-algorithmic/ minimals/current/modules/t-bnf/ minimals/current/modules/t-chromato/ minimals/current/modules/t-cmscbf/ minimals/current/modules/t-cmttbf/ minimals/current/modules/t-construction-plan/ minimals/current/modules/t-degrade/ minimals/current/modules/t-fixme/ minimals/current/modules/t-french/ minimals/current/modules/t-fullpage/ minimals/current/modules/t-games/ minimals/current/modules/t-gnuplot/ minimals/current/modules/t-layout/ minimals/current/modules/t-letter/ minimals/current/modules/t-lettrine/ minimals/current/modules/t-lilypond/ minimals/current/modules/t-mathsets/ minimals/current/modules/t-ruby/ minimals/current/modules/t-simplefonts/ minimals/current/modules/t-simpleslides/ minimals/current/modules/t-tikz/ minimals/current/modules/t-typearea/ minimals/current/modules/t-typescripts/ minimals/current/modules/t-vim/' '/Applications/ConTeXt/tex/texmf-context' receiving file list ... done sent 37 bytes received 60431 bytes 120936.00 bytes/sec total size is 51494883 speedup is 851.61 MTXrun | mtx update: updating luatools for osx-64: rsync -tgo --chmod=a+x /Applications/ConTeXt/tex/texmf-context/scripts/context/lua/luatools.lua /Applications/ConTeXt/tex/texmf-osx-64/bin/luatools MTXrun | run: rsync -tgo --chmod=a+x /Applications/ConTeXt/tex/texmf-context/scripts/context/lua/luatools.lua /Applications/ConTeXt/tex/texmf-osx-64/bin/luatools MTXrun | mtx update: updating mtxrun for osx-64: rsync -tgo --chmod=a+x /Applications/ConTeXt/tex/texmf-context/scripts/context/lua/mtxrun.lua /Applications/ConTeXt/tex/texmf-osx-64/bin/mtxrun MTXrun | run: rsync -tgo --chmod=a+x /Applications/ConTeXt/tex/texmf-context/scripts/context/lua/mtxrun.lua /Applications/ConTeXt/tex/texmf-osx-64/bin/mtxrun MTXrun | MTXrun | MTXrun | preset : TEXPATH => /Applications/
Re: [NTG-context] macro beginner question
Bernhard Rosensteiner wrote: deleting the \def\Mycolor line does not help - same result. No, that would definitely not help. Your problem was not the definition, but that you never actually called the macro. You should put the definition back, and add \Mycolor to the \OpticalTest macro, perhaps like so: \def\OpticalTest[#1]#2{% \addff{\OOFeature}% \definedfont[#2 at \OOSize]% \setupinterlinespace \hbox to \textwidth{\clip[width=.39\textwidth, bottomoffset=\strutdepth]{% \Mycolor ..\hbox to .39\textwidth etc. etc. best regards Bernhard Am 05.06.2010 um 14:34 schrieb Taco Hoekwater: Bernhard Rosensteiner wrote: Hello all, in the process of learning macro programming in context i encountered the following problem (minimal example is attached): When i have \setuphead[section][color={red}] the color key influences in a strange way my „novice macro“ (see the text which should be black but is red). Further more the \ruledhbox in my macro stops at some point the red color (with a normal \hbox all the text in the section is red). what i´m doing wrong here? I don’t expect such a behaviour Somewhere you should execute \Mycolor, you are only defining it. 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 ___ ___ 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] dodosetreference undefined
Hi! \dodosetreference is not defined, but \dododosetreference is defined twice in strc-ref.mkiv. This breaks \pagereference, hence t-fixme. I think that the first definition should be replaced with \def\dodosetreference. ___ 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] dodosetreference undefined
On Saturday 05 June 2010 15:29:06 Yury G. Kudryashov wrote: > Hi! > > \dodosetreference is not defined, but \dododosetreference is defined twice > in strc-ref.mkiv. This breaks \pagereference, hence t-fixme. I think that > the first definition should be replaced with \def\dodosetreference. > Indeed, \footnote is broken: Alan ! Undefined control sequence. \dopagereference [#1]->\dodosetreference \s!page {#1}{}{} \dodoinmargin ...\next {#3}{#6}\pagereference [#5] \flushnotes \egroup \ignor... \do@@description ...copy \fi \descriptionheadbox } \@@dodescription \handlenoteitself ...in \dostartstoreddescription \begstrut \currentnotedesc... \handlenoteinsert ...s }\handlenoteitself {#1}{#2} \egroup \the \everyafterno... \@@notemakedescription ...note \currentnotenumber \fi \fi \endgroup \fi \fi ... ___ 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] macro beginner question
Am 05.06.2010 um 15:04 schrieb Taco Hoekwater: > Bernhard Rosensteiner wrote: >> deleting the \def\Mycolor line does not help - same result. > > No, that would definitely not help. Your problem was not the > definition, but that you never actually called the macro. > > You should put the definition back, and add \Mycolor to the > \OpticalTest macro, perhaps like so: > > \def\OpticalTest[#1]#2{% > \addff{\OOFeature}% >\definedfont[#2 at \OOSize]% > \setupinterlinespace > \hbox to \textwidth{\clip[width=.39\textwidth, > bottomoffset=\strutdepth]{% > \Mycolor > ..\hbox to .39\textwidth etc. etc. i tried what you suggested (please see attachment), but i think there is something fishy with the color black. \definecolor[Myblack][s=0] gives same results as described above but other colors work as they should do. best regards Bernhard Typescript_Test.tex 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] Keeping margin note on the same line
No, no, your idea is exactly what I missed! :) Thanks! I somehow feel that this is not what you want: \def\chorus#1{\startnarrower{\itx CHORUS}\doiftext{#1}{\inmargin{#1}}\stopnarrower} \starttext \chorus{} \chorus{B} \stoptext -- Best Regards, Vyatcheslav Yatskovsky ___ 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] ConTeXt unit testing
Hi! Are there any automatic unit test for ConTeXt distribution? At least the bug with referenceformat can be catched using something like context test pdftotext test.pdf test.txt diff test.txt test.txt-good And the bug with broken footnote can be catched using just "context test". If there are unit test, where can I find them (I'd like to add more)? If there are no, any objections against adding them, and testing before releasing new beta? ___ 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 unit testing
On Sat, Jun 5, 2010 at 17:13, Yury G. Kudryashov wrote: > > If there are no, any objections against adding them, and testing before > releasing new beta? No, just go on. Any volunteer with some ideas to start a project is welcome. 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 beta
On Fri, Jun 4, 2010 at 21:32, Hans Hagen wrote: > > Keep in mind that as we're now in beta mode again, we also need luatex > > 0.60 and we will deviate from the tex live current. Is the required luatex already available as a released beta or is it only in trunk? Are we talking of 0.60.1 or higher? Apart from that: any testers of TeX Live 2010 are welcome (to resolve any problems before TL DVD is out): http://www.tug.org/texlive/pretest.html Both MKII and MKIV should work. 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] ConTeXt unit testing
Hi Yuri and Mojca, As far as I am concerned, I have a little file named « basic-test.tex » containing the lines below: eveytime I update the minimals (well… almost everytime), before doing so, I proceed as follows: 1) I make a backup copy of my existing and working context-minimals 2) I run first-setup.sh to update to the latest context-minimals 3) I typeset the file « basic-test.tex »: if everything works I keep a zipped archive of the old installation and I delete the backup copy. If the new installation doesn't work I delete the updated context-minimals and go back to my old installation (and I complain to Mojca, Hans, Taco, and the list…). Here is this little file: %% file basic-test.tex \starttext \chapter{Testing a chapter\footnote{Actually for testing footnotes in a chapter header\dots}} This file has been typeset on \currentdate{} at \currenttime, with \doifmodeelse{mkiv} {mkiv, LuaTeX version \the\luatexversion, LuaTeX revision \luatexrevision, (LuaTeX date stamp \luatexdatestamp), using the command: \crlf \type{context basic-test.tex}\crlf} {mkii, using the command: \crlf \type{texexec basic-test.tex} \crlf} ConTeXt version \contextversion. \section{Testing a section\footnote{Actually for testing footnotes in a section header\dots}} An elementary identity: $(a + b)^2 = a^2 + 2ab + b^2$. And a well-known identity due to Leonhard Euler in which the five most important numbers appear: \placeformula \startformula {\rm e}^{{\rm i}\pi} + 1 = 0. \stopformula By the way, $\int_{0}^{2\pi} \sin(x)dx = 0$, while \startformula \int_{0}^{2\pi} \sin^2(x)dx = \pi. \stopformula \startitemize[r] \item Testing items and footnotes\footnote{This is a silly remark\dots} \item\footnote{This is a silly remark, inside an item\dots} testing items and footnotes \stopitemize And a final test\footnote{This is another silly remark but outside items\dots} of a footnote. \stoptext %% end file basic-test.tex Best regards: OK On 5 juin 2010, at 17:43, Mojca Miklavec wrote: > On Sat, Jun 5, 2010 at 17:13, Yury G. Kudryashov wrote: >> >> If there are no, any objections against adding them, and testing before >> releasing new beta? > > No, just go on. Any volunteer with some ideas to start a project is welcome. > > 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 > ___ %% Otared Kavian Département de Mathématiques Université de Versailles Saint-Quentin Bâtiment Fermat 45 aveue 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] git repo is not updated?
On Sat, Jun 5, 2010 at 11:04, Hans Hagen wrote: > On 5-6-2010 10:07, Marius wrote: >> >> Hello, >> >> I see that context minimals is at 2010-06-05 version, hovewer git repo >> [1] is last updated on 2010-05-29. >> >> >> http://contextgarden.wordpress.com/2009/07/29/news-from-the-git-repository/ > > the repos updates at midnight (so, once per day) But I'm not sure when Patrick's repository updates. 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] Wrong spacing before and after commas in math(?)
On Fri, 4 Jun 2010, "Aditya Mahajan" wrote: > Does > > \setupmathematics[autopunctuation=no] % or yes > > give better result? (Are you using MKIV or MKII)? > > Aditya \setupmathematics[autopunctuation=no] seems to fix the spaces before the x, but "...," is still bit ugly. I'm using MkIV, sorry for not mentioning it. > the default setup is for coordinates > > eventually we will have layer that implements settings for specific > fields as each demand their own rules (same for symbols) > > Hans Do you mean coordinates like "a vector (x,y,z)"? I still think that the extra space before "y" and "z" would be appreciated. But nevertheless, different settings for different needs sounds like a good idea. Thank you, Stefan. ___ 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 unit testing
yes we have. At next ctx meeting i will show something.(post from mobile sorry) On 6/5/10, Yury G. Kudryashov wrote: > Hi! > > Are there any automatic unit test for ConTeXt distribution? At least the bug > with referenceformat can be catched using something like > > context test > pdftotext test.pdf test.txt > diff test.txt test.txt-good > > And the bug with broken footnote can be catched using just "context test". > > If there are unit test, where can I find them (I'd like to add more)? > If there are no, any objections against adding them, and testing before > releasing new beta? > > ___ > 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 > ___ > -- luigi ___ 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] Lua in LuaLaTeX is diferent??
Hi, I did a Lua application for ConTeXt, and now I wanted to adapt it to work even LuaLaTeX. On what needs to be careful? Compiling by LuaLaTeX specific messages appear as if the Lua in LuaLaTeX didnt know some Lua commands (i.e. split, find ). On what needs to be careful generaly when programming applications for LuaLaTeX? Thanx Jaroslav ___ 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] \reference fails in the new beta
\starttext \reference[test]{test} \stoptext Has the syntax of \reference changed? ___ 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] Lua in LuaLaTeX is diferent??
Hi, I am sending examples of functions: The first function is functional in ConTeXt MKIV even LuaLaTeX. -- Global variables for setup in library (it be used when glob. vars Sep, Ld, Rd is not setting in main aplication): UserCSVSeparator=';' UserCSVLeftDelimiter='' UserCSVRightDelimiter='' function ParseCSVdata(s) local Sep = (Sep == nil) and UserCSVSeparator or Sep local Ld = (Ld == nil) and UserCSVLeftDelimiter or Ld local Rd = (Rd == nil) and UserCSVRightDelimiter or Rd if Ld ~= '' or Rd ~= '' then local s=string.sub(s, string.find(s, Ld)+1, string.find(s, Rd,-1)-1) end local fieldsep=tostring(Rd..Sep..Ld) local result = {} local from = 1 local sep_from, sep_to = string.find( s, fieldsep, from ) while sep_from do table.insert( result, string.sub( s, from , sep_from-1 ) ) from = sep_to + 1 sep_from, sep_to = string.find( s, fieldsep, from ) end table.insert( result, string.sub( s, from ) ) return result end The second is more universal, but it only works in ConTeXt MKIV. LuaLaTeX report error: "attempt to call field 'split' (a nil value) ... ." function ParseCSVdata(string2parse, separator, leftdelimiter, rightdelimiter) Sep = (Sep == nil) and UserCSVSeparator or Sep Ld = (Ld == nil) and UserCSVLeftDelimiter or Ld Rd = (Rd == nil) and UserCSVRightDelimiter or Rd local separator = (separator == nil) and Sep or separator local leftdelimiter = (leftdelimiter == nil) and Ld or leftdelimiter local rightdelimiter = (rightdelimiter == nil) and Rd or rightdelimiter local result={} if leftdelimiter ~= '' and rightdelimiter ~= '' then string.gsub(string2parse, leftdelimiter.."(.-)"..rightdelimiter, function(a) table.insert(result,a) end ) else result=string.split(string2parse,separator) end return result end I would like to benefit from the second function, but I want the application was applicable even LuaLaTeX Thanx Jaroslav Dne 5.6.2010 22:19, Jaroslav Hajtmar napsal(a): Hi, I did a Lua application for ConTeXt, and now I wanted to adapt it to work even LuaLaTeX. On what needs to be careful? Compiling by LuaLaTeX specific messages appear as if the Lua in LuaLaTeX didnt know some Lua commands (i.e. split, find ). On what needs to be careful generaly when programming applications for LuaLaTeX? Thanx Jaroslav ___ 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] Lua in LuaLaTeX is diferent??
On Sun, Jun 06, 2010 at 01:35:23AM +0200, Jaroslav Hajtmar wrote: > Hi, > > I am sending examples of functions: > > The first function is functional in ConTeXt MKIV even LuaLaTeX. > > -- Global variables for setup in library (it be used when glob. vars > Sep, Ld, Rd is not setting in main aplication): > UserCSVSeparator=';' > UserCSVLeftDelimiter='' > UserCSVRightDelimiter='' > > > > > function ParseCSVdata(s) > local Sep = (Sep == nil) and UserCSVSeparator or Sep > local Ld = (Ld == nil) and UserCSVLeftDelimiter or Ld > local Rd = (Rd == nil) and UserCSVRightDelimiter or Rd > if Ld ~= '' or Rd ~= '' then >local s=string.sub(s, string.find(s, Ld)+1, string.find(s, > Rd,-1)-1) > end > local fieldsep=tostring(Rd..Sep..Ld) > local result = {} > local from = 1 > local sep_from, sep_to = string.find( s, fieldsep, from ) > while sep_from do > table.insert( result, string.sub( s, from , sep_from-1 ) ) > from = sep_to + 1 > sep_from, sep_to = string.find( s, fieldsep, from ) > end > table.insert( result, string.sub( s, from ) ) > return result > end > > > The second is more universal, but it only works in ConTeXt MKIV. > LuaLaTeX report error: "attempt to call field 'split' (a nil value) ... ." > > function ParseCSVdata(string2parse, separator, leftdelimiter, > rightdelimiter) > Sep = (Sep == nil) and UserCSVSeparator or Sep > Ld = (Ld == nil) and UserCSVLeftDelimiter or Ld > Rd = (Rd == nil) and UserCSVRightDelimiter or Rd > local separator = (separator == nil) and Sep or separator > local leftdelimiter = (leftdelimiter == nil) and Ld or leftdelimiter > local rightdelimiter = (rightdelimiter == nil) and Rd or rightdelimiter > local result={} > if leftdelimiter ~= '' and rightdelimiter ~= '' then > string.gsub(string2parse, > leftdelimiter.."(.-)"..rightdelimiter, function(a) > table.insert(result,a) end ) > else > result=string.split(string2parse,separator) > end > return result > end > > > I would like to benefit from the second function, but I want the > application was applicable even LuaLaTeX You need the lualibs package, which imports some of the extended lua librarires from ConTeXt, since string.split() is not a standad lua function. Regards, Khaled > > Thanx Jaroslav > > > > > Dne 5.6.2010 22:19, Jaroslav Hajtmar napsal(a): > >Hi, > >I did a Lua application for ConTeXt, and now I wanted to adapt it > >to work even LuaLaTeX. > >On what needs to be careful? Compiling by LuaLaTeX specific > >messages appear as if the Lua in LuaLaTeX didnt know some Lua > >commands (i.e. split, find ). > > > >On what needs to be careful generaly when programming applications > >for LuaLaTeX? > > > >Thanx Jaroslav > >___ > > > >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 > ___ -- 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] Lua in LuaLaTeX is diferent??
Thanks very much. It is very unpleasant findings, but, it explains everything. Can be detected using Lua whether application runs under LuaLaTeX or LuaPlain and then load the library? How can I retrieve LuaLib? Where can I get more information? I did some Googling but without success. Thanx Jaroslav Dne 6.6.2010 4:46, Khaled Hosny napsal(a): On Sun, Jun 06, 2010 at 01:35:23AM +0200, Jaroslav Hajtmar wrote: Hi, I am sending examples of functions: The first function is functional in ConTeXt MKIV even LuaLaTeX. -- Global variables for setup in library (it be used when glob. vars Sep, Ld, Rd is not setting in main aplication): UserCSVSeparator=';' UserCSVLeftDelimiter='' UserCSVRightDelimiter='' function ParseCSVdata(s) local Sep = (Sep == nil) and UserCSVSeparator or Sep local Ld = (Ld == nil) and UserCSVLeftDelimiter or Ld local Rd = (Rd == nil) and UserCSVRightDelimiter or Rd if Ld ~= '' or Rd ~= '' then local s=string.sub(s, string.find(s, Ld)+1, string.find(s, Rd,-1)-1) end local fieldsep=tostring(Rd..Sep..Ld) local result = {} local from = 1 local sep_from, sep_to = string.find( s, fieldsep, from ) while sep_from do table.insert( result, string.sub( s, from , sep_from-1 ) ) from = sep_to + 1 sep_from, sep_to = string.find( s, fieldsep, from ) end table.insert( result, string.sub( s, from ) ) return result end The second is more universal, but it only works in ConTeXt MKIV. LuaLaTeX report error: "attempt to call field 'split' (a nil value) ... ." function ParseCSVdata(string2parse, separator, leftdelimiter, rightdelimiter) Sep = (Sep == nil) and UserCSVSeparator or Sep Ld = (Ld == nil) and UserCSVLeftDelimiter or Ld Rd = (Rd == nil) and UserCSVRightDelimiter or Rd local separator = (separator == nil) and Sep or separator local leftdelimiter = (leftdelimiter == nil) and Ld or leftdelimiter local rightdelimiter = (rightdelimiter == nil) and Rd or rightdelimiter local result={} if leftdelimiter ~= '' and rightdelimiter ~= '' then string.gsub(string2parse, leftdelimiter.."(.-)"..rightdelimiter, function(a) table.insert(result,a) end ) else result=string.split(string2parse,separator) end return result end I would like to benefit from the second function, but I want the application was applicable even LuaLaTeX You need the lualibs package, which imports some of the extended lua librarires from ConTeXt, since string.split() is not a standad lua function. Regards, Khaled Thanx Jaroslav Dne 5.6.2010 22:19, Jaroslav Hajtmar napsal(a): Hi, I did a Lua application for ConTeXt, and now I wanted to adapt it to work even LuaLaTeX. On what needs to be careful? Compiling by LuaLaTeX specific messages appear as if the Lua in LuaLaTeX didnt know some Lua commands (i.e. split, find ). On what needs to be careful generaly when programming applications for LuaLaTeX? Thanx Jaroslav ___ 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 ___ ___ 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] git repo is not updated?
Am 05.06.2010 um 18:25 schrieb Mojca Miklavec: > On Sat, Jun 5, 2010 at 11:04, Hans Hagen wrote: >> On 5-6-2010 10:07, Marius wrote: >>> >>> Hello, >>> >>> I see that context minimals is at 2010-06-05 version, hovewer git repo >>> [1] is last updated on 2010-05-29. >>> >>> >>> http://contextgarden.wordpress.com/2009/07/29/news-from-the-git-repository/ >> >> the repos updates at midnight (so, once per day) > > But I'm not sure when Patrick's repository updates. at midnight ;-) But I am surprised that there is actually a user out there. Beware, the repository is still experimental. Patrick ___ 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] Lua in LuaLaTeX is diferent??
Thanks very much. It is very unpleasant findings, but, it explains everything. Can be detected using Lua whether application runs under LuaLaTeX or LuaPlain and then load the library? How can I retrieve LuaLib? Where can I get more information? I did some Googling but without success. Thanx Jaroslav Dne 6.6.2010 4:46, Khaled Hosny napsal(a): On Sun, Jun 06, 2010 at 01:35:23AM +0200, Jaroslav Hajtmar wrote: Hi, I am sending examples of functions: The first function is functional in ConTeXt MKIV even LuaLaTeX. -- Global variables for setup in library (it be used when glob. vars Sep, Ld, Rd is not setting in main aplication): UserCSVSeparator=';' UserCSVLeftDelimiter='' UserCSVRightDelimiter='' function ParseCSVdata(s) local Sep = (Sep == nil) and UserCSVSeparator or Sep local Ld = (Ld == nil) and UserCSVLeftDelimiter or Ld local Rd = (Rd == nil) and UserCSVRightDelimiter or Rd if Ld ~= '' or Rd ~= '' then local s=string.sub(s, string.find(s, Ld)+1, string.find(s, Rd,-1)-1) end local fieldsep=tostring(Rd..Sep..Ld) local result = {} local from = 1 local sep_from, sep_to = string.find( s, fieldsep, from ) while sep_from do table.insert( result, string.sub( s, from , sep_from-1 ) ) from = sep_to + 1 sep_from, sep_to = string.find( s, fieldsep, from ) end table.insert( result, string.sub( s, from ) ) return result end The second is more universal, but it only works in ConTeXt MKIV. LuaLaTeX report error: "attempt to call field 'split' (a nil value) ... ." function ParseCSVdata(string2parse, separator, leftdelimiter, rightdelimiter) Sep = (Sep == nil) and UserCSVSeparator or Sep Ld = (Ld == nil) and UserCSVLeftDelimiter or Ld Rd = (Rd == nil) and UserCSVRightDelimiter or Rd local separator = (separator == nil) and Sep or separator local leftdelimiter = (leftdelimiter == nil) and Ld or leftdelimiter local rightdelimiter = (rightdelimiter == nil) and Rd or rightdelimiter local result={} if leftdelimiter ~= '' and rightdelimiter ~= '' then string.gsub(string2parse, leftdelimiter.."(.-)"..rightdelimiter, function(a) table.insert(result,a) end ) else result=string.split(string2parse,separator) end return result end I would like to benefit from the second function, but I want the application was applicable even LuaLaTeX You need the lualibs package, which imports some of the extended lua librarires from ConTeXt, since string.split() is not a standad lua function. Regards, Khaled Thanx Jaroslav Dne 5.6.2010 22:19, Jaroslav Hajtmar napsal(a): Hi, I did a Lua application for ConTeXt, and now I wanted to adapt it to work even LuaLaTeX. On what needs to be careful? Compiling by LuaLaTeX specific messages appear as if the Lua in LuaLaTeX didnt know some Lua commands (i.e. split, find ). On what needs to be careful generaly when programming applications for LuaLaTeX? Thanx Jaroslav ___ 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 ___ ___ 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 ___