Re: [NTG-context] \box0 to Lua
Ahoj! · > On Mon, 18 Jun 2012 16:56:56 +0200, Jaroslav Hajtmar wrote: > > >Ahoj... > >To bych ti rekl ... :-) > > tex.box[0].height > > ... To ale získáš jen výšku boxu, ne? > > Co když ten hbox chceš vysázet Luou na nějakou šířku? Na to budeš potřebovat node.hpack() (luatexref-t.pdf, s. 95). ···8<··· \starttext foo \startluacode local newnode = node.new(node.id"glyph") newnode.char = unicode.utf8.byte"x" newnode.font = font.current() -- won’t work before \starttext newnode.lang = tex.language --- second arg to node.hpack is width local hbox= node.hpack(newnode, 2*newnode.width) node.write(hbox) \stopluacode bar \stoptext ···8<··· The first argument is the head of a node list, the second can be the width in sp (or “spread”). See Patrick’s excellent tutorial: http://wiki.luatex.org/index.php/TeX_without_TeX to get started with node fun. (The \box registers are accessible as tex.box, see page 112 in the luatex manual.) Philipp > > L. > > > > > >J. > > > > > > > > > > > >Dne 18.6.2012 16:53, Procházka Lukáš Ing. - Pontex s. r. o. napsal(a): > >>Hello, > >> > >>(my apologies if this message is duplicated - our mail server was > >>out-of-order some time) > >> > >>how to call "\box0" and "\hbox to3cm{abc}" by Lua? > >> > >> > >>\startluacode > >> context[[\box0]] % OK but a "nicer" way preferred, so keep on trying - > >> context.box(0) % Error > >> context.box{0} % Error > >> context.box"0" % Error > >> > >> context.hbox({to = "cm"}, "abc") % Error > >>\stopluacode > >> > >> > >>TIA. > >> > >>Best regards, > >> > >>Lukas > >> > >> > > > >___ > >If your question is of interest to others as well, please add an entry to > >the Wiki! > > > >maillist : ntg-context@ntg.nl / > >http://www.ntg.nl/mailman/listinfo/ntg-context > >webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > >archive : http://foundry.supelec.fr/projects/contextrev/ > >wiki : http://contextgarden.net > >___ > > > > > -- > Ing. Lukáš Procházka [mailto:l...@pontex.cz] > Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] > Bezová 1658 > 147 14 Praha 4 > > Tel: +420 244 062 238 > Fax: +420 244 461 038 > > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments pgpRiHOKS9Ih4.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 ___
[NTG-context] ConTeXt and SciTE
I'm trying to get the SciTE lexers that come with the ConTeXt distribution working but I'm not having much luck. SciTE certainly processes the ConTeXt start-up script but never does any highlighting. I always get the warning that lpeg is not loaded but I cannot find any separate lpeg.properties file or lpeg.lua file so I don't know how to get it imported and active to run the lexers. Any suggestions? Interestingly, the lexers work just fine in Textadept but I haven't quite figured out how to get them to load automatically. I have to manually select the lexer but it works fine once I do. I'm inclined to go the Textadept route and build a nice snippets file and Adeptsense support but I'd like to see things running in SciTE, too. Right now I'm using Emacs to do my editing but AUCTeX does a poor job of supporting ConTeXt and when I asked about future plans on the AUCTeX mailing list, I got a snarky, sarcastic reply that "code doesn't change itself." Typical FSF attitude, I see. If I'm going to have to write my own support, Lua is much closer to the languages I've used before than elisp so it should be considerably easier. Of course, I'll pass on anything I come up with to the ConTeXt community. -- Bill Meahan K8QN "The pessimist complains about the wind; the optimist expects it to change; the realist adjusts the sails." -- William Arthur Ward This message is digitally signed with an X.509 certificate to prove it is from me and has not been altered since it was sent. smime.p7s Description: S/MIME Cryptographic 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] Input path to include external files with vim module
On Mon, 18 Jun 2012, Marco wrote: does the vim module have a feature to specify the input path, similar to \usepath for context files or \setupexternalfigures [directory=…] for graphics? Currently, it does not. I'm looking for a solution not to hard-code paths into my files. Example: \usemodule [vim] \definevimtyping [XML] [syntax=xml] \starttext \typeXMLfile{code/foo.xml} % what I do now %\typeXMLfile{foo.xml} % what is desired \stoptext I'll see how easy it is to hook into the code for \usepath etc. It might be best to add this feature to the filter module, but I'll have to come up with another key as `directory` is already taken to specify output directory. 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] Is it possible to generate eps files using metafun and context?
On 06/18/2012 04:19 PM, Hans Hagen wrote: and then use pstopdf to turn the pdf into an eps You must mean pdftops, since pstopdf cannot convert pdf files into eps but pdftops can. I tried pdftops, the result quality is high, but since my desire is to provide eps figures to others that have to insert high quality figures into Microsoft Word, the pdftops converted eps files cannot insert into Microsoft Word. Fortunately, I have found out that pstopdf uses ghostscript/Inkscape to do the real job, and I use ghostscript directly to convert pdf into eps, the quality is high enough with the -dNOCACHE option (I had tried inkscape before my last posting a few weeks ago, and the resulting quality is not high enough when I'm using Fedora 16. But it seems that inkscape in Fedora 17 produces better quality now, though ghostscript is better), and it can be recognized by Microsoft Word. Thanks for the information. ___ 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] horizontal spacing between only two rows
Hello, in the following example it is possible to split a table vertical (between the first and the second column with (\startxcell[distance=5pt] test \stopxcell). \starttext \startxtable[option={stretch,width}] \startxrow \startxcell[distance=5pt] test \stopxcell \startxcelltest \stopxcell \startxcelltest \stopxcell \stopxrow \startxrow \startxcelltest \stopxcell \startxcelltest \stopxcell \startxcelltest \stopxcell \stopxrow \startxrow \startxcelltest \stopxcell \startxcelltest \stopxcell \startxcelltest \stopxcell \stopxrow \stopxtable \stoptext But how can I get horizontal spacing between "only" two rows, and not for the whole table? Thank you, Helmut -- Helmut Schwertner 28201 Bremen eMail: helmut.schwertner(at)gmx.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] \box0 to Lua
Hello, sorry for impoliteness - last two messages should't have been addressed to the forum, but only to me and Jaroslav - thus in Czech. The question still lasts... Best regards, Lukas how to call "\box0" and "\hbox to3cm{abc}" by Lua? \startluacode context[[\box0]] % OK but a "nicer" way preferred, so keep on trying - context.box(0) % Error context.box{0} % Error context.box"0" % Error context.hbox({to = "cm"}, "abc") % Error \stopluacode -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \box0 to Lua
On Mon, 18 Jun 2012 16:56:56 +0200, Jaroslav Hajtmar wrote: Ahoj... To bych ti rekl ... :-) tex.box[0].height ... To ale získáš jen výšku boxu, ne? Co když ten hbox chceš vysázet Luou na nějakou šířku? L. J. Dne 18.6.2012 16:53, Procházka Lukáš Ing. - Pontex s. r. o. napsal(a): Hello, (my apologies if this message is duplicated - our mail server was out-of-order some time) how to call "\box0" and "\hbox to3cm{abc}" by Lua? \startluacode context[[\box0]] % OK but a "nicer" way preferred, so keep on trying - context.box(0) % Error context.box{0} % Error context.box"0" % Error context.hbox({to = "cm"}, "abc") % Error \stopluacode TIA. Best regards, Lukas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \box0 to Lua
Ahoj... To bych ti rekl ... :-) tex.box[0].height J. Dne 18.6.2012 16:53, Procházka Lukáš Ing. - Pontex s. r. o. napsal(a): Hello, (my apologies if this message is duplicated - our mail server was out-of-order some time) how to call "\box0" and "\hbox to3cm{abc}" by Lua? \startluacode context[[\box0]] % OK but a "nicer" way preferred, so keep on trying - context.box(0) % Error context.box{0} % Error context.box"0" % Error context.hbox({to = "cm"}, "abc") % Error \stopluacode TIA. Best regards, Lukas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \box0 to Lua
Hello, how to call "\box0" and "\hbox to3cm{abc}" by Lua? \startluacode context[[\box0]] % OK but a "nicer" way preferred, so keep on trying - context.box(0) % Error context.box{0} % Error context.box"0" % Error context.hbox({to = "cm"}, "abc") % Error \stopluacode TIA. Best regards, Lukas -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \box0 to Lua
Hello, (my apologies if this message is duplicated - our mail server was out-of-order some time) how to call "\box0" and "\hbox to3cm{abc}" by Lua? \startluacode context[[\box0]] % OK but a "nicer" way preferred, so keep on trying - context.box(0) % Error context.box{0} % Error context.box"0" % Error context.hbox({to = "cm"}, "abc") % Error \stopluacode TIA. Best regards, Lukas -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Refreshing (synchronizing) values between Lua variables and TeX registers
On 18-6-2012 15:02, Jaroslav Hajtmar wrote: Hello ConTeXist and Lua experts Is there any way to refresh values between the values stored in Lua code and TeX registers? I need to evaluating the values of TeX registers (counters, dimensions, height of boxes, etc.) during the Lua cycle. I would like in the cycle read values from the TeX registers and write back there so that all values were always synchronized. Or I need advice on how to proceed. Most of my Lua code is in a separate file in Lua function. Is there a universal way to "jump out of cycle" to TeX synchronize all values between TeX registers and Lua values (even at the cost of slowing down) and then go back into the cycle and continue? I do not write cycles using the TeX macro language, but so far I'm failing in way around it. What I need to I knowing or What I need to learn? Thanx Jaroslav Hajtmar The minimal example shows (maybe) what I mean: \newcount\testcount \def\countrefresh{\directlua{tex.count.testcount = tex.count.testcount + 1}} \def\universalrefreshcommand{\directlua{-- ???}} \def\printdebuginfo{ \directlua{tex.sprint(': ',tex.count.testcount, " - ", "\\the\\testcount","\\par")} } \starttext Here values are not synchronized: \testcount=0 \startluacode local i=0 for i=1,5 do tex.sprint(i) tex.count.testcount = tex.count.testcount + 1 tex.sprint("\\printdebuginfo") end \stopluacode \blank[big] Here values of textcounter are synchronized: \testcount=0 \startluacode local i=0 for i=1,5 do tex.sprint(i) tex.sprint("\\countrefresh") tex.sprint("\\printdebuginfo") end \stopluacode \blank[big] Is there a universal way to "jump out of cycle" to TeX synchronize all values between TeX registers and Lua values (even at the cost of slowing down) and then go back into the cycle and continue? \testcount=0 \startluacode local i=0 for i=1,5 do tex.sprint(i) tex.count.testcount = tex.count.testcount + 1 tex.sprint("\\universalrefreshcommand") tex.sprint("\\printdebuginfo") end \stopluacode sure, as the 'prints' end up in the input buffer and are dealt with after the lua code has been dealt with; at some point we can have coroutines for going back and forth in your case I'm not sure what is the problem as you can set the valus at the lua end and print the current value when needed \blank[big] \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Refreshing (synchronizing) values between Lua variables and TeX registers
Hello ConTeXist and Lua experts Is there any way to refresh values between the values stored in Lua code and TeX registers? I need to evaluating the values of TeX registers (counters, dimensions, height of boxes, etc.) during the Lua cycle. I would like in the cycle read values from the TeX registers and write back there so that all values were always synchronized. Or I need advice on how to proceed. Most of my Lua code is in a separate file in Lua function. Is there a universal way to "jump out of cycle" to TeX synchronize all values between TeX registers and Lua values (even at the cost of slowing down) and then go back into the cycle and continue? I do not write cycles using the TeX macro language, but so far I'm failing in way around it. What I need to I knowing or What I need to learn? Thanx Jaroslav Hajtmar The minimal example shows (maybe) what I mean: \newcount\testcount \def\countrefresh{\directlua{tex.count.testcount = tex.count.testcount + 1}} \def\universalrefreshcommand{\directlua{-- ???}} \def\printdebuginfo{ \directlua{tex.sprint(': ',tex.count.testcount, " - ", "\\the\\testcount","\\par")} } \starttext Here values are not synchronized: \testcount=0 \startluacode local i=0 for i=1,5 do tex.sprint(i) tex.count.testcount = tex.count.testcount + 1 tex.sprint("\\printdebuginfo") end \stopluacode \blank[big] Here values of textcounter are synchronized: \testcount=0 \startluacode local i=0 for i=1,5 do tex.sprint(i) tex.sprint("\\countrefresh") tex.sprint("\\printdebuginfo") end \stopluacode \blank[big] Is there a universal way to "jump out of cycle" to TeX synchronize all values between TeX registers and Lua values (even at the cost of slowing down) and then go back into the cycle and continue? \testcount=0 \startluacode local i=0 for i=1,5 do tex.sprint(i) tex.count.testcount = tex.count.testcount + 1 tex.sprint("\\universalrefreshcommand") tex.sprint("\\printdebuginfo") end \stopluacode \blank[big] \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Strange page breaks
Am 18.06.2012 um 12:41 schrieb Andreas Schneider: > On Monday, June 18, 2012, at 11:54 Hans Hagen wrote: >> On 18-6-2012 09:43, Andreas Schneider wrote: >>> Hello, >>> >>> the attached example causes very strange page breaks. >>> >>> 1. The subsubsubject is the last line on the first page. That doesn't >>> look very nice. >>> >>> 2. The xtable is broken although the whole table fits on that page. >>> >>> Is there anything I (or you? :-)) can do about these two problems? >>> >>> #This is LuaTeX, Version beta-0.70.2-2012052100 (TeX Live 2012/W32TeX) >>> #ConTeXt ver: 2012.05.24 19:36 MKIV fmt: 2012.6.18 int: english/english > >> not that strange but it's obscured by the fact that you use a float >> (which has different spacing and room-for rules) without caption > >> in this case you can omit the placefloat and do > >> \startxtable[header=repeat,split=yes] > >> Hans > > Doesn't quite work, since then the header isn't repeated when the > table is actually split. > > With natural tables there seems to be a similar problem. But I guess > that enabling split=yes will actually place it inside a float > automatically which leads back to the initial problem. You can tell context to force a page break when there isn’t enough space for the heading. \setuphead[subsubsubject][before={\testpage[6]\blank[big]}] 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] **SPAM** ConTeXt breaks pdfcrop
Hello, ** S Barmeier [2012-06-18 15:38:20 +0900]: > I guess this has to do with my path variables, but having context > minimals installed prevents pdfcrop from running successfully: > PDFCROP 1.33, 2012/02/01 - Copyright (c) 2002-2012 by Heiko Oberdiek. > kpathsea: Running mktexfmt pdftex.fmt > /usr/local/texlive/2010/bin/x86_64-linux/mktexfmt: 395: > /usr/local/texlive/2010/bin/x86_64-linux/mktexfmt: > /home/user/context/tex/texmf/texconfig/tcfmgr: not found > fmtutil: config file `fmtutil.cnf' not found. > !!! Error: pdfTeX run failed! > Does anybody have a suggestion of how to deal with this issue successfully? Do you familiar with shell script writing? > Thank you. > Severin > P.S.: I'm on ubuntu 12.04. Save this code as `pdfcrop-tl' (or use any other name, except pdfcrop) #!/bin/bash PATH=/usr/local/texlive/2010/bin/x86_64-linux:$PATH pdfcrop $@ exit 0 and run as $ pdfcrop-tl FILE.PDF (If I not mistake this is known as `wrapper'.) --- WBR, Vladimir Lomov -- "Protozoa are small, and bacteria are small, but viruses are smaller than the both put together." ___ 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] Strange page breaks
On Monday, June 18, 2012, at 11:54 Hans Hagen wrote: > On 18-6-2012 09:43, Andreas Schneider wrote: >> Hello, >> >> the attached example causes very strange page breaks. >> >> 1. The subsubsubject is the last line on the first page. That doesn't >> look very nice. >> >> 2. The xtable is broken although the whole table fits on that page. >> >> Is there anything I (or you? :-)) can do about these two problems? >> >> #This is LuaTeX, Version beta-0.70.2-2012052100 (TeX Live 2012/W32TeX) >> #ConTeXt ver: 2012.05.24 19:36 MKIV fmt: 2012.6.18 int: english/english > not that strange but it's obscured by the fact that you use a float > (which has different spacing and room-for rules) without caption > in this case you can omit the placefloat and do > \startxtable[header=repeat,split=yes] > Hans Doesn't quite work, since then the header isn't repeated when the table is actually split. With natural tables there seems to be a similar problem. But I guess that enabling split=yes will actually place it inside a float automatically which leads back to the initial problem. -- Best Regards, Andreas pgp4OZpHbZ9TL.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 ___
[NTG-context] Input path to include external files with vim module
Hi, does the vim module have a feature to specify the input path, similar to \usepath for context files or \setupexternalfigures [directory=…] for graphics? I'm looking for a solution not to hard-code paths into my files. Example: \usemodule [vim] \definevimtyping [XML] [syntax=xml] \starttext \typeXMLfile{code/foo.xml} % what I do now %\typeXMLfile{foo.xml} % what is desired \stoptext 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 ___
Re: [NTG-context] Strange page breaks
On 18-6-2012 09:43, Andreas Schneider wrote: Hello, the attached example causes very strange page breaks. 1. The subsubsubject is the last line on the first page. That doesn't look very nice. 2. The xtable is broken although the whole table fits on that page. Is there anything I (or you? :-)) can do about these two problems? #This is LuaTeX, Version beta-0.70.2-2012052100 (TeX Live 2012/W32TeX) #ConTeXt ver: 2012.05.24 19:36 MKIV fmt: 2012.6.18 int: english/english not that strange but it's obscured by the fact that you use a float (which has different spacing and room-for rules) without caption in this case you can omit the placefloat and do \startxtable[header=repeat,split=yes] 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] Exceptions to assignment syntax [was: Re: labeltext assignment]
On 16-6-2012 15:19, Philipp Gesang wrote: Hi Hans! · On 12-6-2012 16:41, Philipp Gesang wrote: I’ll be collecting candidates for the wiki page until saturday and then write up a draft, maybe submit it to the list for review first. I can draw up a preliminary list first so you can have a look at it. next week is ok Here’s some pre-alpha draft version with some links I collected: https://gist.github.com/2941284 (The gist is auto-converted; use the “raw” or “edit” buttons to view the code. The content of is messed up in the output.) Unfortunately I won’t be able to complete it this weekend as I planned to, because Reality™ demands that I spend my time on paperwork instead. palets ... the trailing comma is actually an error but anyway we can have: \def\colo_palets_define_one#1#2% get rid of { } {\doifassignmentelse{#2} % catch empty entries {\colo_palets_define_two{#1}[#2]} {\colo_palets_define_three{#1}{#2}}} \def\colo_palets_define_three#1#2% {\ifcsname\??colorpaletspecification#2\endcsname \processcommacommand[\csname\??colorpaletspecification#2\endcsname]{\colo_palets_define_one{#1}}% \fi} which then also supports: \setupcolors [x11] \definepalet [colorful] [primary=green] \definepalet [bleak] [primary=darkgray,colorful] \starttext \setuppalet [colorful] \color[primary]{Ain’t I a colorful entity?} \setuppalet [bleak] \color[primary]{Ain’t I a colorful entity?} \stoptext i.e. a hidden feature of referencing to already defined palets. 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] Deleting "-temp" files
On 17-6-2012 17:53, Aditya Mahajan wrote: Hi, context --purgeall deletes all temporary files (i.e., files containing "-temp-"). In fact, I had requested this feature so that the filter module does not clutter the current directory with temporary files. However, there is a bug. ConTeXt deletes all files containg "-temp" (note the missing "-" at the end). So, $ touch A1-temperature.tex $ context --purgeall gives mtx-context | purged files: A1-temperature.tex AFAICS, mtx-context.lua is correct. It contains "-temp-" as expected. So, I don't know why files containing "-temp" are deleted. hm, shouldn't local special_runfiles = { "-mpgraph", "-mprun", "-temp-" } be: local special_runfiles = { "%-mpgraph", "%-mprun", "%-temp%-" } can you test that? Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Is it possible to generate eps files using metafun and context?
On 14-6-2012 19:07, Hongwen Qiu wrote: Hi, Is it possible to typeset the label with context and generate eps output files using the metafun format? If yes, then how? \startMPpage ... \stopMPpage or \startTEXpage ... \stopTEXpage and then use pstopdf to turn the pdf into an eps Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Strange page breaks
Hello, the attached example causes very strange page breaks. 1. The subsubsubject is the last line on the first page. That doesn't look very nice. 2. The xtable is broken although the whole table fits on that page. Is there anything I (or you? :-)) can do about these two problems? #This is LuaTeX, Version beta-0.70.2-2012052100 (TeX Live 2012/W32TeX) #ConTeXt ver: 2012.05.24 19:36 MKIV fmt: 2012.6.18 int: english/english -- Best Regards, Andreas\starttext \dorecurse{36}{some text some text some text some text some text\crlf} \subsubsubject{Some Table} \placefigure[split,force,here,none]{}{ \startxtable[header=repeat] \startxtablehead \startxrow \startxcell Col1 \stopxcell \startxcell Col2 \stopxcell \startxcell Col3 \stopxcell \stopxrow \stopxtablehead \startxtablebody \startxrow \startxcell foo \stopxcell \startxcell bar \stopxcell \startxcell \stopxcell \stopxrow \startxrow \startxcell test \stopxcell \startxcell test \stopxcell \startxcell test \stopxcell \stopxrow \stopxtablebody \stopxtable} \stoptext pgpoW0a5TUCC3.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 ___