[NTG-context] Commutative Diagrams
Hi List, I'm looking for a good way to set mathmatical commutative Diagrams in ConTeXt, has anybody of you advices what would be a native/good way to do so? Thanks -- Martin 'golodhrim' Scholz Auf dem Sattler 4 34516 Ederbringhausen Germany Phone: +49 6454 799623 mobile: +49 176 63301749 Fax: +49 6454 7990138 e-Mail: scholz@googlemail.com Not only Guinness - Linux is good for you, too. -- Banzai on IRC ___ 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] Different fontsizes via simplefonts
Hi lists, I'm searching for a possibility to create different fontsizes for chapters, section etc. using simplefonts. Any ideas? Daniel ___ 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] Commutative Diagrams
On Sunday 14 November 2010 07:03:31 Martin 'golodhrim' Scholz wrote: Hi List, I'm looking for a good way to set mathmatical commutative Diagrams in ConTeXt, has anybody of you advices what would be a native/good way to do so? Thanks The eplain macro set does commutative diagrams. But the eplain package has a conflict with Context macros. Perhaps you could build the diagrams in eplain as individual eps or pdf files and then place them in a Context document. -- John Culleton, Wexford Press Create Book Covers with Scribus $5.95 at http://www.booklocker.com/books/4055.html Free eps format barcode: http://www.tux.org/~milgram/bookland/ ___ 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] Croatian translation of core-mis.mki[iv] and m-units.tex
Hi, I translated the strings in core-mis.mki[iv] and m-units.tex to Croatian. Updated files are here: http://www.inf.uniri.hr/~vmiletic/context/core-mis.mkii http://www.inf.uniri.hr/~vmiletic/context/core-mis.mkiv http://www.inf.uniri.hr/~vmiletic/context/m-units.tex There are many more strings in m-units.tex that could (and probably should) be translated, if this code will remain in use (since Hans and Wolfgang talked about new module for units). Regards, -- Vedran Miletić ___ 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] beta
Thanks! Seems, that this was the (same) reason. I think I have now working minimals 2010.11.12 18:22 Kind regards Erik 2010/11/14 Aditya Mahajan adit...@umich.edu On Sat, 13 Nov 2010, Erik Margraf wrote: I get the following error message while running first-setup.sh: ! I can't find file `catc-ini.mkiv'. to be read again \relax l.42 \loadmarkfile{catc-ini} --- Strange enough, I find it as /tex/texmf-context/tex/context/base/catc-ini.mkiv Anything I can do about that? I had the same error. I am on linux-64 and the luatex binary in linux-64/bin did not have the execute permission set. So the wrong luatex was being used. But I use mtx-update directly, so do not know if this is the same reason for the error in the minimals. 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] Animations (again, but different)
Hi, with context version 2010.11.12 18:22, I get much better results now. Thanks! I guess, I now have a first feeling about these things. kind regards Erik 2010/11/11 Erik Margraf erik.marg...@googlemail.com Thank's for your example! But I'm sorry to say, I didn't get it. When I run context on it, it results in a 2x2 matrix of pictures. Two of them show some reaction (change the color somewhat) when I click on them. (the cows don't). That's all. Maybe it has to with the following lines in the log file: ... interaction : active references : unknown reference [][VideLayer{1}] references : unknown reference [][VideLayer{2}] references : unknown reference [][VideLayer{3}] references : unknown reference [][VideLayer{4}] ... I tried the following example from the Wiki: === \defineproperty[my-hasitations][layer][state=stop] \startproperty[my-hasitations] To \ConTeXt\ or not to \ConTeXt? \stopproperty \button{Show Decision}[VideLayer{my-hasitations}] \button{Hide Decision}[HideLayer{my-hasitations}] \button{Toggle Decision}[ToggleLayer{my-hasitations}] This produces the analogous messages for these three buttons. My Context Version - MTXrun | current version: 2010.11.03 19:42 My LuaTeX Version - This is LuaTeX, Version beta-0.63.0-2010090921 on Debian AMD64. I looked at the files with Acrobat Reader 9 on Windows XP (BTW. I also tried this completely using a MiKTeX 9 Installation on WinXP without success) Am I missing something? kind regards Erik 2010/11/4 Wolfgang Schuster schuster.wolfg...@googlemail.com Am 03.11.2010 um 17:38 schrieb Erik Margraf: Dear Contexters! In the last few days I could read a few posts about animations in a resulting PDF document. Some statements mentioned java script as possible means to create an animation. Is it possible to do the following (which is rather simple using html and javascript)? -- Have a bunch of thumbnail pictures -- When you click on a thumbnail you see a larger version of the same picture -- With the next mouseclick the picture vanishes (you see the gallery of thumbnails again) if yes, how? Any hints are welcome. Not perfect (it’s not possible to close the big pictures) but it should give you a first impression: \setupinteraction[state=start] \defineproperty [1] [layer] [state=stop,global=yes] \defineproperty [2] [layer] [state=stop,global=yes] \defineproperty [3] [layer] [state=stop,global=yes] \defineproperty [4] [layer] [state=stop,global=yes] \starttexdefinition properties \startoverlay {\startproperty[1]\overlayfigure{cow}\stopproperty} {\startproperty[2]\overlayfigure{mill}\stopproperty} {\startproperty[3]\overlayfigure{hacker}\stopproperty} {\startproperty[4]\overlayfigure{cow}\stopproperty} \stopoverlay \stoptexdefinition \defineoverlay[properties][\properties] \startTEXpage[background={foreground,properties}] \bTABLE[width=4cm,height=4cm,offset=none] \bTR \bTD \goto{\overlayfigure{cow}}[VideLayer{1}] \eTD \bTD \goto{\overlayfigure{mill}}[VideLayer{2}] \eTD \eTR \bTR \bTD \goto{\overlayfigure{hacker}}[VideLayer{3}] \eTD \bTD \goto{\overlayfigure{cow}}[VideLayer{4}] \eTD \eTR \eTABLE \stopTEXpage 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] Commutative Diagrams
I use the TikZ module. http://www.felixl.de/commu.pdf Bye Emanuele 2010/11/14 John Culleton j...@wexfordpress.com: On Sunday 14 November 2010 07:03:31 Martin 'golodhrim' Scholz wrote: Hi List, I'm looking for a good way to set mathmatical commutative Diagrams in ConTeXt, has anybody of you advices what would be a native/good way to do so? Thanks The eplain macro set does commutative diagrams. But the eplain package has a conflict with Context macros. Perhaps you could build the diagrams in eplain as individual eps or pdf files and then place them in a Context document. -- John Culleton, Wexford Press Create Book Covers with Scribus $5.95 at http://www.booklocker.com/books/4055.html Free eps format barcode: http://www.tux.org/~milgram/bookland/ ___ 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 ___ -- Al mondo ci sono 10 tipi di persone: quelli che conoscono il sistema binario e quelli che non lo conoscono. ___ 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 beta for linux-64
Hi. ** Aditya Mahajan [2010-11-13 21:11:31 -0500]: On Sat, 13 Nov 2010, Erik Margraf wrote: I get the following error message while running first-setup.sh: ! I can't find file `catc-ini.mkiv'. to be read again \relax l.42 \loadmarkfile{catc-ini} --- Strange enough, I find it as /tex/texmf-context/tex/context/base/catc-ini.mkiv Anything I can do about that? I had the same error. I am on linux-64 and the luatex binary in linux-64/bin did not have the execute permission set. So the wrong luatex was being used. But I use mtx-update directly, so do not know if this is the same reason for the error in the minimals. I could confirm that there is the problem with context minimal installation on linux-64. The cause of the problem is missing permission for executable. Currently I could build the formats only if I split the actions: update and make. P.S. To ensure that the same problem would not arise in future the 'update' and 'make' procedures should be splitted and between them 'chmod +x bin/texlua tex/texmf-linux-64/bin/luatex' (texmf-$platform) is inserted. --- WBR, Vladimir. -- Perfect day for scrubbing the floor and other exciting things. ___ 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] problem with beta for linux-64
On Sunday 14 November 2010 18:23:51 Vladimir Lomov wrote: P.S. To ensure that the same problem would not arise in future the 'update' and 'make' procedures should be splitted and between them 'chmod +x bin/texlua tex/texmf-linux-64/bin/luatex' (texmf-$platform) is inserted. Better yet, our maintainers only need to take care with the mode settings upon uploading. :) Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] why nil argument
In transforming dates through a Lua-call I get a nil error I do not understand. The luatex code = \startluacode hvdm = hvdm or {} require lpeg -- Transform date in Lua from mmdd to dd-mm- with checks hvdm.day = lpeg.R(02) * lpeg.R(09) + lpeg.P(30) + lpeg.P(31) - lpeg.P(00) hvdm.month = lpeg.P(0) * lpeg.R(19) + lpeg.P(10) + lpeg.P(11) + lpeg.P(12) hvdm.year = lpeg.R(12) * lpeg.R(09) * lpeg.R(09) * lpeg.R(09) hvdm.date = lpeg.C(hvdm.year) * lpeg.C(hvdm.month) * lpeg.C(hvdm.day) * -1 / %3-%2-%1 \stopluacode \def\FormatDate#1{\ctxlua{tex.print(tostring(hvdm.date:match(#1)))}} Calling \FormatDate(1) is OK although it returns nil (correct would be #1 = 20101114 Calling \FormatDate(A) is not OK with the error: ! LuaTeX error main ctx instance:1: bad argument #1 to 'match' (string expected, got nil) stack traceback: [C]: in function 'match' main ctx instance:1: in main chunk. It is no problem if the function returns the string nil from tostring() but an error like this I would like to avoid. Hans van der Meer ___ 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] why nil argument
On Sun, Nov 14, 2010 at 06:55:20PM +0100, Hans van der Meer wrote: In transforming dates through a Lua-call I get a nil error I do not understand. The luatex code = \startluacode hvdm = hvdm or {} require lpeg -- Transform date in Lua from mmdd to dd-mm- with checks hvdm.day = lpeg.R(02) * lpeg.R(09) + lpeg.P(30) + lpeg.P(31) - lpeg.P(00) hvdm.month = lpeg.P(0) * lpeg.R(19) + lpeg.P(10) + lpeg.P(11) + lpeg.P(12) hvdm.year = lpeg.R(12) * lpeg.R(09) * lpeg.R(09) * lpeg.R(09) hvdm.date = lpeg.C(hvdm.year) * lpeg.C(hvdm.month) * lpeg.C(hvdm.day) * -1 / %3-%2-%1 \stopluacode \def\FormatDate#1{\ctxlua{tex.print(tostring(hvdm.date:match(#1)))}} Calling \FormatDate(1) is OK although it returns nil (correct would be #1 = 20101114 Calling \FormatDate(A) is not OK with the error: You are passing a undefined variable, A. Your argument should be quoted: hvdm.date:match(#1) 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] why nil argument
On 14 nov 2010, at 20:27, Khaled Hosny wrote: On Sun, Nov 14, 2010 at 06:55:20PM +0100, Hans van der Meer wrote: In transforming dates through a Lua-call I get a nil error I do not understand. The luatex code = \startluacode hvdm = hvdm or {} require lpeg -- Transform date in Lua from mmdd to dd-mm- with checks hvdm.day = lpeg.R(02) * lpeg.R(09) + lpeg.P(30) + lpeg.P(31) - lpeg.P(00) hvdm.month = lpeg.P(0) * lpeg.R(19) + lpeg.P(10) + lpeg.P(11) + lpeg.P(12) hvdm.year = lpeg.R(12) * lpeg.R(09) * lpeg.R(09) * lpeg.R(09) hvdm.date = lpeg.C(hvdm.year) * lpeg.C(hvdm.month) * lpeg.C(hvdm.day) * -1 / %3-%2-%1 \stopluacode \def\FormatDate#1{\ctxlua{tex.print(tostring(hvdm.date:match(#1)))}} Calling \FormatDate(1) is OK although it returns nil (correct would be #1 = 20101114 Calling \FormatDate(A) is not OK with the error: You are passing a undefined variable, A. Your argument should be quoted: hvdm.date:match(#1) I would think that is not the case. For one, because then calling with argument 1 would fail in the same manner as argument A does; which does not happen. Secondly, the call originates from \startxmlsetups xml:case:burned \xmldoifelsetext{#1}{}{\FormatDate{\xmlflush{#1}}}{\currentdate} \stopxmlsetups This does makes it a string already. Something else must happen here, I guess. Hans van der Meer ___ 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] why nil argument
On Sun, Nov 14, 2010 at 08:47:30PM +0100, Hans van der Meer wrote: On 14 nov 2010, at 20:27, Khaled Hosny wrote: On Sun, Nov 14, 2010 at 06:55:20PM +0100, Hans van der Meer wrote: In transforming dates through a Lua-call I get a nil error I do not understand. The luatex code = \startluacode hvdm = hvdm or {} require lpeg -- Transform date in Lua from mmdd to dd-mm- with checks hvdm.day = lpeg.R(02) * lpeg.R(09) + lpeg.P(30) + lpeg.P(31) - lpeg.P(00) hvdm.month = lpeg.P(0) * lpeg.R(19) + lpeg.P(10) + lpeg.P(11) + lpeg.P(12) hvdm.year = lpeg.R(12) * lpeg.R(09) * lpeg.R(09) * lpeg.R(09) hvdm.date = lpeg.C(hvdm.year) * lpeg.C(hvdm.month) * lpeg.C(hvdm.day) * -1 / %3-%2-%1 \stopluacode \def\FormatDate#1{\ctxlua{tex.print(tostring(hvdm.date:match(#1)))}} Calling \FormatDate(1) is OK although it returns nil (correct would be #1 = 20101114 Calling \FormatDate(A) is not OK with the error: You are passing a undefined variable, A. Your argument should be quoted: hvdm.date:match(#1) I would think that is not the case. For one, because then calling with argument 1 would fail in the same manner as argument A does; which does not happen. No, match(1) will match an integer 1, match(1) matches a string 1, while match(A) will match a variable A which is not what you are after, while match(A) will match a string A. Secondly, the call originates from \startxmlsetups xml:case:burned \xmldoifelsetext{#1}{}{\FormatDate{\xmlflush{#1}}}{\currentdate} \stopxmlsetups This does makes it a string already. TeX is not lua, the concepts are completely and totally different. Something else must happen here, I guess. No, there isn't. 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] beta
On 13-11-2010 2:10, Li Yanrui (李延瑞) wrote: 2010/11/13 Hans Hagenpra...@wxs.nl: Hi, I uploaded a new beta (so the minimals will have it in about an hour): The line 169 and 171 in strc-mar.lua exist typo. The 'setting' should be 'settings'? ok, fixed in next beta - 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] XSL-FO to PDF?
On 13-11-2010 4:14, Peter Davis wrote: On 11/13/10 6:03 AM, Renaud AUBIN wrote: Uh ? Give FOP a try… http://xmlgraphics.apache.org/fop/1.0/index.html Could you describe your target chain ? XML → FO → PDF ? Actually, I could write some XSLT to convert the XSL-FO into TeX or ConTeXt. But I was thinking it might be beneficial to use ConTeXt to process the XML (XSL-FO) directly ... get it all under one roof, so to speak. faster too - 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] XSL-FO to PDF?
On Sun, Nov 14, 2010 at 4:31 PM, Hans Hagen pra...@wxs.nl wrote: On 13-11-2010 4:14, Peter Davis wrote: On 11/13/10 6:03 AM, Renaud AUBIN wrote: Uh ? Give FOP a try… http://xmlgraphics.apache.org/fop/1.0/index.html Could you describe your target chain ? XML → FO → PDF ? Actually, I could write some XSLT to convert the XSL-FO into TeX or ConTeXt. But I was thinking it might be beneficial to use ConTeXt to process the XML (XSL-FO) directly ... get it all under one roof, so to speak. faster too Interesting point. I initially assumed it would be faster to do all my XML processing in ConTeXt, but it occurred to me that perhaps using XSLT to or even home-grown XML processing, I could generate a stream of TeX that could be processed while I'm still producing it. So one process might be looking at successive data records and generating TeX for the various pages, and another process could be simultaneously running TeX to typeset those pages. Plausible? Thank you. -pd ___ 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] Gnuplot module: Patching of Gnuplot binary still needed?
Dear ConTeXt folks, I read about the Gnuplot module [1] and I am wondering whether patching the Gnuplot binary is still necessary. Github is currently down and therefore cannot check if the code is included. But judging from gnuplot help terminal […] Subtopics available for terminal: canvascgm corel dpu414 dumb dxf eepic emf emtex epslatex epson_180dpi epson_60dpi epson_lx800 fig gif gpic hp2623a hp2648hp500chpdj hpgl hpljiihppj imagen jpeg latex mfmif mpnec_cp6 okidata pbm pcl5 pdfcairo png pngcairo pop postscriptpslatex pstex pstricks push qms regis starc svg tandy_60dpi tek40xx tek410x texdraw tgif tkcanvas tpic vttek wxt x11 xlib xterm $ gnuplot --version gnuplot 4.4 patchlevel 0 it appears it is still required. Did some send this patch already upstream for inclusion? Thanks, Paul [1] http://wiki.contextgarden.net/Gnuplot signature.asc Description: This is a digitally signed message part ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] problem with beta for linux-64
On Sun, Nov 14, 2010 at 18:27, Alan BRASLAU alan.bras...@cea.fr wrote: On Sunday 14 November 2010 18:23:51 Vladimir Lomov wrote: P.S. To ensure that the same problem would not arise in future the 'update' and 'make' procedures should be splitted and between them 'chmod +x bin/texlua tex/texmf-linux-64/bin/luatex' (texmf-$platform) is inserted. Better yet, our maintainers only need to take care with the mode settings upon uploading. :) I don't understand why this happens. My only explanation is that Peter might be using an older version of building script that forgot to set the missing permissions. Since it works OK on other platforms. 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] XSL-FO to PDF?
XSLT is fully adapted to XML/XML(fo or other target schema) since it was the design basis… My experience is: − good xslt is (relatively) easy to design as soon as you master the underlying data model − xsltproc is REALLY REALLY fast for xslt 1 processing − if you want something smarter, go for java with saxon/xerces, which is performant too… I'm the devil's advocate but what's your need to use ConTeXt. I have not read all your threads but if you just need: − to produce pdfs from xml data − without advanced typesettings you could use xslt to produce DocBook 5 xml file, include them using xi:include href=./data/stuff.xml/, configure your layout with an intermediate xslt + Fo xml config… Once more, it depends on your original ecosystem and constraints… If you provide a use case, I should provide a sample if you don't need it within a couple of hours (but a couple of days)… Best regards, Renaud Le 14/11/2010 22:36, Peter Davis a écrit : On Sun, Nov 14, 2010 at 4:31 PM, Hans Hagen pra...@wxs.nl wrote: On 13-11-2010 4:14, Peter Davis wrote: On 11/13/10 6:03 AM, Renaud AUBIN wrote: Uh ? Give FOP a try… http://xmlgraphics.apache.org/fop/1.0/index.html Could you describe your target chain ? XML → FO → PDF ? Actually, I could write some XSLT to convert the XSL-FO into TeX or ConTeXt. But I was thinking it might be beneficial to use ConTeXt to process the XML (XSL-FO) directly ... get it all under one roof, so to speak. faster too Interesting point. I initially assumed it would be faster to do all my XML processing in ConTeXt, but it occurred to me that perhaps using XSLT to or even home-grown XML processing, I could generate a stream of TeX that could be processed while I'm still producing it. So one process might be looking at successive data records and generating TeX for the various pages, and another process could be simultaneously running TeX to typeset those pages. Plausible? Thank you. -pd ___ 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] XML pretty printer?
Hi folks, For imormation, I'm curently rewritting the pret-xml.lua file pointed on that list previously… So don't miss too much time to review! I'm using LPEG now and I hope to submit something operational last week for those interested… The result will be far better than the previous version… Renaud ___ 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] The visual counter module
Hi, This is to announce an alpha release of the visual counter module. See http://randomdeterminism.wordpress.com/2010/11/14/visualcounter-module/ for some examples, in particular http://randomdeterminism.files.wordpress.com/2010/11/theorem.pdf The idea is to display a counter visually, in the same spirit as interactions bars. There is no support for interaction, but, on the plus sides, these work for any conter, not just the page counter. The idea of the module comes from the counters designed by Thomas as part of the simpleslides module. The module only works with MkIV because I am using the new namespace code. So MkII support is unlikely. Anyone else interested in such counters? 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] XSL-FO to PDF?
Hi, Renaud, In a nutshell, my use is a form of database publishing from two XML files. The first file is *like* XSL-FO, but also contains some namespaced constructs. This XML file is the page template ... it represents the layout, the static portions of the page, and the locations where various live data should get plugged in. The second XML contains the live data, extracted from a database. There might be thousands or tens of thousands of records of information to publish. So for each main element in the live data file, we use the template file, but plug in the live data and generate a beautiful, formatted document. The data may contain plain text, text with some formatting, and references to graphics and images in various formats. It definitely needs to support advanced typesetting (beautiful paragraphs, tracking and kerning, ligatures, multiple languages, etc.). It needs to support full color (mostly CMYK), most widely used fonts (T1, TT/OT, CID, etc.) It also needs to produce finished pages at a rate of thousands or tens of thousands of pages per minute. TeX has the features I want, but I'm still trying to determine the best way to use it. ConTeXt is particularly attractive for its built-in XML support, simplefonts support, pdfTeX support and minimals packaging, among other things. -pd On 11/14/2010 5:48 PM, Renaud AUBIN wrote: XSLT is fully adapted to XML/XML(fo or other target schema) since it was the design basis… My experience is: − good xslt is (relatively) easy to design as soon as you master the underlying data model − xsltproc is REALLY REALLY fast for xslt 1 processing − if you want something smarter, go for java with saxon/xerces, which is performant too… I'm the devil's advocate but what's your need to use ConTeXt. I have not read all your threads but if you just need: − to produce pdfs from xml data − without advanced typesettings you could use xslt to produce DocBook 5 xml file, include them using xi:include href=./data/stuff.xml/, configure your layout with an intermediate xslt + Fo xml config… Once more, it depends on your original ecosystem and constraints… If you provide a use case, I should provide a sample if you don't need it within a couple of hours (but a couple of days)… Best regards, Renaud Le 14/11/2010 22:36, Peter Davis a écrit : On Sun, Nov 14, 2010 at 4:31 PM, Hans Hagenpra...@wxs.nl wrote: On 13-11-2010 4:14, Peter Davis wrote: On 11/13/10 6:03 AM, Renaud AUBIN wrote: Uh ? Give FOP a try…http://xmlgraphics.apache.org/fop/1.0/index.html Could you describe your target chain ? XML → FO → PDF ? Actually, I could write some XSLT to convert the XSL-FO into TeX or ConTeXt. But I was thinking it might be beneficial to use ConTeXt to process the XML (XSL-FO) directly ... get it all under one roof, so to speak. faster too Interesting point. I initially assumed it would be faster to do all my XML processing in ConTeXt, but it occurred to me that perhaps using XSLT to or even home-grown XML processing, I could generate a stream of TeX that could be processed while I'm still producing it. So one process might be looking at successive data records and generating TeX for the various pages, and another process could be simultaneously running TeX to typeset those pages. Plausible? Thank you. -pd ___ 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 ___ -- Peter Davis The Tech Curmudgeon - http://www.techcurmudgeon.com Ideas Great and Dumb - http://www.ideasgreatanddumb.com ___ 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] column breaks and TABLE
Hi all, with natural tables I can’t seem to get column breaks right. Example: ··8· \setuppapersize[A5][A5] \definecolumnset[three][n=3] \starttext \startcolumnset[three] \dorecurse{5}{ \subject{Test nr. \recurselevel} Some paragraph.\par \penalty1 % comment me to get even footer; well, sort of … \bTABLE[split=yes] \bTABLEbody \dorecurse{80}{ \bTR\bTC Nr.\eTC\bTC\recurselevel\eTC\eTR } \eTABLEbody \eTABLE Text after.\par\column } \stopcolumnset \stoptext ··8· The crude prevention of a column break before the table appears to cause the first column to extend into the footer. However, without the ‘\penalty’ the table will always appear on a new column -- not looking well if there’s not much to typeset besides the table itself. Is there a way to get the best of both worlds: an even footer without a break before the table? I’d be grateful for any hints or suggestions, Philipp -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments pgpRg9CbL9kQ1.pgp Description: PGP signature ___ 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] problem with beta for linux-64
On Sun, Nov 14 2010, Mojca Miklavec wrote: I don't understand why this happens. My only explanation is that Peter might be using an older version of building script that forgot to set the missing permissions. Since it works OK on other platforms. Strange, I do always: cd ~/minimals svn up ./do_all.sh I'll take a look at it... Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___