Re: [NTG-context] mod_php vs context: tight loop
Am 2011-11-27 um 06:45 schrieb Brendan Jurd: On 25/11/11 19:17, Hans Hagen wrote: On 25-11-2011 06:12, Brendan Jurd wrote: I have a PHP application which generates documentation on the fly with context. This has been working really well, but I am now testing deployment on a new server with a more recent version of context, and it seems to be somehow getting itself into a tight loop. Hi Brendan, I once had similar problems running ConTeXt (LuaTeX) behind my Django server (gunicorn or FCGI behind Nginx). In my case it was some strange permissions problem of the calling process. I could only avoid it by changing my process manager from daemontools to supervisord. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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] \unit and Hertz, lux, and degrees/minutes/seconds
On 25 November 2011, Hans Hagen [pra...@wxs.nl] wrote: I uploaded a new beta. ... - Hz, dB (actually deci + bel so megabel also works), lx, permille, t, k, Da added Actually decibel is an odd one, a logarithmic unit, so prefixes other than deci are never used. However the implementation is no problem. - ad 2: no looking back (would demand an extra correction pass elsewhere, maybe some day) Here I meant just space within the argument to \unit{}. It seems to be handled correctly now ... - ad 8: manipulating the input this way is somewhat beyond the purpose of a typesetting system (Normalisation of numbers and unit prefixes). OK, just seeing where the line was to be drawn. However, in the code a comment notes the possibility of automatic conversions to imperial units, which is a step even further, actually. Personally I don't think it's a good idea. [Or the b-grade movies]. - ad 9: much will be configureable; see mkiv file for an example of defining extra units (\registerunit [units] [point=pt, basepoint=bp]); Works, although - I myself am not going to look in all kind of other tex stuff that lays around as it's up to users/usage what is added, given that it fits into the model of context; we have the old units modules as starting point That was a note to self, but any takers ... I attach a (much shorter) bunch of test cases (source and pdf again). Thanks, Robin units2.tex Description: units2.tex units2.pdf Description: units2.pdf ___ 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] error with \showlayout and export
Hi wizards, if I use \showlayout in a project where I setup export=yes, ConTeXt stops with a fatal error. Minimal failing example: \setupbackend[export=yes] \starttext \showlayout \stoptext Ixchel:konzept hraban$ context --purge context_test.tex mtx-context | run 1: luatex --fmt=/Users/hraban/Library/texmf/tex/ texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/ formats/cont-en --lua=/Users/hraban/Library/texmf/tex/texmf-cache/ luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont- en.lui --backend=pdf ./context_test.tex \stoptext This is LuaTeX, Version beta-0.70.1-2011051908 (rev 4277) \write18 enabled. (context_test.tex ConTeXt ver: 2011.11.24 15:52 MKIV fmt: 2011.11.25 int: english/ english system cont-new.mkiv loaded (/Users/hraban/Library/texmf/tex/texmf-context/tex/context/base/cont- new.mkiv system beware: some patches loaded from cont-new.mkiv ) system context_test.top loaded (context_test.top) fontslatin modern fonts are not preloaded languageslanguage en is active backend export enabling export to xml {/Users/hraban/Library/texmf/tex/texmf-context/fonts/map/pdftex/ context/mkiv-base.map} fontspreloading latin modern fonts (second stage) (/Users/hraban/Library/texmf/tex/texmf-context/tex/context/base/type- siz.mkiv) (/Users/hraban/Library/texmf/tex/texmf-context/tex/context/ base/type-otf.mkiv) filesreadfile asked name: 'loc', not found {/Users/hraban/Library/texmf/tex/texmf-fonts/fonts/map/dvips/lm/lm- math.map}{/Users/hraban/Library/texmf/tex/texmf-fonts/fonts/map/dvips/ lm/lm-rm.map} fontsvirtual math unable to resolve name mapsfromchar fontsfallback modern rm 12pt is loaded (/Users/hraban/Library/texmf/tex/texmf-context/tex/context/base/page- run.mkiv loading ConTeXt Page Macros / Runtime Macros ) interfaceinitialization loading interface definitions from 'mult-def.lua' interfaceinitialization loading interface messages from 'mult-mes.lua' metapost initializing instance 'metafun' using format 'metafun' metapost loading 'metafun': /Users/hraban/Library/texmf/tex/ texmf-context/metapost/context/base/metafun.mpiv backend xmp using file '/Users/hraban/Library/texmf/tex/ texmf-context/tex/context/base/lpdf-pdx.xml' pagesflushing realpage 1, userpage 1, subpage 1 pagesflushing realpage 2, userpage 2 pagesflushing realpage 3, userpage 3 pagesflushing realpage 4, userpage 4 pagesflushing realpage 5, userpage 5 )/Users/hraban/Library/texmf/tex/texmf/fonts/opentype/public/lm/ lmmono10-regular.otf/Users/hraban/Library/texmf/tex/texmf/fonts/ opentype/public/lm/lmmono12-regular.otf/Users/hraban/Library/texmf/ tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf ! LuaTeX error ...exmf/tex/texmf-context/tex/context/base/back-exp.lua: 1203: attempt to index global 'c' (a nil value). system tex error on line 0 in file : LuaTeX error ... empty file * ./context_test.tex \stoptext ? Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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] error with \showlayout and export
Am 27.11.2011 um 12:11 schrieb Henning Hraban Ramm: Hi wizards, if I use \showlayout in a project where I setup export=yes, ConTeXt stops with a fatal error. Minimal failing example: \setupbackend[export=yes] \starttext \showlayout \stoptext I think this change in back-exp.lua should work (runs at least without an error message): function extras.tabulate(result,element,detail,n,fulltag,di) local data = di.data for i=1,#data do local di = data[i] if di.tg == tabulaterow then local did = di.data local content = false for i=1,#did do local d = did[i].data -- local c = d and c.content local c = d and d.content if c and #c 0 then content = true break end end if not content then di.element = -- or simply remove end end end end 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] page number in margin
Hi again, I’d like to get my page numbers in the margin. This works: \setuppagenumbering[alternative=doublesided,location=margin] But that way it’s on the bottom of the footer margin; I'd like it on the top. Second variant: Even better, I’d like my page number at the bottom of the text margin. How can I achieve that? location option marginedge doesn’t seem to do anything, as far as i can tell, and inright is the same as margin. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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] Export to epub
Hi I've been playing about with Export in Context with a view to producing ePubs. When I run the script: /mtxrun --script epub --make test.specification /the test.tree is prepared but no epub file. The output shown below has a couple or 'error' messages which are probably due to the way my text editor is set up (Scite Version 2.02). If anyone is using Scite and producing ePubs I be grateful for some hints on how to set this up so that inkscape and zip works. %%Script Output mtx-epub| creating paths in tree test.tree mtx-epub| copying toc.ncx to test.tree/OPS/toc.ncx mtx-epub| copying test-styles.css to test.tree/OPS/test-styles.css mtx-epub| copying test-images.css to test.tree/OPS/test-images.css mtx-epub| copying test.css to test.tree/OPS/test.css mtx-epub| copying test.xhtml to test.tree/OPS/test.xhtml mtx-epub| running command 'inkscape --export-plain-svg=cow.svg cow.pdf' 'inkscape' is not recognized as an internal or external command, operable program or batch file. mtx-epub| copying cow.svg to test.tree/OPS/cow.svg mtx-epub| copying hacker.jpg to test.tree/OPS/hacker.jpg mtx-epub| copying mill.png to test.tree/OPS/mill.png mtx-epub| creating archive 'zip' is not recognized as an internal or external command, operable program or batch file. 'zip' is not recognized as an internal or external command, operable program or batch file. 'zip' is not recognized as an internal or external command, operable program or batch file. mtx-epub| epub archive: test.tree/test.epubExit code: 0 %%End Script Output I'm using Minimals ConTeXt ver: 2011.09.27 20:05 MKIV fmt: 2011.11.19 int: english/english on a Windows 7 machine and the test.tex file is the |export-example.tex file renamed from the Minimals distribution|. Thanks Keith McKay ___ 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] Error while compiling : ! String contains an invalid utf-8 sequence.
2011/11/26 Alexandre Krispin wrote: Now that japanese display correctly, there is still another problem. Japanese sentences (long titles in bibliography) don't break at the end of line. I have tested the behavior of japanese with entire paragraphs, and I get the same problem as in the bibliography, lines don't break and go through the page. Though I have looked to documentation about chinese on the wiki, none helped me to solve this problem. Does someone have any idea ? My first guess is that ConTeXt doesn't know how to hyphenate / split words or sentences without space. I don't know what the Japanese typesetting rules are, but if nothing is implemented yet, it cannot work. Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Export to epub
On 27-11-2011 14:03, Keith McKay wrote: Hi I've been playing about with Export in Context with a view to producing ePubs. When I run the script: /mtxrun --script epub --make test.specification /the test.tree is prepared but no epub file. The output shown below has a couple or 'error' messages which are probably due to the way my text editor is set up (Scite Version 2.02). If anyone is using Scite and producing ePubs I be grateful for some hints on how to set this up so that inkscape and zip works. This is unrelated to scite (btw, you run a pretty old scite). %%Script Output mtx-epub | creating paths in tree test.tree mtx-epub | copying toc.ncx to test.tree/OPS/toc.ncx mtx-epub | copying test-styles.css to test.tree/OPS/test-styles.css mtx-epub | copying test-images.css to test.tree/OPS/test-images.css mtx-epub | copying test.css to test.tree/OPS/test.css mtx-epub | copying test.xhtml to test.tree/OPS/test.xhtml mtx-epub | running command 'inkscape --export-plain-svg=cow.svg cow.pdf' 'inkscape' is not recognized as an internal or external command, operable program or batch file. 'zip' is not recognized as an internal or external command, operable program or batch file. you need to install inkscape (just google for it) as well as zip (often part of gnu binutils) 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] FLOW chart module broken
Hi Hans, unfortunately the FLOWchart module is broken. The breaking over pages does not seem to work. If there are too many cells for a page the compilation stops with a fatal error. i installed the latest beta: ConTeXt ver: 2011.11.25 21:29 MKIV fmt: 2011.11.27 \@@vars:flowcell:text:text -Randje $\leq $ 1mm maken argument ...]{\getvariable {flowcell:text}{text} } \firstoftwoarguments #1#2-#1 \@@su:flowcell:text:place:indeed ...:text}{text}}} \endgroup \@@su:flowcell:text:place ...ll:text:place:indeed} \fi \fi \endgroup \next1 #1,-\dosetups {#1} \do_process_comma_item ... l.428 ? ! Emergency stop. I include the file I was trying to compile. Kind regards Willi singlesectionbinding-flowchart.tex Description: Binary data ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] strange behavior with apa and apa-fr bibliographic styles
Hello, I have noticed that, for a reason I don't understand, dots after dates in the bibliography are not placed in the same manner. For example, I get (copy-paste from pdf) : Morales, I. (1997) . The mexican crisis and the weakness of the NAFTA consensus. Annals of the American Academy of Political and Social Science, 550 :130-152. Morales, I.(1999). NAFTA : The governance of economic openness. Annals of the American Academy of Political and Social Science, 565 :35-65. Robey, J. S. (1999) . Civil society and NAFTA : Initial results. Annals of the American Academy of Political and Social Science, 565 :113-125. Totman, C. (1980) . From Sakoku to Kaikoku. The Transformation of Forei- gn-Policy Attitudes, 1853-1868. Monumenta Nipponica, 35(1) :1-19. So for the first entry, the point after (1997) is placed after a space, whereas it is not the case for the second entry (there is also no space between I. and (1999)). In some cases (when I add more entries), I even have the point before the parenthesis, though the bib file might be right (or in any cases, since the field are completed in the same manner, I didn't expected different behaviors in the result since it is automatized and all fields are articles). Here is the bib file : @article{conrad1980transformation, author = Conrad Totman, title = From {S}akoku to {K}aikoku. {T}he {T}ransformation of {F}oreign-{P}olicy {A}ttitudes, 1853-1868, journal = Monumenta Nipponica, year = 1980, volume = 35, number = 1, pages = 1-19, publisher = Sophia University, url = http://www.jstor.org/stable/2384397;, } @article{robey1999civil, author = John S. Robey, title = Civil Society and {NAFTA}: Initial Results, journal = Annals of the American Academy of Political and Social Science, publisher = Sage Publications, Inc., year = 1999, month = September, volume = 565, pages = 113-125, url = http://www.jstor.org/stable/1049540; } @article{morales1999governance, author = Isidro Morales, title = {NAFTA}: The Governance of Economic Openness, journal = Annals of the American Academy of Political and Social Science, publisher = Sage Publications, Inc., year = 1999, month = September, volume = 565, pages = 35-65, url = http://www.jstor.org/stable/1049536; } @article{morales1999mexican, author = Isidro Morales, title = The Mexican Crisis and the Weakness of the {NAFTA} Consensus, journal = Annals of the American Academy of Political and Social Science, publisher = Sage Publications, Inc., year = 1997, month = March, volume = 550, pages = 130-152, url = http://www.jstor.org/stable/1047712; } % And here is what I have for bibliography setup : % \setupbibtex[database=biblio,sort=author] \setuppublications[alternative=apa-fr,sorttype=bbl,refcommand=authoryear] % Thanks for your help ! Cheers, Alexandre Krispin -- -- Alexandre KRISPIN 41 rue Guynemer | 93200 Saint-Denis | France tél : 06 28 76 69 34 | http://bijutsu.toile-libre.org ___ 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] Error while compiling : ! String contains an invalid utf-8 sequence.
Thank you ! But with the scripts for chinese characters, I got the expected result :) Cheers, Alexandre Krispin 2011/11/27 Mojca Miklavec mojca.miklavec.li...@gmail.com 2011/11/26 Alexandre Krispin wrote: Now that japanese display correctly, there is still another problem. Japanese sentences (long titles in bibliography) don't break at the end of line. I have tested the behavior of japanese with entire paragraphs, and I get the same problem as in the bibliography, lines don't break and go through the page. Though I have looked to documentation about chinese on the wiki, none helped me to solve this problem. Does someone have any idea ? My first guess is that ConTeXt doesn't know how to hyphenate / split words or sentences without space. I don't know what the Japanese typesetting rules are, but if nothing is implemented yet, it cannot work. Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- -- Alexandre KRISPIN 41 rue Guynemer | 93200 Saint-Denis | France tél : 06 28 76 69 34 | http://bijutsu.toile-libre.org ___ 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] Graphics in text-line
Dear list, Would it be possible to insert a tiny graphic, not larger than a capital M, into a textline? I am presently making a bilingual version of a sixteenth century French musical treatise, and I would like to copy as much as possible the typographic features of the original in the modern version, both French and a translation. In the original French edition some text lines contain musical symbols, not only the sharp, flat and natural characters but also some others, of which I can make graphics (png or pdf). I can place these praphics in the margin and even in a footnote (although with rather too much space above it) but I would prefer to have them in their text line. Is that doable? Thanks in advance. Best regards, Robert Blackstone ___ 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] Graphics in text-line
Am 27.11.2011 um 18:20 schrieb Robert Blackstone: Dear list, Would it be possible to insert a tiny graphic, not larger than a capital M, into a textline? I am presently making a bilingual version of a sixteenth century French musical treatise, and I would like to copy as much as possible the typographic features of the original in the modern version, both French and a translation. In the original French edition some text lines contain musical symbols, not only the sharp, flat and natural characters but also some others, of which I can make graphics (png or pdf). I can place these praphics in the margin and even in a footnote (although with rather too much space above it) but I would prefer to have them in their text line. Is that doable? \starttext This is a cow \figuresymbol[cow]. \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Graphics in text-line
Am 27.11.2011 um 18:26 schrieb Wolfgang Schuster: Am 27.11.2011 um 18:20 schrieb Robert Blackstone: Dear list, Would it be possible to insert a tiny graphic, not larger than a capital M, into a textline? I am presently making a bilingual version of a sixteenth century French musical treatise, and I would like to copy as much as possible the typographic features of the original in the modern version, both French and a translation. In the original French edition some text lines contain musical symbols, not only the sharp, flat and natural characters but also some others, of which I can make graphics (png or pdf). I can place these praphics in the margin and even in a footnote (although with rather too much space above it) but I would prefer to have them in their text line. Is that doable? \starttext This is a cow \figuresymbol[cow]. \stoptext More control about the height gives you this method: \defineexternalfigure[inline][height=1.8ex] \starttext This is a cow \externalfigure[cow][inline]. \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Columnsets: bug in current beta?
Hello Peter. I have a similar experience. If image width is greater than the width of one column and at the same time is a picture with the caption then text does not wrap around the image. If the picture is without caption (for example \placefigure[btrl,none]{}{...}) then everything works fine. I deal this with emergency so that the caption I incorporate into the PDF picture and then place figure without caption. Jaroslav Dne 26.11.2011 22:29, Peter Park Nelson napsal(a): Hello, Following the example in the Columns manual, the following works with TeXLive 2011 but not with the current context suite beta (25 nov 2011): \definecolumnset[body][n=2] \definecolumnsethsize{body}{1}{1}\One \definecolumnsethsize{body}{1}{2}\Two \starttext \startcolumnset[body] \dorecurse{5}{\input tufte\par} \startbuffer \placefigure[btlr]{A placeholder figure.}{\externalfigure[widefigure][width=\Two]} \stopbuffer \dorecurse{5}{\input tufte\par} \getbuffer \stopcolumnset \stoptext Using the current beta, the figure only cleanly spans one column -- vertical space for the graphic and caption is reserved in one column; in the other column, text flows on beneath the graphic, which is superimposed. Using TeXLive 2011, the wide figure spans both columns correctly. Thanks, PPN -- Peter Park Nelson peter.park.nel...@gmail.com mailto:peter.park.nel...@gmail.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 ___ ___ 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] FLOW chart module broken
Hi Willy, I compiled your tex file: if you add \starttext and \stoptext, your file is compiled correctly… (both in mkii and mkiv, ConTeXt ver: 2011.11.25 13:29 MKIV fmt: 2011.11.25 int: english/english). Best regards: OK On 27 nov. 2011, at 16:15, Willi Egger wrote: Hi Hans, unfortunately the FLOWchart module is broken. The breaking over pages does not seem to work. If there are too many cells for a page the compilation stops with a fatal error. i installed the latest beta: ConTeXt ver: 2011.11.25 21:29 MKIV fmt: 2011.11.27 \@@vars:flowcell:text:text -Randje $\leq $ 1mm maken argument ...]{\getvariable {flowcell:text}{text} } \firstoftwoarguments #1#2-#1 \@@su:flowcell:text:place:indeed ...:text}{text}}} \endgroup \@@su:flowcell:text:place ...ll:text:place:indeed} \fi \fi \endgroup \next1 #1,-\dosetups {#1} \do_process_comma_item ... l.428 ? ! Emergency stop. I include the file I was trying to compile. Kind regards Willi singlesectionbinding-flowchart.tex___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ %% Otared Kavian Département de Mathématiques Université de Versailles Saint-Quentin Bâtiment Fermat 45 avenue des Etats Unis 78035 Versailles cedex Téléphone: +33 1 39 25 46 42 Secrétariat: +33 1 39 25 46 44 Secrétariat: +33 1 39 25 46 46 e-mail: otared.kav...@math.uvsq.fr ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Text in margin
Hey list, I am trying to get text to appear in the margin, small, and italicized. The following doesn't appear to effect its size or italicization at all: \setupinmargin[ background=color, color=colour_text, backgroundcolor=colour_page, bodyfont=3pt, before={\switchtobodyfont[3pt]} style=\ss\tfx\setupinterlinespace] -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com 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] Text in margin
Am 27.11.2011 um 22:37 schrieb Kip Warner: Hey list, I am trying to get text to appear in the margin, small, and italicized. The following doesn't appear to effect its size or italicization at all: \setupinmargin[ background=color, color=colour_text, backgroundcolor=colour_page, bodyfont=3pt, before={\switchtobodyfont[3pt]} style=\ss\tfx\setupinterlinespace] Search for \setupmargindata and \setupmarginframed, you can see all keys for commands in my reference: https://bitbucket.org/wolfs/commands/downloads 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] Export to epub
Hans Thanks for the hints. I downloaded inkscape but but still get the same error message. I'm not too concerned about that just now. Unfortunately I couldn't find zip so I played about with 7-Zip and managed to get the script to work. It's still work in progress since I'm not sure I have the switches right but I edited the epub generation part of mtx-epub.lua to look like this: os.execute(format(7z a -tzip -mx0 %s %s,epubfile,mimetype)) os.execute(format(7z a -tzip %s %s,epubfile,META-INF)) os.execute(format(7z a -tzip %s %s,epubfile,OPS)) and using a simple css file I can view the test epub in Adobe Digital Editions. I'm used to using Sigil to edit ePubs and Context but luatex is all new territory for me. Thanks Keith On 27/11/2011 14:43, Hans Hagen wrote: On 27-11-2011 14:03, Keith McKay wrote: Hi I've been playing about with Export in Context with a view to producing ePubs. When I run the script: /mtxrun --script epub --make test.specification /the test.tree is prepared but no epub file. The output shown below has a couple or 'error' messages which are probably due to the way my text editor is set up (Scite Version 2.02). If anyone is using Scite and producing ePubs I be grateful for some hints on how to set this up so that inkscape and zip works. This is unrelated to scite (btw, you run a pretty old scite). %%Script Output mtx-epub | creating paths in tree test.tree mtx-epub | copying toc.ncx to test.tree/OPS/toc.ncx mtx-epub | copying test-styles.css to test.tree/OPS/test-styles.css mtx-epub | copying test-images.css to test.tree/OPS/test-images.css mtx-epub | copying test.css to test.tree/OPS/test.css mtx-epub | copying test.xhtml to test.tree/OPS/test.xhtml mtx-epub | running command 'inkscape --export-plain-svg=cow.svg cow.pdf' 'inkscape' is not recognized as an internal or external command, operable program or batch file. 'zip' is not recognized as an internal or external command, operable program or batch file. you need to install inkscape (just google for it) as well as zip (often part of gnu binutils) 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] Resetting references or local references?
Dear all, Is it possible to have a sort of « local references for formulas » or else to clear previous references to formulas at a certain point? In a chapter where a certain number of exercices and formulas are to be numbered, assume I have the following minimal example % begin \starttext Exercice 1. Prove that if $ab=ba$ and $2ab=0$ then \placeformula[eq:1] \startformula (a+b)^2 = a^2 + b^2. \stopformula Using the identity (\in[eq:1]) prove that $(a=b)^{2n} = a^{2n} + b^{2n}$. \blank[big] \hrule \blank[big] Exercice 2. Prove that for any integer $n$ \resetnumber[formula] %\reset[formulas][references] \placeformula[eq:2] % I would like the reference to be [eq:1] \startformula (\cos(x) + {\rm i}\sin(x))^n = \cos(nx) + {\rm i} \sin(nx). \stopformula Using the identity (\in[eq:2]) % I would like here to say [eq:1] compute $\cos{3x}$. \stoptext % end I would like to be able to have the equations numbered within each exercise (which is in fact defined through an enumeration environment), and be able to have the reference to each formula « local » within that exercise. The resaon is that the execises and problems may have several equations which are referenced to with [eq:1] through [eq:10] (say…), and have been prepared and given previously to students on independent sheets. When I want to give out a booklet of all the exercises, then it would be handy to have such a feature. I understand that I am not being very clear… Hope someone would understand what I mean and need :-) Best regards: OK ___ 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] Graphics in text-line
Am 27.11.2011 um 18:26 schrieb Wolfgang Schuster: Am 27.11.2011 um 18:20 schrieb Robert Blackstone: Dear list, Would it be possible to insert a tiny graphic, not larger than a capital M, into a textline? \starttext This is a cow \figuresymbol[cow]. \stoptext Wolfgang More control about the height gives you this method: \defineexternalfigure[inline][height=1.8ex] \starttext This is a cow \externalfigure[cow][inline]. \stoptext Wolfgang This, especially the second method, is exactly what I wanted. Thank you very much Wolfgang. Best regards, Robert Blackstone ___ 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] Resetting references or local references?
Am 27.11.2011 um 23:27 schrieb Otared Kavian: Dear all, Is it possible to have a sort of « local references for formulas » or else to clear previous references to formulas at a certain point? In a chapter where a certain number of exercices and formulas are to be numbered, assume I have the following minimal example % begin \starttext Exercice 1. Prove that if $ab=ba$ and $2ab=0$ then \placeformula[eq:1] \startformula (a+b)^2 = a^2 + b^2. \stopformula Using the identity (\in[eq:1]) prove that $(a=b)^{2n} = a^{2n} + b^{2n}$. \blank[big] \hrule \blank[big] Exercice 2. Prove that for any integer $n$ \resetnumber[formula] %\reset[formulas][references] \placeformula[eq:2] % I would like the reference to be [eq:1] \startformula (\cos(x) + {\rm i}\sin(x))^n = \cos(nx) + {\rm i} \sin(nx). \stopformula Using the identity (\in[eq:2]) % I would like here to say [eq:1] compute $\cos{3x}$. \stoptext % end I would like to be able to have the equations numbered within each exercise (which is in fact defined through an enumeration environment), and be able to have the reference to each formula « local » within that exercise. The resaon is that the execises and problems may have several equations which are referenced to with [eq:1] through [eq:10] (say…), and have been prepared and given previously to students on independent sheets. When I want to give out a booklet of all the exercises, then it would be handy to have such a feature. I understand that I am not being very clear… Hope someone would understand what I mean and need :-) Look at page 168: http://pragma-ade.com/general/manuals/cont-enp.pdf 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] Footnote Problem
On Wed, 2011-11-16 at 00:09 +0100, Wolfgang Schuster wrote: Am 15.11.2011 um 20:41 schrieb Kip Warner: On Tue, 2011-11-15 at 09:42 +0100, Wolfgang Schuster wrote: Am 15.11.2011 um 06:57 schrieb Kip Warner: Hey folks, The second \footnote doesn't show in the generated PDF. The number is listed where it should at the end of the sentence, but the text of the footnote is not listed at the bottom of the page. Add \automigrateinserts to your document. Wolfgang Thanks Wolfgang, but should that be in the environment file or can it go anywhere? Put it in the preamble of your document which can be a environment file or just before \starttext. Wolfgang Hey Wolfgang. The problem now is that the footnote sits inside of textbackground boxes at the bottom of them. I'd like them instead at the bottom of the page with the rest of my footnotes. How is this done? Sorry to pester you, but you and Hans seem to be the ConTeXt gurus. -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com 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] TextBackground text area
On Wed, 2011-11-23 at 21:52 -0500, Aditya Mahajan wrote: Why not just increase the value of leftoffset and rightoffset? This seems to work, but I find a problem is that if the text box spans multiple pages, bottomoffset / topoffset are ignored at the points where the page breaks. Suggestions? -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com 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] Text in margin
On Sun, 2011-11-27 at 22:43 +0100, Wolfgang Schuster wrote: Search for \setupmargindata and \setupmarginframed, you can see all keys for commands in my reference: https://bitbucket.org/wolfs/commands/downloads Wolfgang Hey Wolfgang. I took a look at the command reference you linked me to and it unfortunately isn't descriptive enough for me. All I want to do is to make the font small, italicized, and not start off the side of the page like it is now. I'm using the following. The colours are fine, but the rest is not: \setupmargindata[ style={smallitalic\switchtobodyfont[3pt]}] \setupinmargin[ background=color, color=colour_text, backgroundcolor=colour_page] -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com 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 ___
[NTG-context] Sequentially number figures (even over chapters)
Dear list, I want to number my figures sequentially, even over chapters. With the code below (late(st) minimals and mkiv) %%% Begin example \setuphead[chapter][ page=no, ] \setupcaptions[ way=bytext, prefixsegments=none, ] \starttext \chapter{This is a short chapter} It contains one figure. \placefigure[here][none]{A caption.}{\externalfigure[cow][width=4cm]} \chapter{This is another short chapter} It contains the same figure. \placefigure[here][none]{A caption.}{\externalfigure[cow][width=4cm]} \stoptext %%% End example both figures are called Figure 1. I would expect the second one to be called Figure 2. Any ideas? Best regards, Mikael ___ 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] Error while compiling : ! String contains an invalid utf-8 sequence.
-context] error with \showlayout and export Message-ID: 0bce3119-7d79-43b9-a159-62bc07980...@googlemail.com Content-Type: text/plain; charset=us-ascii Am 27.11.2011 um 12:11 schrieb Henning Hraban Ramm: Hi wizards, if I use \showlayout in a project where I setup export=yes, ConTeXt stops with a fatal error. Minimal failing example: \setupbackend[export=yes] \starttext \showlayout \stoptext I think this change in back-exp.lua should work (runs at least without an error message): function extras.tabulate(result,element,detail,n,fulltag,di) local data = di.data for i=1,#data do local di = data[i] if di.tg == tabulaterow then local did = di.data local content = false for i=1,#did do local d = did[i].data -- local c = d and c.content local c = d and d.content if c and #c 0 then content = true break end end if not content then di.element = -- or simply remove end end end end Wolfgang -- Message: 3 Date: Sun, 27 Nov 2011 13:40:51 +0100 From: Henning Hraban Ramm hra...@fiee.net To: mailing list for ConTeXt users ntg-context@ntg.nl Subject: [NTG-context] page number in margin Message-ID: 90a69805-bcec-4a6c-bc89-5fa243c9c...@fiee.net Content-Type: text/plain; charset=WINDOWS-1252; format=flowed; delsp=yes Hi again, I?d like to get my page numbers in the margin. This works: \setuppagenumbering[alternative=doublesided,location=margin] But that way it?s on the bottom of the footer margin; I'd like it on the top. Second variant: Even better, I?d like my page number at the bottom of the text margin. How can I achieve that? location option marginedge doesn?t seem to do anything, as far as i can tell, and inright is the same as margin. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) -- Message: 4 Date: Sun, 27 Nov 2011 13:03:28 + From: Keith McKay mckaymeis...@gmail.com To: Ntg-Context ntg-context@ntg.nl Subject: [NTG-context] Export to epub Message-ID: 4ed23520.2070...@gmail.com Content-Type: text/plain; charset=iso-8859-1; Format=flowed Hi I've been playing about with Export in Context with a view to producing ePubs. When I run the script: /mtxrun --script epub --make test.specification /the test.tree is prepared but no epub file. The output shown below has a couple or 'error' messages which are probably due to the way my text editor is set up (Scite Version 2.02). If anyone is using Scite and producing ePubs I be grateful for some hints on how to set this up so that inkscape and zip works. %%Script Output mtx-epub| creating paths in tree test.tree mtx-epub| copying toc.ncx to test.tree/OPS/toc.ncx mtx-epub| copying test-styles.css to test.tree/OPS/test-styles.css mtx-epub| copying test-images.css to test.tree/OPS/test-images.css mtx-epub| copying test.css to test.tree/OPS/test.css mtx-epub| copying test.xhtml to test.tree/OPS/test.xhtml mtx-epub| running command 'inkscape --export-plain-svg=cow.svg cow.pdf' 'inkscape' is not recognized as an internal or external command, operable program or batch file. mtx-epub| copying cow.svg to test.tree/OPS/cow.svg mtx-epub| copying hacker.jpg to test.tree/OPS/hacker.jpg mtx-epub| copying mill.png to test.tree/OPS/mill.png mtx-epub| creating archive 'zip' is not recognized as an internal or external command, operable program or batch file. 'zip' is not recognized as an internal or external command, operable program or batch file. 'zip' is not recognized as an internal or external command, operable program or batch file. mtx-epub| epub archive: test.tree/test.epubExit code: 0 %%End Script Output I'm using Minimals ConTeXt ver: 2011.09.27 20:05 MKIV fmt: 2011.11.19 int: english/english on a Windows 7 machine and the test.tex file is the |export-example.tex file renamed from the Minimals distribution|. Thanks Keith McKay -- next part -- An HTML attachment was scrubbed... URL: http://www.ntg.nl/pipermail/ntg-context/attachments/2027/f306eade/attachment-0001.html -- Message: 5 Date: Sun, 27 Nov 2011 14:33:32 +0100 From: Mojca Miklavec mojca.miklavec.li...@gmail.com To: mailing list for ConTeXt users ntg-context@ntg.nl Subject: Re: [NTG-context] Error while compiling : ! String contains an invalid utf-8 sequence. Message-ID: CALBOmsYJRQenBGJdBKtv85RY=zud_g7oybmyw7hxxoxc6zz...@mail.gmail.com Content-Type: text/plain
Re: [NTG-context] Graphics in text-line
Am 27.11.2011 um 18:26 schrieb Wolfgang Schuster: Am 27.11.2011 um 18:20 schrieb Robert Blackstone: Dear list, Would it be possible to insert a tiny graphic, not larger than a capital M, into a textline? I am presently making a bilingual version of a sixteenth century French musical treatise, and I would like to copy as much as possible the typographic features of the original in the modern version, both French and a translation. In the original French edition some text lines contain musical symbols, not only the sharp, flat and natural characters but also some others, of which I can make graphics (png or pdf). I can place these praphics in the margin and even in a footnote (although with rather too much space above it) but I would prefer to have them in their text line. Is that doable? \starttext This is a cow \figuresymbol[cow]. \stoptext More control about the height gives you this method: \defineexternalfigure[inline][height=1.8ex] \starttext This is a cow \externalfigure[cow][inline]. \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___