Re: [NTG-context] Fwd: Re: xml-processing: missing or ungrouped '='
Hi Thomas, sorry, I dont want to bother you. But in fact that is not what I'm looking for. Maybe its my fault that I mixed a - as I thougt - related problem in my second mail. What I try to do is reduce redundancy. I cannot see where my explanations differ. In fact, I started with something like your example. But from a redundancy point of view thats a mess so I tried to improve it. I came to something like \startxmlsetups xml:chapter \startchapter[ title={\xmlatt{#1}{title}}, number=\xmldoifelse{#1}{./attribute('num')}{yes}{no}, ownnumber=\xmldoifelse{#1}{./attribute('num')}{\xmlatt{#1}{num}}{} ] \xmlflush{#1} \stopchapter \stopxmlsetups which works fine and at least in my eyes has a clearer structure, but still some redundancy. Now is the point where I think the misunderstandings started, because now I tried two different approaches to decrease redundancy: First step i tried to simplyfy *this* setup and came to something like \startxmlsetups xml:chapter \startchapter[ title={\xmlatt{#1}{title}}, \xmldoifelse{#1}{./attribute('num')}{ownnumber=\xmlatt{#1}{num}}{number=no}, ] \xmlflush{#1} \stopchapter \stopxmlsetups which would nicely eliminate every redundance but doesn't work and complains about the mystery missing or ungrouped '=' The other attempt was - though i have not only to deal with chapters but up to about 15 hierarchies, all structured in a similar way, so I tried to delegate the processing like \startxmlsetups xml:fillTitleAtts title={\xmlatt{#1}{title}}, number=\xmldoifelse{#1}{./attribute('num')}{yes}{no}, ownnumber=\xmldoifelse{#1}{./attribute('num')}{\xmlatt{#1}{num}}{} \stopxmlsetups \startxmlsetups xml:chapter \startchapter[ \xmlcommand{#1}{.}{xml:fillTitleAtts} ] \xmlflush{#1} \stopchapter \stopxmlsetups which would be nicely reusable but that attempt failed whith the same error message - thus I thought they are related. I have to mention, that I try not to process one file but to write setups for a bunch of similar but slightly different books (we're doing about 1000 books per year), so my setups have to be clearly structured and easyly adaptable to different needs. I dunno if that can clear up things, if not, I think its not worth much more discussion. Thanks, Achim Am 08.01.2011 18:00, schrieb Thomas A. Schmitz: On Jan 8, 2011, at 3:23 PM, Achim Jander wrote: Hi Thomas, yes, of course you are right, but thats not making the problems. Its switched in while making a minimal example. My problem or maxbe misunderstanding ist what I try to achieve with Sorry, but I still don't have the faintest idea what it is you want to do. Your minimal example doesn't show it, and your explanations differ from one message to the next. In one of your mails, you said this: If the title comes with an number-element I want to set ownnumber=..., but if they have no numbers, I want to set number=no If this is what you're looking for, here's what I would suggest: \startbuffer[test] a chapter title=some text bmore text/b bmore text/b /chapter chapter num=333 title=more text bmore text/b bmore text/b /chapter /a \stopbuffer \startxmlsetups xml:testsetups \xmlsetsetup{\xmldocument}{a|b|chapter}{xml:*} \stopxmlsetups \xmlregistersetup{xml:testsetups} \startxmlsetups xml:a \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:b \startparagraph \xmlflush{#1} \stopparagraph \stopxmlsetups \startxmlsetups xml:chapter \doifelse {\xmlatt{#1}{num}} {} {\setuphead[chapter][number=no] \startchapter[title={\xmlatt{#1}{title}}] \xmlflush{#1} \stopchapter} {\setuphead[chapter][number=yes] \setupheadnumber[chapter][\xmlatt{#1}{num}] \startchapter[title={\xmlatt{#1}{title}}] \xmlflush{#1} \stopchapter} \stopxmlsetups \starttext \xmlprocessbuffer{main}{test}{} \stoptext It's trivial to change the test from an attribute to anum element, but maybe that's not what you're looking for... 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 ___ ___ 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] Gnuplot module: Patching of Gnuplot binary still needed?
In the past I was using this instruction set to install GnuPlot in Windows Context Mkiv minimals but it does not work anymore. Is there a bug in t-gnuplot version 2009-07-21? Create folder c:\context\gnuplot Download from http://dl.contextgarden.net/modules/gnuplot-win.zip the gnuplot file gnuplot-win.zip and unzip in folder c:\context so you have folders c:\context\gnuplot\bin and c:\context\gnuplot\term Create a batch file c:\context\gnuplot\bin\gnuplot.bat with content c:\context\gnuplot\bin\wgnuplot.exe %* STARTRUNCMD ENTER SET PATH=%PATH%;c:\context\gnuplot\bin ENTER Test GNUPLOT by entering gnuplot in the CLI console and give in gnuplot the command plot sin(x) ENTER Create folder c:\context\tex\texmf\tex\context\third\gnuplot Download http://theory.uwinnipeg.ca/scripts/CTAN/macros/context/contrib/context-gnuplot.zip or http://dl.contextgarden.net/modules/t-gnuplot-2009.07.21.zip module and unzip and put in folder c:\context\tex\texmf\tex\context\third\gnuplot and c:\context\text\texmf\metapost\base\ so you have c:\context\tex\texmf\tex\context\third\gnuplot\t-gnuplot.tex and c:\context\text\texmf\metapost\base\mp-gnuplot.mp Startruncmdc: ENTER cd \context\tex\texmf-mswin\bin ENTER context – -generate ENTER (For MkII users use the following command mktexlsr) Enter the following data to test GNUPLOT \usemodule[gnuplot] \enableregime[utf] \setupGNUPLOT[terminal=mp] \startGNUPLOTscript[mysinplot] set xlabel “time” set ylabel “value” plot sin(x) \stopGNUPLOTscript \starttext text before picture \useGNUPLOTgraphic[mysinplot] text after picture \stoptext -- This message was sent on behalf of jeroen.mus...@hotmail.com at openSubscriber.com http://www.opensubscriber.com/message/ntg-context@ntg.nl/14815843.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 ___
Re: [NTG-context] PDF Bookmarks on unnumbered subjects/titles etc
Dear Wolfgang, 3 years ago, you wrote: [...] \setupinteraction[state=start] \placebookmarks[chapter] \setupinteractionscreen[option=bookmark] \starttext \chapter{some chapter} \bookmark{a title} some text \stoptext The above example correctly generates bookmarks in the PDF. I can't, however, get the same thing to work when using \subject. [...] You can to play with the following code, I don't know why it produce multiple bookmark entries and even more with text between the headers but it's funny. \setupinteraction[state=start] \def\sectionbookmark#1{\bookmark[section]{#1}#1} \def\subjectbookmark#1{\bookmark[subject]{#1}#1} \setuphead[section][deeptextcommand=\sectionbookmark] \setuphead[subject][deeptextcommand=\subjectbookmark] \placebookmarks[chapter,section,subject] \setupinteractionscreen[option=bookmark] \starttext \chapter{Chapter} \section{Section} \subject{Subject} \section{Another section} \chapter{Second Chapter} text \section{First section in second chapter} text \subject{Another Subject} text \section{Last section} text \stoptext This minimal example gives me an error. Are there other/better means to achieve the same thing today? Best, Florian ___ 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] Natural tables (split) + setupinteraction = fail? (latest mkiv)
Hello there. See the following minimal example: begin \setupinteraction[state=start,color=black,contrastcolor=black] \starttext \placetable[split]{Test} {\bTABLE[split=yes] \dorecurse{60}{ \bTR \bTD hello \eTD \eTR } \eTABLE} \stoptext end % If I try to compile it, I get the following error: pagesflushing realpage 1, userpage 1, subpage 1 ! Missing number, treated as zero. to be read again { \docompletefloat ...\vbox \floatcaptionattribute { \doifelsemainfloatbody \cu... argument ...loat {table}{}{split}{Test}\nextbox \else \docompletefloat {ta... \thirdofthreearguments #1#2#3-#3 \xdocompletefloat ...afloat ,#3}{#4}\nextbox \fi } \else \docompletefloat {#1... \dodowithnextbox ...tefloat {table}{}{split}{Test} \doifnotinset \v!text {spl... ... l.11 \eTABLE } ? The same source compiles as expected with version 2010.12.15 (ok, there was the bug for the numbering, but it compiled). Bests -- Marco ___ 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] How to invoke Unicode symbols?
Hi, How to invoke pre-defined Unicode symbols? E.g., in symb-uni.tex I see \startsymbolset[Unicode Musical] % 0x2600: Requires UnicodeRegular26 \definesymbol[QuarterNote][\USymbChar{38}{105}] % QUARTER NOTE \definesymbol[EighthNote][\USymbChar{38}{106}] % EIGHTH NOTE ... \symbol[QuarterNote] gives me words QuarterNote, and \QuarterNote is an invalid sequence. P.S. http://wiki.contextgarden.net/Reference/en/symbol is empty :( -- 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 ___
Re: [NTG-context] How to invoke Unicode symbols?
Am 09.01.2011 um 16:57 schrieb Vyatcheslav Yatskovsky: Hi, How to invoke pre-defined Unicode symbols? Use a font with the symbols. \starttext Symbols: \definedfont[file:Symbola sa 2]♩♪ \stoptext You can download the font here: http://users.teilar.gr/~g1951d/ Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] External figures in section headings
Hello all, I need to have an image as part of my section headings. I've read through an example in the It's in the details manual and came up with the following example: \definelayer[chapterstart][width=\paperwidth,height=\paperheight] \definelayerpreset[lefttop][corner={left,top},location={right,bottom}] \setlayer[chapterstart][preset=lefttop]{\externalfigure[hacker.jpg]} \setuphead[chapter][before={\setupbackgrounds[page][background=chapterstart]}] \starttext \chapter{First chapter} \chapter{Second chapter} \stoptext This works very well for the first chapter: the picture is inserted behind the text as I want but nothing is inserted behind the second chapter heading. I've been able to add extra details to the setuphead; these are repeated but the picture is not. Can anyone see what I'm doing wrong? I get the same behaviour whether I use version II or IV. Many thanks in advance, Felix ___ 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] howto start with presentations?
On 2011-01-09, Jonas Stein n...@jonasstein.de wrote: You can extract the files inside $TEXMFLOCAL (usually set to /usr/local/share/texmf, but see the output of Thank you again. I tried it now: $ kpsewhich --expand-var=\$TEXMFLOCAL /usr/local/share/texmf i extracted the zip file there as root and called # mktexlsr as root. Then i checked as user if the file can be found: $ kpsewhich t-simpleslides.tex /usr/local/share/texmf/tex/context/third/simpleslides/t-simpleslides.tex then i run my makefile with $ make view that calls texexec --utfbom --pdf context-schnelleinstieg.tex . . . system : module empty not found system : module simpleslides not found . . . there are two things i do not understand: 1) why are the modules still not found? 2) why is no errorcode raised but a pdf is created on a major problem like missing module? kind regards, sorry i forgot the link: the log files and the .tex files are here: https://github.com/jonasstein/context-quickstart -- Jonas Stein n...@jonasstein.de ___ 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] howto start with presentations?
Am 09.01.2011 um 18:15 schrieb Jonas Stein: there are two things i do not understand: 1) why are the modules still not found? 2) why is no errorcode raised but a pdf is created on a major problem like missing module? kind regards, sorry i forgot the link: the log files and the .tex files are here: https://github.com/jonasstein/context-quickstart When you take a closer look in the log you can see that the module is found. system : module simpleslides loaded (/usr/local/share/texmf/tex/context/third/simpleslides/t-simpleslides.tex loading : module simpleslides system : module default loaded (/usr/local/share/texmf/tex/context/third/simpleslides/simpleslides-f-default.tex simpleslides: loading default font setup ... 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] howto start with presentations?
On Sun, 9 Jan 2011, Wolfgang Schuster wrote: Am 09.01.2011 um 18:15 schrieb Jonas Stein: there are two things i do not understand: 1) why are the modules still not found? 2) why is no errorcode raised but a pdf is created on a major problem like missing module? kind regards, sorry i forgot the link: the log files and the .tex files are here: https://github.com/jonasstein/context-quickstart When you take a closer look in the log you can see that the module is found. system : module simpleslides loaded (/usr/local/share/texmf/tex/context/third/simpleslides/t-simpleslides.tex loading : module simpleslides system : module default loaded (/usr/local/share/texmf/tex/context/third/simpleslides/simpleslides-f-default.tex simpleslides: loading default font setup It appears that you have a mismatch of the log and tex files. The tex file says \usemodule[simpleslides] [style=BigNumber] while the log file says system : module swoosh not found It should not look for swoosh submodule when you asked for the BigNumber module. (BTW, the style is Swoosh, with capital S). Moreover, the call to the swoosh module is when ConTeXt is reading simpleslides-s-default.tex which should never happen I also do not know why the log has the lines system : module empty not found system : module simpleslides not found near the end. Can you update the log with a \loggingall before loading the module? Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to invoke Unicode symbols?
On 09.01.2011 18:33, ntg-context-requ...@ntg.nl wrote: Use a font with the symbols. \starttext Symbols: \definedfont[file:Symbola sa 2]♩♪ \stoptext You can download the font here: http://users.teilar.gr/~g1951d/ http://users.teilar.gr/%7Eg1951d/ Wolfgang Thank you, but... I can easily get ♪ just by copy-pasting, but I cannot get ♩ ! Even when the font is specified. When I paste ♩ symbol into TeXWorks, it disappears. That's why I want how to call it by name. -- 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 ___
Re: [NTG-context] howto start with presentations?
It appears that you have a mismatch of the log and tex files. sorry, my fault. module. (BTW, the style is Swoosh, with capital S). Moreover, the call to i changed it to capital Swoosh now i have different color for the text in the pdf, but i can not see the wave-effect yet. near the end. Can you update the log with a \loggingall before loading the module? i have uploaded it now as you told me. its here: https://github.com/jonasstein/context-quickstart -- Jonas Stein n...@jonasstein.de ___ 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] \lgroup in mkIV
On Sun, Jan 09, 2011 at 01:13:25AM +, Arthur Reutenauer wrote: That was the same range that I had looked at, but somehow that pdf did not have 27EC-27EF. Neither does char-def.lua. So, I guess that these are newer additions. It's been introduced in Unicode 5.1 in March 2008. Unicode is an evolving standard, you know. That is why I asked Hans while ago how char-def.lua was generated, from what version of Unicode and whether it is updated/updatable or not; I was worried that it will soon be outdated, which seems to be the case now. 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] How to invoke Unicode symbols?
Am 09.01.2011 um 19:14 schrieb Vyatcheslav Yatskovsky: I can easily get ♪ just by copy-pasting, but I cannot get ♩ ! Even when the font is specified. When I paste ♩ symbol into TeXWorks, it disappears. That's why I want how to call it by name. \starttext \startfont[file:Symbola sa 2] \fontchar{notequarter} \fontchar{musicalnote} \fontchar{musicalnotedbl} \fontchar{sixteenthnotedbl} \stopfont \stoptext You can define symbols for them. 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] \lgroup in mkIV
On Sat, Jan 08, 2011 at 08:29:17PM +, Arthur Reutenauer wrote: There are, but context is looking for the wring character; it is looking for U+3014 (which I think is a CJK bracket Indeed. It's one of the angle brackets that one finds in many CJK fonts. while it should be looking for U+27EE (whose Unicode annotation precisely says lgroup): Note that those annatations in the code charts are actually the Unicode 1.0 names of the characters, where they differ from the Unicode 1.1 names (when Unicode was unified with ISO 10646 and adopted some of its names). They should not, in general, be understood as the name of this character is some other standard, for example. But they are of course a good hint of what the character represents. I usually look for long description, it can sometimes be very helpful on what is the intended use of the characters (names are not very accurate, especially early characters which are often misnamed). 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] Gnuplot module: Patching of Gnuplot binary still needed?
On Sun, Jan 9, 2011 at 22:50, jeroen.mus...@hotmail.com wrote: In the past I was using this instruction set to install GnuPlot in Windows Context Mkiv minimals but it does not work anymore. Is there a bug in t-gnuplot version 2009-07-21? Thanks a lot for the bug report. I can confirm that it fails here as well. I rarely use any other terminal but the native ConTeXt one, so I didn't notice the problem with metapost terminal. I'll take a look into it. I get the following error and will try to investigate further: This is pdfTeX, Version 3.1415926-1.40.10 (Web2C 2009) \write18 enabled. ---! /context/tex/texmf-osx-64/web2c/pdftex/mptopdf.fmt doesn't match pdftex.pool (Fatal format file error; I'm stymied) MPtoPDF 1.4.0 : error while processing tex file Mojca PS: I have to admit that I have no idea when I last compiled the windows binary for gnuplot. I would need to learn again how to do 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] howto start with presentations?
On Sun, 9 Jan 2011, Jonas Stein wrote: It appears that you have a mismatch of the log and tex files. sorry, my fault. module. (BTW, the style is Swoosh, with capital S). Moreover, the call to i changed it to capital Swoosh now i have different color for the text in the pdf, but i can not see the wave-effect yet. Please also upload the pdf. Does a simple file with metappost graphics works? \starttext \startMPcode draw fullcircle scaled 3cm ; \stopMPcode \stoptext near the end. Can you update the log with a \loggingall before loading the module? i have uploaded it now as you told me. its here: https://github.com/jonasstein/context-quickstart The log looks ok now. There is no module simpleslides not found message. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \lgroup in mkIV
On Sun, 9 Jan 2011, Khaled Hosny wrote: On Sun, Jan 09, 2011 at 01:13:25AM +, Arthur Reutenauer wrote: That was the same range that I had looked at, but somehow that pdf did not have 27EC-27EF. Neither does char-def.lua. So, I guess that these are newer additions. It's been introduced in Unicode 5.1 in March 2008. Unicode is an evolving standard, you know. That is why I asked Hans while ago how char-def.lua was generated, from what version of Unicode and whether it is updated/updatable or not; I don't know how it was generated. Mojca and I occasionally update the file by adding the names of math symbols. If the latest unicode symbol list is available in text format, it should not be too difficult to check if the table in char-def has any missing entries. I was worried that it will soon be outdated, which seems to be the case now. In this case, I just added these four missing characters by hand. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Gnuplot module: Patching of Gnuplot binary still needed?
On Sun, 9 Jan 2011, Mojca Miklavec wrote: On Sun, Jan 9, 2011 at 22:50, jeroen.mus...@hotmail.com wrote: In the past I was using this instruction set to install GnuPlot in Windows Context Mkiv minimals but it does not work anymore. Is there a bug in t-gnuplot version 2009-07-21? Thanks a lot for the bug report. I can confirm that it fails here as well. I rarely use any other terminal but the native ConTeXt one, so I didn't notice the problem with metapost terminal. I'll take a look into it. I get the following error and will try to investigate further: This is pdfTeX, Version 3.1415926-1.40.10 (Web2C 2009) \write18 enabled. ---! /context/tex/texmf-osx-64/web2c/pdftex/mptopdf.fmt doesn't match pdftex.pool (Fatal format file error; I'm stymied) MPtoPDF 1.4.0 : error while processing tex file texexec --make --all should regenerate mptopdf format. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] howto start with presentations?
now i have different color for the text in the pdf, but i can not see the wave-effect yet. Please also upload the pdf. https://github.com/jonasstein/context-quickstart/blob/master/context-schnelleinstieg.pdf Does a simple file with metappost graphics works? \starttext \startMPcode draw fullcircle scaled 3cm ; \stopMPcode \stoptext i tested it in test.tex and test.pdf i did not see a circle. Just a pagenumber. https://github.com/jonasstein/context-quickstart Thanks a lot for your assistance, -- Jonas Stein n...@jonasstein.de ___ 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] \lgroup in mkIV
On Sun, Jan 9, 2011 at 19:59, Aditya Mahajan wrote: On Sun, 9 Jan 2011, Khaled Hosny wrote: That is why I asked Hans while ago how char-def.lua was generated, from what version of Unicode and whether it is updated/updatable or not; I don't know how it was generated. Mojca and I occasionally update the file by adding the names of math symbols. If the latest unicode symbol list is available in text format, it should not be too difficult to check if the table in char-def has any missing entries. From what I know it has been auto-generated the first time. Unless I'm mistaken Hans never used any automatic procedure to add the new glyphs from newer Unicode standards. It is definitely updatable, but not necessary regularly updated :) :) :) The code that generated the list cannot be used without modifications since there have been many manual changes on the old list, but it is definitely doable. 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] \lgroup in mkIV
On Sun, Jan 09, 2011 at 01:59:20PM -0500, Aditya Mahajan wrote: On Sun, 9 Jan 2011, Khaled Hosny wrote: On Sun, Jan 09, 2011 at 01:13:25AM +, Arthur Reutenauer wrote: That was the same range that I had looked at, but somehow that pdf did not have 27EC-27EF. Neither does char-def.lua. So, I guess that these are newer additions. It's been introduced in Unicode 5.1 in March 2008. Unicode is an evolving standard, you know. That is why I asked Hans while ago how char-def.lua was generated, from what version of Unicode and whether it is updated/updatable or not; I don't know how it was generated. Mojca and I occasionally update the file by adding the names of math symbols. If the latest unicode symbol list is available in text format, it should not be too difficult to check if the table in char-def has any missing entries. Unicode data are always available as plain text files: http://www.unicode.org/Public/UNIDATA/ -- 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] howto start with presentations?
On Sun, 9 Jan 2011, Jonas Stein wrote: now i have different color for the text in the pdf, but i can not see the wave-effect yet. Please also upload the pdf. https://github.com/jonasstein/context-quickstart/blob/master/context-schnelleinstieg.pdf Does a simple file with metappost graphics works? \starttext \startMPcode draw fullcircle scaled 3cm ; \stopMPcode \stoptext i tested it in test.tex and test.pdf You need to either enable write18 or add \runMPgraphicsfalse on the top of your file. I think that this information needs to be added to the texlive installation page on the wiki. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Passing and retrieveing a variable
On 8-1-2011 7:12, Procházka Lukáš wrote: So, an earlier splitting may be performed by something like for a in document.arguments:gmatch(([^,]+)) do local k, v = a:match((.*)=(.*)) document.arguments[k] = v end utilities.parsers.settings_to_hash( document.arguments.arg or , document.arguments ) - 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] How to invoke Unicode symbols?
On 09.01.2011 20:46, ntg-context-requ...@ntg.nl wrote: \starttext \startfont[file:Symbola sa 2] \fontchar{notequarter} \fontchar{musicalnote} \fontchar{musicalnotedbl} \fontchar{sixteenthnotedbl} \stopfont \stoptext You can define symbols for them. \startfont[file:Symbola602 sa 2] \fontchar{notequarter} \fontchar{musicalnote} \fontchar{musicalnotedbl} \fontchar{sixteenthnotedbl} \stopfont ! LuaTeX error ...tminimal/texmf-context/tex/context/base/cldf-com.lua:58: attempt to call global 'format' (a nil value) stack traceback: ...tminimal/texmf-context/tex/context/base/cldf-com.lua:58: in function 'char' ...tminimal/texmf-context/tex/context/base/font-ctx.lua:830: in function 'char' main ctx instance:1: in main chunk. \fontchar #1-\ctxlua {fonts.char(#1)} l.27 \fontchar{notequarter} Looks like I don't know how to use it. :( -- 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 ___
Re: [NTG-context] \lgroup in mkIV
On 9-1-2011 7:59, Aditya Mahajan wrote: I don't know how it was generated. Mojca and I occasionally update the file by adding the names of math symbols. If the latest unicode symbol list is available in text format, it should not be too difficult to check if the table in char-def has any missing entries. In this case, I just added these four missing characters by hand. The first versions of the table were a combination of data present already in context and some unicode tables from the web (using scripts) but much in the math department was added manually as i found out that tables (like stix) were too flawed and had bugs so were useless for our purpose. We could do some occasional update by checking diffs from older to newer unicodes, not that I expect too many changes. 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] \lgroup in mkIV
On 9-1-2011 8:58, Mojca Miklavec wrote: It is definitely updatable, but not necessary regularly updated :) :) :) The code that generated the list cannot be used without modifications since there have been many manual changes on the old list, but it is definitely doable. I have a couple of scripts lying around and will have a look one of these days. 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] External figures in section headings
On Sun, Jan 9, 2011 at 5:33 PM, Felix Ingram f.ingram.li...@gmail.com wrote: Hello all, I need to have an image as part of my section headings. I've read through an example in the It's in the details manual and came up with the following example: \definelayer[chapterstart][width=\paperwidth,height=\paperheight] \definelayerpreset[lefttop][corner={left,top},location={right,bottom}] \setlayer[chapterstart][preset=lefttop]{\externalfigure[hacker.jpg]} \setuphead[chapter][before={\setupbackgrounds[page][background=chapterstart]}] \starttext \chapter{First chapter} \chapter{Second chapter} \stoptext This works very well for the first chapter: the picture is inserted behind the text as I want but nothing is inserted behind the second chapter heading. I've been able to add extra details to the setuphead; these are repeated but the picture is not. Can anyone see what I'm doing wrong? I get the same behaviour whether I use version II or IV. \definelayer[chapterstart][width=\paperwidth,height=\paperheight] \definelayerpreset[lefttop][corner={left,top},location={right,bottom}] \setlayer[chapterstart][preset=lefttop]{\externalfigure[cow]} \setuphead[chapter][before={% \setlayer[chapterstart][preset=lefttop]{\externalfigure[cow]}% \setupbackgrounds[page][background={chapterstart}]}] \starttext \chapter{First chapter} \chapter{Second chapter} \stoptext (I'm sure that there are other solutions) -- 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] mkiv: verbatim lua eats my quotes
Hi all, is this a bug or a feature: in verbatim lua code, my double and ' single quotation marks are eaten up in mkiv (everything is colorless, but correct in mkii). Example: \starttext \startLUA require 'lpeg' sep = lpeg.P(,) \stopLUA \stoptext Thanks 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] External figures in section headings
On 9 January 2011 20:39, luigi scarso luigi.sca...@gmail.com wrote: On Sun, Jan 9, 2011 at 5:33 PM, Felix Ingram f.ingram.li...@gmail.com wrote: Hello all, I need to have an image as part of my section headings. I've read through an example in the It's in the details manual and came up with the following example: \definelayer[chapterstart][width=\paperwidth,height=\paperheight] \definelayerpreset[lefttop][corner={left,top},location={right,bottom}] \setlayer[chapterstart][preset=lefttop]{\externalfigure[hacker.jpg]} \setuphead[chapter][before={\setupbackgrounds[page][background=chapterstart]}] \starttext \chapter{First chapter} \chapter{Second chapter} \stoptext This works very well for the first chapter: the picture is inserted behind the text as I want but nothing is inserted behind the second chapter heading. I've been able to add extra details to the setuphead; these are repeated but the picture is not. Can anyone see what I'm doing wrong? I get the same behaviour whether I use version II or IV. \definelayer[chapterstart][width=\paperwidth,height=\paperheight] \definelayerpreset[lefttop][corner={left,top},location={right,bottom}] \setlayer[chapterstart][preset=lefttop]{\externalfigure[cow]} \setuphead[chapter][before={% \setlayer[chapterstart][preset=lefttop]{\externalfigure[cow]}% \setupbackgrounds[page][background={chapterstart}]}] \starttext \chapter{First chapter} \chapter{Second chapter} \stoptext (I'm sure that there are other solutions) Works perfectly - many thanks. Felix ___ 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] howto start with presentations?
You need to either enable write18 or add \runMPgraphicsfalse on the top of your file. I put \runMPgraphicsfalse in the first line of test.tex. That changed nothing. Then i searched for write18 in the wiki. I found ConTeXt defines \systemcommandmode that is 2 if \write18 is enabled, 1 otherwise. on [1] so i wrote \systemcommandmode to get a 2 or 1 in textbody. [2] But i did not get a 1 or 2. Now i can see the circle and a ^ I have no idea, where the ^ comes from. I think that this information needs to be added to the texlive installation page on the wiki. in the year 2006 someone wrote [3]: Hans response on the mailing list write 18 is a hack and pdfshellescape a sane replacement in luatex it will probably be gone completely since there we have \directlua 0 { os.execute(...) } I wonder if write18 is necessary 5 years later. [1] http://wiki.contextgarden.net/write18 [2] https://github.com/jonasstein/context-quickstart/blob/master/test.tex#L2 [3] http://wiki.contextgarden.net/index.php?title=write18direction=nextoldid=6802 -- Jonas Stein n...@jonasstein.de ___ 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] Natural tables (split) + setupinteraction = fail? (latest mkiv)
On Sun, Jan 9, 2011 at 4:14 PM, Marco Pessotto melmo...@gmail.com wrote: Hello there. See the following minimal example: begin \setupinteraction[state=start,color=black,contrastcolor=black] \starttext \placetable[split]{Test} {\bTABLE[split=yes] \dorecurse{60}{ \bTR \bTD hello \eTD \eTR } \eTABLE} \stoptext end % If I try to compile it, I get the following error: pages flushing realpage 1, userpage 1, subpage 1 ! Missing number, treated as zero. to be read again { \docompletefloat ...\vbox \floatcaptionattribute { \doifelsemainfloatbody \cu... argument ...loat {table}{}{split}{Test}\nextbox \else \docompletefloat {ta... \thirdofthreearguments #1#2#3-#3 \xdocompletefloat ...afloat ,#3}{#4}\nextbox \fi } \else \docompletefloat {#1... \dodowithnextbox ...tefloat {table}{}{split}{Test} \doifnotinset \v!text {spl... ... l.11 \eTABLE } ? The same source compiles as expected with version 2010.12.15 (ok, there was the bug for the numbering, but it compiled). Bests -- Marco I think splifloat is to be complete in mkiv. This works on mkii but not in mkiv: %%from tabl-tsp.mkiv \starttext \splitfloat[lines=auto,inbetween={}] {\placetable{\dorecurse{5}{test\recurselevel\endgraf}}} {\bTABLE[split=yes] \bTR \bTD 11 \eTD \bTD \input tufte \eTD \eTR \bTR \bTD 12 \eTD \bTD \input zapf \eTD \eTR \bTR \bTD 13 \eTD \bTD \input bryson \eTD \eTR \bTR \bTD 14 \eTD \bTD test \eTD \eTR \bTR \bTD 21 \eTD \bTD \input tufte \eTD \eTR \bTR \bTD 22 \eTD \bTD \input zapf \eTD \eTR \bTR \bTD 23 \eTD \bTD \input bryson \eTD \eTR \bTR \bTD 24 \eTD \bTD test \eTD \eTR \bTR \bTD 31 \eTD \bTD \input tufte \eTD \eTR \bTR \bTD 32 \eTD \bTD \input zapf \eTD \eTR \bTR \bTD 33 \eTD \bTD \input bryson \eTD \eTR \bTR \bTD 34 \eTD \bTD test \eTD \eTR \eTABLE} \stoptext -- 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] handling key=value sets with lua
hi list, skip to the many %%% if you just want to help me ;) i need to make a macro which consists of ten optional arguments. it wouldn’t be too ugly to require to write the following to use it, since it outputs a 3×3 matrix with an adjacent tenth item, but tex can’t handle ten arguments afaik. syntax idea: empty: \bigcrafting% {}{}{}% {}{}{}{}% {}{}{}% partly filled: \bigcrafting% {}{}{}% {planks}{planks}{}{workbench}% {planks}{planks}{}% how it should look: [image: CraftingWorkbenchIO.png] ok, since using empty “required” arguments aren’t elegent, either, i wanted to get into key=value sets, but ran into the next problem: i wanted to instead define bigcrafting to work like this: \bigcrafting [21=planks, 22=planks, 31=planks, 32=planks] [workbench] but \getparametershttp://wiki.contextgarden.net/Commands_with_KeyVal_argumentscan’t handle numerical values. %%% and while points of the compass like NE, S and C (for center) would work, it sprang to my mind that a parser written in lua, whitch uses lua’s internal hashtables would meet my furter needs better (like looping over the matrix and testing if parameters are set) can somebody tell my how to access (and test if they exist) the arguments (#1,[#2],…) of a command definition in lua? ___ 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] handling key=value sets with lua
On 9-1-2011 11:13, Philipp A. wrote: i wanted to instead define bigcrafting to work like this: \bigcrafting [21=planks, 22=planks, 31=planks, 32=planks] [workbench] but \getparametershttp://wiki.contextgarden.net/Commands_with_KeyVal_argumentscan’t handle numerical values. Why now? \getparameters[MyNameSpace][1=a,2=b] \getvalue{MyNameSpace1} works ok. - 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] howto start with presentations?
On Sun, 9 Jan 2011, Jonas Stein wrote: You need to either enable write18 or add \runMPgraphicsfalse on the top of your file. I put \runMPgraphicsfalse in the first line of test.tex. That changed nothing. Do you have the metapost executable and format. Does a minimal metapost file work. Then i searched for write18 in the wiki. I found ConTeXt defines \systemcommandmode that is 2 if \write18 is enabled, 1 otherwise. on [1] so i wrote \systemcommandmode to get a 2 or 1 in textbody. [2] But i did not get a 1 or 2. Now i can see the circle and a ^ I have no idea, where the ^ comes from. I think that this information needs to be added to the texlive installation page on the wiki. in the year 2006 someone wrote [3]: Hans response on the mailing list write 18 is a hack and pdfshellescape a sane replacement in luatex it will probably be gone completely since there we have \directlua 0 { os.execute(...) } I wonder if write18 is necessary 5 years later. You need to use MkIV to get the new features :) Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] handling key=value sets with lua
2011/1/9 Hans Hagen pra...@wxs.nl On 9-1-2011 11:13, Philipp A. wrote: i wanted to instead define bigcrafting to work like this: \bigcrafting [21=planks, 22=planks, 31=planks, 32=planks] [workbench] but \getparameters http://wiki.contextgarden.net/Commands_with_KeyVal_argumentscan’t handle numerical values. Why now? \getparameters[MyNameSpace][1=a,2=b] \getvalue{MyNameSpace1} works ok. ok, i just knew of \MyNameSpaceKey, which doesn’t work if the key consists numbers. thanks again! ConTeXt seems to be your personal baby, isn’t 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] handling key=value sets with lua
On Sun, Jan 9, 2011 at 11:13 PM, Philipp A. flying-sh...@web.de wrote: hi list, skip to the many %%% if you just want to help me ;) i need to make a macro which consists of ten optional arguments. it wouldn’t be too ugly to require to write the following to use it, since it outputs a 3×3 matrix with an adjacent tenth item, but tex can’t handle ten arguments afaik. syntax idea: empty: \bigcrafting% {}{}{}% {}{}{}{}% {}{}{}% partly filled: \bigcrafting% {}{}{}% {planks}{planks}{}{workbench}% {planks}{planks}{}% how it should look: [image: CraftingWorkbenchIO.png] ok, since using empty “required” arguments aren’t elegent, either, i wanted to get into key=value sets, but ran into the next problem: i wanted to instead define bigcrafting to work like this: \bigcrafting [21=planks, 22=planks, 31=planks, 32=planks] [workbench] but \getparametershttp://wiki.contextgarden.net/Commands_with_KeyVal_argumentscan’t handle numerical values. %%% As Hans wrote it's possible, but I like the to use row for row, col for column and c for cell i.e \def\BigCrafting[#1]% {\getparameters[Ph][c11={},c12={},c13={}, c21={},c22={},c23={},c24={}, c31={},c32={},c33={},#1] \bTABLE \bTR\bTD\getvalue{Phc11}\eTD\bTD\getvalue{Phc12}\eTD\bTD\getvalue{Phc13}\eTD\eTR \bTR\bTD\getvalue{Phc21}\eTD\bTD\getvalue{Phc22}\eTD\bTD\getvalue{Phc23}\eTD\bTD\getvalue{Phc24}\eTD\eTR \bTR\bTD\getvalue{Phc31}\eTD\bTD\getvalue{Phc32}\eTD\bTD\getvalue{Phc33}\eTD\eTR \eTABLE } \starttext \BigCrafting[c11=FOO,c33=GOO,c22=BOO,c24=Zoo] \BigCrafting[c11=FOO,c24=GOO] \stoptext You can also use a better namespace \def\BigCrafting[#1]% \unprotect \getparameters[flying-sh...@web.de:][c11={},c12={},c13={}, c21={},c22={},c23={},c24={}, c31={},c32={},c33={},#1] \getvalue{flying-sh...@web.de:c11}%% \getvalue{flying-sh...@web.de:c12}%% and so on \protect } -- 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] Math delimiters too big in lucida in MKII
Hi, Hans: I dont know why you do this in math-lbr.mkii: \def\LBRbig {\@@dobig{8.20}} \def\LBRBig {\@@dobig{10.80}} \def\LBRbigg {\@@dobig{13.42}} \def\LBRBigg {\@@dobig{16.03}} \def\LBRbiggg{\@@dobig{17.72}} \def\LBRBiggg{\@@dobig{21.25}} % \def\LBRbig {\@@dobig{0.820}} % \def\LBRBig {\@@dobig{1.080}} % \def\LBRbigg {\@@dobig{1.342}} % \def\LBRBigg {\@@dobig{1.603}} % \def\LBRbiggg{\@@dobig{1.772}} % \def\LBRBiggg{\@@dobig{2.125}} I think the second set of parameters( the commented one) is correct. or \big,\bigg, etc will produce huge delimiters... Yue Wang ___ 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] Gnuplot module: Patching of Gnuplot binary still needed?
On Sun, Jan 9, 2011 at 19:54, Mojca Miklavec mojca.miklavec.li...@gmail.com wrote: On Sun, Jan 9, 2011 at 22:50, jeroen.mus...@hotmail.com wrote: In the past I was using this instruction set to install GnuPlot in Windows Context Mkiv minimals but it does not work anymore. Is there a bug in t-gnuplot version 2009-07-21? Thanks a lot for the bug report. I can confirm that it fails here as well. I rarely use any other terminal but the native ConTeXt one, so I didn't notice the problem with metapost terminal. I'll take a look into it. Does it help if you change \getfiguredimensions[\@@GNUPLOTresult] into \getfiguredimensions[\@@GNUPLOTfinalresult] in line 484? 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 ___
[NTG-context] mptopdf (broken again)
Hans Taco, A tiny request: is there any chance to make the mptopdf script point to --script mptopdf instead of --script base? And note for Taco: I have no idea how it got there (I think that I use TLContrib), but my TL installation (/usr/texbin/mptopdf) contains: eval '(exit $?0)' eval 'exec perl -S $0 ${1+$@}' eval 'exec perl -S $0 $argv:q' if 0; # MikTeX users can set environment variable TEXSYSTEM to miktex. #D \module #D [ file=mptopdf.pl, ... #D copyright={PRAGMA ADE / Hans Hagen \ Ton Otten}] #C #C This module is part of the \CONTEXT\ macro||package and is #C therefore copyrighted by \PRAGMA. See licen-en.pdf for #C details. # use File::Copy ; # not in every perl use Config ; use Getopt::Long ; use strict ; use File::Basename ; And when I try to use it I get: mptopdf a.mp -bash: /usr/texbin/mptopdf: Permission denied Thanks a lot, 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] howto start with presentations?
I put \runMPgraphicsfalse in the first line of test.tex. That changed nothing. Do you have the metapost executable and format. Does a minimal metapost file work. i think i have metapost installed: # whereis mpost mpost: /usr/bin/mpost /usr/share/man/man1/mpost.1.gz Hans response on the mailing list write 18 is a hack and pdfshellescape a sane replacement in luatex it will probably be gone completely since there we have \directlua 0 { os.execute(...) } I wonder if write18 is necessary 5 years later. You need to use MkIV to get the new features :) OK lets try. I have installed the package context 2010.07.30-1 [1] on my system. I tried texexec --lua test.tex and context test.tex but both generate no pdf. they tell me: MTXrun | forcing cache reload MTXrun | resolvers: warning: no lua configuration files found MTXrun | resolvers MTXrun | resolvers MTXrun | the resolver databases are not present or outdated MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | resolvers: remembering file 'mtx-context.lua' MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | unknown script 'context.lua' or 'mtx-context.lua' [1] http://packages.debian.org/experimental/context -- Jonas Stein n...@jonasstein.de ___ 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] howto start with presentations?
On Mon, 10 Jan 2011, Jonas Stein wrote: I put \runMPgraphicsfalse in the first line of test.tex. That changed nothing. Do you have the metapost executable and format. Does a minimal metapost file work. i think i have metapost installed: # whereis mpost mpost: /usr/bin/mpost /usr/share/man/man1/mpost.1.gz Does it work? That is if you compile beginfig(1) draw fullcircle scaled 3cm ; endfig ; end ; using `mp file.mp` do you get a correct file.1 file (open it using a ps viewer). Otherwise I don't know why you are getting erratic behavior with metapost. Sometimes, an extra run helps. Hans response on the mailing list write 18 is a hack and pdfshellescape a sane replacement in luatex it will probably be gone completely since there we have \directlua 0 { os.execute(...) } I wonder if write18 is necessary 5 years later. You need to use MkIV to get the new features :) OK lets try. I have installed the package context 2010.07.30-1 [1] on my system. I tried texexec --lua test.tex and context test.tex but both generate no pdf. they tell me: MTXrun | forcing cache reload MTXrun | resolvers: warning: no lua configuration files found MTXrun | resolvers MTXrun | resolvers MTXrun | the resolver databases are not present or outdated MTXrun | resolvers: using sufffix based filetype 'lua' MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | resolvers: remembering file 'mtx-context.lua' MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | unknown script 'context.lua' or 'mtx-context.lua' As explained on http://wiki.contextgarden.net/Running_Mark_IV you need to run luatools --generate. (the format generation is now done automatically). Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] howto start with presentations?
# whereis mpost mpost: /usr/bin/mpost /usr/share/man/man1/mpost.1.gz Does it work? That is if you compile beginfig(1) draw fullcircle scaled 3cm ; endfig ; end ; using `mp file.mp` do you get a correct file.1 file (open it using a ps viewer). $ mpost file.mp okular file.1 shows me a nice circle. mp is not available on my system, but mpost claims to be metapost: $ mpost -version MetaPost 1.208 does context expect it as 'mp'? I could create a alias mp -- mpost Otherwise I don't know why you are getting erratic behavior with metapost. Sometimes, an extra run helps. i tried it several times and deleted the .pdf files before. I wonder why context is so quiet if errors occour. If something fails it should always break with errorcode != 0 As explained on http://wiki.contextgarden.net/Running_Mark_IV you need to run luatools --generate. i suppose its a bug of the debian package if i have to run it after installation via .deb system. as user i did now: $ luatools --generate MTXrun | forcing cache reload MTXrun | resolvers: warning: no lua configuration files found MTXrun | resolvers MTXrun | resolvers MTXrun | the resolver databases are not present or outdated MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | resolvers: remembering file 'mtx-base.lua' MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | unknown script 'base.lua' or 'mtx-base.lua' = seems something goes wrong here too. Kind regards and thank you a lot for your help. -- Jonas Stein n...@jonasstein.de ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Problem with Encoding math symbols
Hi, I have xml containing following mathml. The Ω is symbol replaced with * #937;* in the xml. But when i run the tex file. The pdf is not rendered with Ω symbol. I have enclosed my xml and tex files. Suppose that math xmlns=http://www.w3.org/1998/Math/MathML; mstyle displaystyle=true miS/mi mo=/mo mn11/mn mo*#937;*/mo mo,/mo miT/mi mo=/mo mn90/mn mo#937;/mo mrow mtextand/mtext /mrow miU/mi mo=/mo mn84/mn mo#937;/mo /mstyle /math. Thanks Anand ?xml version=1.0 encoding=UTF-8? documentdiv class='question' divp/pbr/br/ Simplify the expression br/math xmlns=http://www.w3.org/1998/Math/MathML; mstyle displaystyle=true mfrac mrow mn2/mn msup miy/mi mn4/mn /msup /mrow mrow mix/mi miy/mi mn-4/mn miy/mi /mrow /mfrac /mstyle /mathbr/ and give your answer in the form of br/math xmlns=http://www.w3.org/1998/Math/MathML; mstyle displaystyle=true mfrac mrow mrow mif/mi mrow mo(/mo mix/mi mo)/mo /mrow /mrow /mrow mrow mrow mig/mi mrow mo(/mo mix/mi mo)/mo /mrow /mrow /mrow /mfrac mo./mo /mstyle /mathbr/ br/ Your answer for the function math xmlns=http://www.w3.org/1998/Math/MathML; mstyle displaystyle=true mrow mif/mi mrow mo(/mo mix/mi mo)/mo /mrow /mrow /mstyle /math is : __ br/ Your answer for the function math xmlns=http://www.w3.org/1998/Math/MathML; mstyle displaystyle=true mrow mig/mi mrow mo(/mo mix/mi mo)/mo /mrow /mrow /mstyle /math is : __ br//div /divdiv class='question' divp/pbr/br/ Simplify the expression br/math xmlns=http://www.w3.org/1998/Math/MathML; mstyle displaystyle=true mfrac mrow msup mix/mi mn2/mn /msup mn-8/mn mix/mi mn+12/mn /mrow mrow msup mix/mi mn2/mn /msup mn-3/mn mix/mi mn+2/mn /mrow /mfrac /mstyle /mathbr/ and give your answer in the form of br/math xmlns=http://www.w3.org/1998/Math/MathML; mstyle displaystyle=true mfrac mrow mrow mif/mi mrow mo(/mo mix/mi mo)/mo /mrow /mrow /mrow mrow mrow mig/mi mrow mo(/mo mix/mi mo)/mo /mrow /mrow /mrow /mfrac mo./mo /mstyle /mathbr/ br/ Your answer for the function math xmlns=http://www.w3.org/1998/Math/MathML; mstyle displaystyle=true mrow mif/mi mrow mo(/mo mix/mi mo)/mo /mrow /mrow /mstyle /math is : __ br/ Your answer for the function math xmlns=http://www.w3.org/1998/Math/MathML; mstyle displaystyle=true mrow mig/mi mrow mo(/mo mix/mi mo)/mo /mrow /mrow /mstyle /math is : __ br//div /divdiv class='question' divp/pbr/br/ Simplify the expression br/math xmlns=http://www.w3.org/1998/Math/MathML; mstyle displaystyle=true mfrac mrow mn2/mn mix/mi mn-2/mn /mrow mrow mix/mi mn-1/mn /mrow /mfrac mo+/mo mfrac mrow mn2/mn mo-/mo mix/mi /mrow mrow mix/mi mn-1/mn /mrow /mfrac /mstyle /mathbr/ and give your answer in the form of br/math xmlns=http://www.w3.org/1998/Math/MathML; mstyle displaystyle=true mfrac mrow mrow mif/mi mrow mo(/mo mix/mi mo)/mo /mrow /mrow /mrow mrow mrow mig/mi mrow mo(/mo mix/mi mo)/mo /mrow /mrow /mrow /mfrac mo./mo /mstyle /mathbr/ br/ Your answer for the function math xmlns=http://www.w3.org/1998/Math/MathML; mstyle displaystyle=true mrow mif/mi mrow mo(/mo mix/mi mo)/mo /mrow /mrow /mstyle /math is : __ br/ Your answer for the function math xmlns=http://www.w3.org/1998/Math/MathML; mstyle displaystyle=true mrow mig/mi mrow mo(/mo mix/mi mo)/mo /mrow /mrow /mstyle /math is : __ br//div /divdiv class='question' divp/pbr/br/ Simplify the expression br/math xmlns=http://www.w3.org/1998/Math/MathML; mstyle displaystyle=true mn3/mn mo-/mo mfrac mrow mn5/mn /mrow mrow mix/mi mn-4/mn /mrow /mfrac /mstyle /mathbr/ and give your answer in the form of br/math xmlns=http://www.w3.org/1998/Math/MathML; mstyle displaystyle=true mfrac mrow mrow mif/mi mrow mo(/mo mix/mi mo)/mo /mrow /mrow /mrow mrow mrow mig/mi mrow mo(/mo mix/mi mo)/mo /mrow /mrow /mrow /mfrac mo./mo /mstyle /mathbr/ br/ Your answer for the function math xmlns=http://www.w3.org/1998/Math/MathML; mstyle displaystyle=true mrow mif/mi mrow mo(/mo
[NTG-context] Computer Modern Typewriter Proportional
Does anyone know how the Computer Modern Typewriter Proportional font would be specified in ConTeXt? In Latex is is specified as follows: \usepackage[T1]{fontenc} \renewcommand*\ttdefault{cmvtt} \renewcommand*\familydefault{\ttdefault} %% Only if the base font of the document is to be typewriter style See: http://www.tug.dk/FontCatalogue/cmvtt/ Any help would be appreciated! ___ 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] mptopdf (broken again)
Hi, That mptopdf probably comes from the 'mptopdf' texlive package. On 01/10/2011 12:37 AM, Mojca Miklavec wrote: And when I try to use it I get: mptopdf a.mp -bash: /usr/texbin/mptopdf: Permission denied Permission denied is usually a file permission error (script is not executable). 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 ___