[NTG-context] Context to epub: itemize
Hi, I'm trying to generate epub from ConTeXt and I couldn't get the itemize environment to work. I follow http://wiki.contextgarden.net/ePub and get the structure described but when I look into the xhtml, there is no itemize environment. (At least no with Safari, Firefox or Calibre.) When use vi I see something that looks like my items in a very complex form. I was expecting something like ul li /li li /li /ul but i see div class=itemgroup itemize level-1 symbol-1 div class=item div class=itemtagm:math display=inline xmlns:m=http://www.w3.org/1998/Math/MathML;m:mo•/m:mo/m:math/div div class=itemcontentListenpunkt 1/div /div div class=item div class=itemtagm:math display=inline xmlns:m=http://www.w3.org/1998/Math/MathML;m:mo•/m:mo/m:math/div div class=itemcontentListenpunkt 2 div class=itemgroup itemize level-2 symbol-2 div class=item div class=itemtagm:math display=inline xmlns:m=http://www.w3.org/1998/Math/MathML;m:mo−/m:mo/m:math/div div class=itemcontentListenpunkt 2.1/div/div div class=item div class=itemtagm:math display=inline xmlns:m=http://www.w3.org/1998/Math/MathML;m:mo−/m:mo/m:math/div div class=itemcontentListenpunkt 2.2/div/div/div/div /div Shouldn't the itemtag definition come from the default.css instead of using MathML? itemgroup[symbol=1], div.itemgroup.symbol-1 { list-style-type : disc ; } I’m using: mtx-context | current version: 2015.02.03 23:55 and context --script epub --make epub_mwe to create the epub. Axel epub_mwe.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] Bug with macro tightfunction (Metafun)
Hi, This code generates an error while it was working fine a month ago. Best regards, Fabrice \definecolor[mycolor][c=.4,m=0,y=0,k=0] \starttext \start \switchtobodyfont[small] \startMPcode input hvdm; input tex; l:=3mm; r:=0.6; alfa:=45; beta:=0; gamma:=0; defineDefaultArrow (l, r, alfa, beta, gamma); numeric xmin, xmax, ymin, ymax; xmin := 0; xmax := 110; ymax :=8000 ;ymin:=0; u := 0.1cm; v:= 0.002cm; color mycolor; mycolor:=(0.4,0,0); drawoptions(withpen pencircle scaled 0.3pt withcolor \MPcolor{mycolor}); draw hlingrid(ymin,ymax,1000,16cm,11cm); draw vlingrid(xmin,xmax,10,11cm,16cm); pickup pencircle scaled 1pt ; arrowline ((xmin,0) -- (xmax,0)) scaled u; arrowline ((0,ymin) -- (0,ymax)) scaled v; drawoptions(withpen pencircle scaled 1pt); draw tightfunction (x, x*x-84*x+5000, 0, 100, 0.01) xyscaled (u,v); for i=0 step 10 until 100: label.bot(TEX($decimal(i)$),(i*u,0)); endfor; for i=0 step 1000 until 7000: label.lft(TEX($decimal(i)$),(0,i*v)); endfor; label.top(Nombre de lots,(90u,50v)); label.lrt(btex $f(x)$ (en euros) etex,(0,7800v)); \stopMPcode \stop \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] Hatch an area with Metapost (Metafun)
Hi, This does not work with : labeloffset := 2mm; Fabrice ___ 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] \executesystemcommand dont work?
On 02/16/2015 12:41 PM, Jaroslav Hajtmar wrote: Hi ConTeXist. After a long time I tried to recompile ConTeXt file that contained the \executesystemcommand. It seems to me that this command stopped working. Can anyone confirm or refute this my perception? Hi Jaroslav, the sample you sent works fine for me. Both files get compiled. I call \executesystemcommand to compiling another ConTeXt file from running ConTeXt. I use Windows 7 and problem is under TeXlive 2014 version and Standalone version too. I’m using latest beta in Fedora 20. At work, I use Win7 64 bits and \executesystemcommand works also fine (I use it every day). Sorry, but I’m afraid I don’t have a clue why it doesn’t work in your system. Pablo -- http://www.ousia.tk ___ 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] Bug with macro tightfunction (Metafun)
On 02/16/2015 06:00 PM, Fabrice Couvreur wrote: Hi, This code generates an error while it was working fine a month ago. Hi Fabrice, MP is too much fun for me ;-)). I mean, this is all Greek to me. I can only report that I get an empty page with both the latest beta from 2015.02.03 23:55 and beta from 2014.11.26 21:43. Just in case it might help, Pablo \definecolor[mycolor][c=.4,m=0,y=0,k=0] \starttext \start \switchtobodyfont[small] \startMPcode input hvdm; input tex; l:=3mm; r:=0.6; alfa:=45; beta:=0; gamma:=0; defineDefaultArrow (l, r, alfa, beta, gamma); numeric xmin, xmax, ymin, ymax; xmin := 0; xmax := 110; ymax :=8000 ;ymin:=0; u := 0.1cm; v:= 0.002cm; color mycolor; mycolor:=(0.4,0,0); drawoptions(withpen pencircle scaled 0.3pt withcolor \MPcolor{mycolor}); draw hlingrid(ymin,ymax,1000,16cm,11cm); draw vlingrid(xmin,xmax,10,11cm,16cm); pickup pencircle scaled 1pt ; arrowline ((xmin,0) -- (xmax,0)) scaled u; arrowline ((0,ymin) -- (0,ymax)) scaled v; drawoptions(withpen pencircle scaled 1pt); draw tightfunction (x, x*x-84*x+5000, 0, 100, 0.01) xyscaled (u,v); for i=0 step 10 until 100: label.bot(TEX($decimal(i)$),(i*u,0)); endfor; for i=0 step 1000 until 7000: label.lft(TEX($decimal(i)$),(0,i*v)); endfor; label.top(Nombre de lots,(90u,50v)); label.lrt(btex $f(x)$ (en euros) etex,(0,7800v)); \stopMPcode \stop \stoptext -- http://www.ousia.tk ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Context to epub: itemize
On 2/16/2015 5:17 PM, Axel Kielhorn wrote: Hi, I'm trying to generate epub from ConTeXt and I couldn't get the itemize environment to work. I follow http://wiki.contextgarden.net/ePub and get the structure described but when I look into the xhtml, there is no itemize environment. (At least no with Safari, Firefox or Calibre.) When use vi I see something that looks like my items in a very complex form. I was expecting something like ul li /li li /li /ul but i see div class=itemgroup itemize level-1 symbol-1 div class=item div class=itemtagm:math display=inline xmlns:m=http://www.w3.org/1998/Math/MathML;m:mo•/m:mo/m:math/div div class=itemcontentListenpunkt 1/div /div div class=item div class=itemtagm:math display=inline xmlns:m=http://www.w3.org/1998/Math/MathML;m:mo•/m:mo/m:math/div div class=itemcontentListenpunkt 2 div class=itemgroup itemize level-2 symbol-2 div class=item div class=itemtagm:math display=inline xmlns:m=http://www.w3.org/1998/Math/MathML;m:mo−/m:mo/m:math/div div class=itemcontentListenpunkt 2.1/div/div div class=item div class=itemtagm:math display=inline xmlns:m=http://www.w3.org/1998/Math/MathML;m:mo−/m:mo/m:math/div div class=itemcontentListenpunkt 2.2/div/div/div/div /div Shouldn't the itemtag definition come from the default.css instead of using MathML? itemgroup[symbol=1], div.itemgroup.symbol-1 { list-style-type : disc ; } I’m using: mtx-context | current version: 2015.02.03 23:55 and context --script epub --make epub_mwe to create the epub. the bullets come from math fonts (currently, awaiting additional symbols in the text fonts) 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] Bug with macro tightfunction (Metafun)
On 2/16/2015 6:00 PM, Fabrice Couvreur wrote: Hi, This code generates an error while it was working fine a month ago. tightfunction was redundant, use curvedfunction instead (I have been cleaning up all that code as a prelude to an updat efor the metafun manual) 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] \executesystemcommand dont work?
On 2/16/2015 10:20 PM, Jaroslav Hajtmar wrote: Thanks to Pablo for testing of functionality. Does anyone know whether it could be related to the random last comprehensive update of Win7? I read that Microsoft corrected with problem of big security hole. It is strange that a few days ago I find it all worked very well and after the last update of Windows 7 it not working. You can someone please verify this? Have you Pablo the latest Microsoft Windows 7 update?? It's hard to imagine that such a system call changes. I use windows 8 which seems to work ok. Are you sure that you use no local patches? A while ago all file io and system code in mkiv was wrapped in a way that permits sandboxing (that was already the case but now it's a bit more flexible and efficient). Hans ps. You had issues on your machine before with executing if I remember right. Maybe something fundamental - 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] \executesystemcommand dont work?
On Mon, 16 Feb 2015, Jaroslav Hajtmar wrote: Hi ConTeXist. After a long time I tried to recompile ConTeXt file that contained the \executesystemcommand. It seems to me that this command stopped working. Can anyone confirm or refute this my perception? I call \executesystemcommand to compiling another ConTeXt file from running ConTeXt. I use Windows 7 and problem is under TeXlive 2014 version and Standalone version too. Is write18 enabled? You'll see a message in the 2nd or 3rd line when you run context, telling the status of write18. What happens if you use \immediate\write18{context --version} (Check the console output for an appropriate message) Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \executesystemcommand dont work?
Thanx Aditya for reply. I compile this ConTeXt file: \starttext \immediate\write18{context --version} \stoptext with last standalone version of ConTeXt (minimals). Below is the console output and log file. I do not know whether this can decipher be from a reading. It seems that write18 is enabled. I do not know what could have happened and why it does not work. Can be a problem in collision TeXlive vs Standalone version (paths problem)? I do not know how to fix it. I tried again to install the standalone version, but it did not help. I hope that I have somehow smashed up Windows because reinstalling windows because of dysfunctional ConTeXt me quite a scare... Thanx Jaroslav Hajtmar C:\$~1da\ConTeXt\ConTeXt-Tests\my_way\ScanCSV\t-scancsv_ConTeXt_module\2PabloRod riguez5\bbbcontext test mtx-context | warning: no (local) file './test', proceeding mtx-context | run 1: luatex --fmt=C:/context/tex/texmf-cache/luatex-cache/c ontext/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en --jobname=test --lua=C:/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb 1556f32e/formats/luatex/cont-en.lui --no-parse-first-line --c:currentrun=1 --c: fulljobname=./test --c:input=./test --c:kindofrun=1 --c:maxnofruns=8 cont-y es.mkiv This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/W32TeX) (rev 5064) \write18 enabled. open source 1 1 C:/context/tex/texmf-context/tex/context/base/cont-yes .mkiv ConTeXt ver: 2015.02.03 23:55 MKIV beta fmt: 2015.2.16 int: english/english system 'cont-new.mkiv' loaded open source 2 2 C:/context/tex/texmf-context/tex/context/base/cont-new .mkiv close source 2 2 C:/context/tex/texmf-context/tex/context/base/cont-new .mkiv system files jobname 'test', input './test', result 'test' fontslatin modern fonts are not preloaded languageslanguage 'en' is active open source 2 3 C:/$~1da/ConTeXt/ConTeXt-Tests/my_way/ScanCSV/t-scancs v_ConTeXt_module/2PabloRodriguez5/bbb/test.tex fontspreloading latin modern fonts (second stage) fonts'fallback modern-designsize rm 12pt' is loaded close source 2 3 C:/$~1da/ConTeXt/ConTeXt-Tests/my_way/ScanCSV/t-scancs v_ConTeXt_module/2PabloRodriguez5/bbb/test.tex close source 1 3 C:/context/tex/texmf-context/tex/context/base/cont-yes .mkiv mkiv lua stats used config file: selfautoparent:/texmf/web2c/texmfcnf.lua mkiv lua stats used cache path: C:/context/tex/texmf-cache/luatex-cache/conte xt/5fe67e0bfe781ce0dde776fb1556f32e mkiv lua stats resource resolver: loadtime 0.012 seconds, 0 scans with scanti me 0.000 seconds, 0 shared scans, 8 found files, scanned paths: none mkiv lua stats stored bytecode data: 364 modules (0.209 sec), 76 tables (0.00 5 sec), 440 chunks (0.214 sec) mkiv lua stats running in nuts mode: yes mkiv lua stats cleaned up reserved nodes: 41 nodes, 439 lists of 438 mkiv lua stats node memory usage: 2 glue, 2 penalty, 6 attribute, 20 glue_spe c, 2 attribute_list, 2 temp mkiv lua stats node list callback tasks: 6 unique task lists, 2 instances (re )created, 3 calls mkiv lua stats used backend: pdf (backend for directly generating pdf output) mkiv lua stats loaded patterns: en::2, load time: 0.000 mkiv lua stats jobdata time: 0.003 seconds saving, 0.000 seconds loading mkiv lua stats callbacks: 55 direct, 239 indirect, 294 total mkiv lua stats result saved in file: test.pdf, compresslevel 3, objectcompres slevel 3 mkiv lua stats loaded fonts: 2 files: latinmodern-math.otf, lmroman12-regular .otf mkiv lua stats fonts load time: 0.239 seconds mkiv lua stats used platform: win64, type: windows, binary subtree: texmf-win 64 mkiv lua stats luatex banner: this is luatex, version beta-0.79.1 (tex live 2 014/w32tex) (rev 5064) mkiv lua stats control sequences: 40425 of 65536 + 10 mkiv lua stats lua properties: engine: lua, used memory: 60 MB (ctx: 60 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (¤ä╬Á¤ç) mkiv lua stats runtime: 0.627 seconds mtx-context | run 2: luatex --fmt=C:/context/tex/texmf-cache/luatex-cache/c ontext/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en --jobname=test --lua=C:/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb 1556f32e/formats/luatex/cont-en.lui --no-parse-first-line --c:currentrun=2 --c: fulljobname=./test --c:input=./test --c:kindofrun=2 --c:maxnofruns=8 cont-y es.mkiv This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/W32TeX) (rev 5064) \write18 enabled. open source 1 1 C:/context/tex/texmf-context/tex/context/base/cont-yes .mkiv ConTeXt ver: 2015.02.03 23:55 MKIV beta fmt: 2015.2.16 int: english/english system 'cont-new.mkiv' loaded open source 2 2 C:/context/tex/texmf-context/tex/context/base/cont-new .mkiv close source 2 2
Re: [NTG-context] Bug with macro tightfunction (Metafun)
On 2/16/2015 6:00 PM, Fabrice Couvreur wrote: Hi, This code generates an error while it was working fine a month ago. Best regards, Fabrice \definecolor[mycolor][c=.4,m=0,y=0,k=0] \starttext \start \switchtobodyfont[small] \startMPcode input hvdm; input tex; l:=3mm; r:=0.6; alfa:=45; beta:=0; gamma:=0; defineDefaultArrow (l, r, alfa, beta, gamma); numeric xmin, xmax, ymin, ymax; xmin := 0; xmax := 110; ymax :=8000 ;ymin:=0; u := 0..1cm; v:= 0.002cm; color mycolor; mycolor:=(0.4,0,0); drawoptions(withpen pencircle scaled 0.3pt withcolor \MPcolor{mycolor}); draw hlingrid(ymin,ymax,1000,16cm,11cm); draw vlingrid(xmin,xmax,10,11cm,16cm); pickup pencircle scaled 1pt ; arrowline ((xmin,0) -- (xmax,0)) scaled u; arrowline ((0,ymin) -- (0,ymax)) scaled v; drawoptions(withpen pencircle scaled 1pt); draw tightfunction (x, x*x-84*x+5000, 0, 100, 0.01) xyscaled (u,v); for i=0 step 10 until 100: label.bot(TEX($decimal(i)$),(i*u,0)); endfor; for i=0 step 1000 until 7000: label.lft(TEX($decimal(i)$),(0,i*v)); endfor; label.top(Nombre de lots,(90u,50v)); label.lrt(btex $f(x)$ (en euros) etex,(0,7800v)); \stopMPcode \stop \stoptext what is: input hvdm; input tex; both names are also candidates for name clashes 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] \executesystemcommand dont work?
On Mon, 16 Feb 2015, Jaroslav Hajtmar wrote: Thanx Aditya for reply. I compile this ConTeXt file: \starttext \immediate\write18{context --version} \stoptext with last standalone version of ConTeXt (minimals). Below is the console output and log file. write18 is enabled on your system; I don't know why the shell command does not work. Try this instead (I assume that windows comes with the echo command): \starttext \writestatus{test}{before calling shell command} \immediate\write18{echo HELP} \writestatus{test}{after calling shell command} \stoptext Post only the output of the 2nd run (so that the console output is shown once and not thrice). How are you running context? (Typing the command from a terminal, or using an IDE?) 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 ___
[NTG-context] Epub format Was: Re: Context to epub: itemize
Hi Axel, All, You have mentioned that most current ebook readers can not display MathML. Well, the problem lies in the epub guidelines for the readers. The problem is even worse. many readers do not even implement the full HTML5 standard. though that is the standard used in the latest epub stadnard. The fact is to be considered epub readers the do not have to, it is a problem of the epub reader definition. The problem is what should ConTeXt output? Should it output code that implements according to the full epub standard OR JUST what is handled by most epub readers! IMHO : ConTeXt should not output XHMTL for epub, but HMTL5. Yes, yes, I know XHMTL is part of HMTL5. Another question for me is if ConTeXt should also output code for the iBooks epub format, (Basicaly epub, but some extras). There are thing you can do in/with ConTeXt that would work with iBooks that do not in „ordinary“ epub books. Then, there is the Kindle format one might want to consider! Another, question which needs investigation is if the ConTeXt output for epub, also, implementing the fallbacks for missing features which is required? Just some added thoughts. Basically, you can only expect ConTeXts epub output to be a starting point that then has to be tweak. regards Keith. Am 17.02.2015 um 07:11 schrieb Axel Kielhorn t...@axelkielhorn.de: [...] Yes I know. Let me rephrase the question: Should the symbols used in epub be identical to those used in the pdf or should the css determine the look of the symbols? Especially when one considers that most current ebook readers can't display MathML. Even if I substitute the Symbols: \definesymbol[uni1][•] \definesymbol[uni2][–] \definesymbol[uni3][*] \definesymbol[uni4][·] \setupitemgroup [itemize] [1] [symbol=uni1] \setupitemgroup [itemize] [2] [symbol=uni2] \setupitemgroup [itemize] [3] [symbol=uni3] \setupitemgroup [itemize] [4] [symbol=uni4] I get a result that neither ADE nor Calibre interprets as a list. (Wrapping it in ul /ul doesn't help.) ___ 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] \executesystemcommand dont work?
On Mon, Feb 16, 2015 at 11:44 PM, Jaroslav Hajtmar hajt...@gyza.cz wrote: Thanx Aditya for reply. I compile this ConTeXt file: \starttext \immediate\write18{context --version} \stoptext \starttext \immediate\write18{echo OO} \stoptext works ok here with the latest standalone and win 8.1 -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \executesystemcommand dont work?
Thanks to Pablo for testing of functionality. Does anyone know whether it could be related to the random last comprehensive update of Win7? I read that Microsoft corrected with problem of big security hole. It is strange that a few days ago I find it all worked very well and after the last update of Windows 7 it not working. You can someone please verify this? Have you Pablo the latest Microsoft Windows 7 update?? Thanx Jaroslav Hajtmar Dne 16.2.2015 v 21:20 Pablo Rodriguez napsal(a): On 02/16/2015 12:41 PM, Jaroslav Hajtmar wrote: Hi ConTeXist. After a long time I tried to recompile ConTeXt file that contained the \executesystemcommand. It seems to me that this command stopped working. Can anyone confirm or refute this my perception? Hi Jaroslav, the sample you sent works fine for me. Both files get compiled. I call \executesystemcommand to compiling another ConTeXt file from running ConTeXt. I use Windows 7 and problem is under TeXlive 2014 version and Standalone version too. I’m using latest beta in Fedora 20. At work, I use Win7 64 bits and \executesystemcommand works also fine (I use it every day). Sorry, but I’m afraid I don’t have a clue why it doesn’t work in your system. Pablo ___ 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] \executesystemcommand dont work?
Hi Aditya. Thanx for reply. I am sending result from output console from your example ie: \starttext \writestatus{test}{before calling shell command} \immediate\write18{echo HELP} \writestatus{test}{after calling shell command} \stoptext Output is below. Regarding the call ConTeXt, I often calls it directly from the editor (PsPad) but when frequently repeated compilations, then I type commands directly from terminal (command line of windows) Thankx for attempt to solve my problem. Jaroslav Hajtmar C:\$~1da\ConTeXt\ConTeXt-Tests\my_way\ScanCSV\t-scancsv_ConTeXt_module\2PabloRod riguez5\bbbcontext test mtx-context | warning: no (local) file './test', proceeding mtx-context | run 1: luatex --fmt=C:/context/tex/texmf-cache/luatex-cache/c ontext/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en --jobname=test --lua=C:/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb 1556f32e/formats/luatex/cont-en.lui --no-parse-first-line --c:currentrun=1 --c: fulljobname=./test --c:input=./test --c:kindofrun=1 --c:maxnofruns=8 cont-y es.mkiv This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/W32TeX) (rev 5064) \write18 enabled. open source 1 1 C:/context/tex/texmf-context/tex/context/base/cont-yes .mkiv ConTeXt ver: 2015.02.03 23:55 MKIV beta fmt: 2015.2.16 int: english/english system 'cont-new.mkiv' loaded open source 2 2 C:/context/tex/texmf-context/tex/context/base/cont-new .mkiv close source 2 2 C:/context/tex/texmf-context/tex/context/base/cont-new .mkiv system files jobname 'test', input './test', result 'test' fontslatin modern fonts are not preloaded languageslanguage 'en' is active open source 2 3 C:/$~1da/ConTeXt/ConTeXt-Tests/my_way/ScanCSV/t-scancs v_ConTeXt_module/2PabloRodriguez5/bbb/test.tex fontspreloading latin modern fonts (second stage) fonts'fallback modern-designsize rm 12pt' is loaded test before calling shell command test after calling shell command close source 2 3 C:/$~1da/ConTeXt/ConTeXt-Tests/my_way/ScanCSV/t-scancs v_ConTeXt_module/2PabloRodriguez5/bbb/test.tex close source 1 3 C:/context/tex/texmf-context/tex/context/base/cont-yes .mkiv mkiv lua stats used config file: selfautoparent:/texmf/web2c/texmfcnf.lua mkiv lua stats used cache path: C:/context/tex/texmf-cache/luatex-cache/conte xt/5fe67e0bfe781ce0dde776fb1556f32e mkiv lua stats resource resolver: loadtime 0.012 seconds, 0 scans with scanti me 0.000 seconds, 0 shared scans, 8 found files, scanned paths: none mkiv lua stats stored bytecode data: 364 modules (0.231 sec), 76 tables (0.00 6 sec), 440 chunks (0.237 sec) mkiv lua stats running in nuts mode: yes mkiv lua stats cleaned up reserved nodes: 41 nodes, 439 lists of 438 mkiv lua stats node memory usage: 2 glue, 2 penalty, 6 attribute, 20 glue_spe c, 2 attribute_list, 2 temp mkiv lua stats node list callback tasks: 6 unique task lists, 2 instances (re )created, 3 calls mkiv lua stats used backend: pdf (backend for directly generating pdf output) mkiv lua stats loaded patterns: en::2, load time: 0.000 mkiv lua stats jobdata time: 0.004 seconds saving, 0.001 seconds loading mkiv lua stats callbacks: 55 direct, 241 indirect, 296 total mkiv lua stats randomizer: resumed with value 0.53962828455458 mkiv lua stats result saved in file: test.pdf, compresslevel 3, objectcompres slevel 3 mkiv lua stats loaded fonts: 2 files: latinmodern-math.otf, lmroman12-regular .otf mkiv lua stats fonts load time: 0.267 seconds mkiv lua stats used platform: win64, type: windows, binary subtree: texmf-win 64 mkiv lua stats luatex banner: this is luatex, version beta-0.79.1 (tex live 2 014/w32tex) (rev 5064) mkiv lua stats control sequences: 40426 of 65536 + 10 mkiv lua stats lua properties: engine: lua, used memory: 59 MB (ctx: 59 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (¤ä╬Á¤ç) mkiv lua stats runtime: 0.721 seconds system | total runtime: 1.095 seconds C:\$~1da\ConTeXt\ConTeXt-Tests\my_way\ScanCSV\t-scancsv_ConTeXt_module\2PabloRod riguez5\bbb And here is log file: open source 1 1 C:/context/tex/texmf-context/tex/context/base/cont-yes.mkiv ConTeXt ver: 2015.02.03 23:55 MKIV beta fmt: 2015.2.16 int: english/english system 'cont-new.mkiv' loaded open source 2 2 C:/context/tex/texmf-context/tex/context/base/cont-new.mkiv close source 2 2 C:/context/tex/texmf-context/tex/context/base/cont-new.mkiv system files jobname 'test', input './test', result 'test' fontslatin modern fonts are not preloaded languageslanguage 'en' is active open source 2 3 C:/$~1da/ConTeXt/ConTeXt-Tests/my_way/ScanCSV/t-scancsv_ConTeXt_module/2PabloRodriguez5/bbb/test.tex fonts
Re: [NTG-context] \executesystemcommand dont work?
Hi Luigi. Thanx for reply. I am sending result from output console from your example ie: \starttext \immediate\write18{echo OO} \stoptext Output is below. To be honest, I've never done such a thing and did not examine how many times ConTeXt runs. I have always relied on the default settings. Thankx for attempt to solve my problem. Jaroslav Hajtmar C:\$~1da\ConTeXt\ConTeXt-Tests\my_way\ScanCSV\t-scancsv_ConTeXt_module\2PabloRod riguez5\bbbcontext test mtx-context | warning: no (local) file './test', proceeding mtx-context | run 1: luatex --fmt=C:/context/tex/texmf-cache/luatex-cache/c ontext/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en --jobname=test --lua=C:/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb 1556f32e/formats/luatex/cont-en.lui --no-parse-first-line --c:currentrun=1 --c: fulljobname=./test --c:input=./test --c:kindofrun=1 --c:maxnofruns=8 cont-y es.mkiv This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/W32TeX) (rev 5064) \write18 enabled. open source 1 1 C:/context/tex/texmf-context/tex/context/base/cont-yes .mkiv ConTeXt ver: 2015.02.03 23:55 MKIV beta fmt: 2015.2.16 int: english/english system 'cont-new.mkiv' loaded open source 2 2 C:/context/tex/texmf-context/tex/context/base/cont-new .mkiv close source 2 2 C:/context/tex/texmf-context/tex/context/base/cont-new .mkiv system files jobname 'test', input './test', result 'test' fontslatin modern fonts are not preloaded languageslanguage 'en' is active open source 2 3 C:/$~1da/ConTeXt/ConTeXt-Tests/my_way/ScanCSV/t-scancs v_ConTeXt_module/2PabloRodriguez5/bbb/test.tex fontspreloading latin modern fonts (second stage) fonts'fallback modern-designsize rm 12pt' is loaded close source 2 3 C:/$~1da/ConTeXt/ConTeXt-Tests/my_way/ScanCSV/t-scancs v_ConTeXt_module/2PabloRodriguez5/bbb/test.tex close source 1 3 C:/context/tex/texmf-context/tex/context/base/cont-yes .mkiv mkiv lua stats used config file: selfautoparent:/texmf/web2c/texmfcnf.lua mkiv lua stats used cache path: C:/context/tex/texmf-cache/luatex-cache/conte xt/5fe67e0bfe781ce0dde776fb1556f32e mkiv lua stats resource resolver: loadtime 0.011 seconds, 0 scans with scanti me 0.000 seconds, 0 shared scans, 8 found files, scanned paths: none mkiv lua stats stored bytecode data: 364 modules (0.224 sec), 76 tables (0.00 6 sec), 440 chunks (0.230 sec) mkiv lua stats running in nuts mode: yes mkiv lua stats cleaned up reserved nodes: 41 nodes, 439 lists of 438 mkiv lua stats node memory usage: 2 glue, 2 penalty, 6 attribute, 20 glue_spe c, 2 attribute_list, 2 temp mkiv lua stats node list callback tasks: 6 unique task lists, 2 instances (re )created, 3 calls mkiv lua stats used backend: pdf (backend for directly generating pdf output) mkiv lua stats loaded patterns: en::2, load time: 0.000 mkiv lua stats jobdata time: 0.003 seconds saving, 0.001 seconds loading mkiv lua stats callbacks: 55 direct, 239 indirect, 294 total mkiv lua stats randomizer: resumed with value 0.53962828455458 mkiv lua stats result saved in file: test.pdf, compresslevel 3, objectcompres slevel 3 mkiv lua stats loaded fonts: 2 files: latinmodern-math.otf, lmroman12-regular .otf mkiv lua stats fonts load time: 0.241 seconds mkiv lua stats used platform: win64, type: windows, binary subtree: texmf-win 64 mkiv lua stats luatex banner: this is luatex, version beta-0.79.1 (tex live 2 014/w32tex) (rev 5064) mkiv lua stats control sequences: 40426 of 65536 + 10 mkiv lua stats lua properties: engine: lua, used memory: 56 MB (ctx: 56 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (¤ä╬Á¤ç) mkiv lua stats runtime: 0.643 seconds system | total runtime: 1.002 seconds C:\$~1da\ConTeXt\ConTeXt-Tests\my_way\ScanCSV\t-scancsv_ConTeXt_module\2PabloRod riguez5\bbb and here is log file: open source 1 1 C:/context/tex/texmf-context/tex/context/base/cont-yes.mkiv ConTeXt ver: 2015.02.03 23:55 MKIV beta fmt: 2015.2.16 int: english/english system 'cont-new.mkiv' loaded open source 2 2 C:/context/tex/texmf-context/tex/context/base/cont-new.mkiv close source 2 2 C:/context/tex/texmf-context/tex/context/base/cont-new.mkiv system files jobname 'test', input './test', result 'test' fontslatin modern fonts are not preloaded languageslanguage 'en' is active open source 2 3 C:/$~1da/ConTeXt/ConTeXt-Tests/my_way/ScanCSV/t-scancsv_ConTeXt_module/2PabloRodriguez5/bbb/test.tex fontspreloading latin modern fonts (second stage) fonts'fallback modern-designsize rm 12pt' is loaded close source 2 3
Re: [NTG-context] \executesystemcommand dont work?
On 02/16/2015 10:20 PM, Jaroslav Hajtmar wrote: Thanks to Pablo for testing of functionality. Does anyone know whether it could be related to the random last comprehensive update of Win7? I read that Microsoft corrected with problem of big security hole. It is strange that a few days ago I find it all worked very well and after the last update of Windows 7 it not working. You can someone please verify this? Have you Pablo the latest Microsoft Windows 7 update?? Hi Jaroslav, I’m on Fedora 20, no Win7 here. I had a similar problem with geany in WinXP. I couldn’t get \executesystemcommand running. I had to switch to Notepad++ because of this. I still wonder what was wrong with that (although I didn’t investigate it further). Just in case it might help, Pablo -- http://www.ousia.tk ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Context to epub: itemize
Am 16.02.2015 um 19:55 schrieb Hans Hagen pra...@wxs.nl: On 2/16/2015 5:17 PM, Axel Kielhorn wrote: Hi, I'm trying to generate epub from ConTeXt and I couldn't get the itemize environment to work. I follow http://wiki.contextgarden.net/ePub and get the structure described but when I look into the xhtml, there is no itemize environment. (At least no with Safari, Firefox or Calibre.) When use vi I see something that looks like my items in a very complex form. I was expecting something like ul li /li li /li /ul but i see div class=itemgroup itemize level-1 symbol-1 div class=item div class=itemtagm:math display=inline xmlns:m=http://www.w3.org/1998/Math/MathML;m:mo•/m:mo/m:math/div div class=itemcontentListenpunkt 1/div /div div class=item div class=itemtagm:math display=inline xmlns:m=http://www.w3.org/1998/Math/MathML;m:mo•/m:mo/m:math/div div class=itemcontentListenpunkt 2 div class=itemgroup itemize level-2 symbol-2 div class=item div class=itemtagm:math display=inline xmlns:m=http://www.w3.org/1998/Math/MathML;m:mo−/m:mo/m:math/div div class=itemcontentListenpunkt 2.1/div/div div class=item div class=itemtagm:math display=inline xmlns:m=http://www.w3.org/1998/Math/MathML;m:mo−/m:mo/m:math/div div class=itemcontentListenpunkt 2.2/div/div/div/div /div Shouldn't the itemtag definition come from the default.css instead of using MathML? itemgroup[symbol=1], div.itemgroup.symbol-1 { list-style-type : disc ; } I’m using: mtx-context | current version: 2015.02.03 23:55 and context --script epub --make epub_mwe to create the epub. the bullets come from math fonts (currently, awaiting additional symbols in the text fonts) Yes I know. Let me rephrase the question: Should the symbols used in epub be identical to those used in the pdf or should the css determine the look of the symbols? Especially when one considers that most current ebook readers can't display MathML. Even if I substitute the Symbols: \definesymbol[uni1][•] \definesymbol[uni2][–] \definesymbol[uni3][*] \definesymbol[uni4][·] \setupitemgroup [itemize] [1] [symbol=uni1] \setupitemgroup [itemize] [2] [symbol=uni2] \setupitemgroup [itemize] [3] [symbol=uni3] \setupitemgroup [itemize] [4] [symbol=uni4] I get a result that neither ADE nor Calibre interprets as a list. (Wrapping it in ul /ul doesn't help.) Axel ___ 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] \executesystemcommand dont work?
Dear Jaroslav, Here your lines fonts'fallback modern-designsize rm 12pt' is loaded test before calling shell command test after calling shell command close source 2 3 C:/$~1da/ConTeXt/ConTeXt-Tests/my_way/ScanCSV/t-scancs... are like fonts'fallback modern-designsize rm 12pt' is loaded OO close source 2 3 C:/$~1da/ConTeXt/ConTeXt-Tests/my_way/ScanCSV/t-scancs... (Windows 7, 32bit and Windows 8.1, 64bit) (mtx-context | current version: 2015.02.03 23:55) Thanks, Akira ___ 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] \executesystemcommand dont work?
Hi ConTeXist. After a long time I tried to recompile ConTeXt file that contained the \executesystemcommand. It seems to me that this command stopped working. Can anyone confirm or refute this my perception? I call \executesystemcommand to compiling another ConTeXt file from running ConTeXt. I use Windows 7 and problem is under TeXlive 2014 version and Standalone version too. Thanx Jaroslav Hajtmar Here is my minimal example: When I compile maintestfile.tex, then I expect, that compilebyexecutesystemcommand.pdf is created during compilation of maintestfile.tex file. I have two files. First is test.tex name: \starttext \input tufte \stoptext And second is file maintestfile.tex: \starttext \executesystemcommand{context --result=compilebyexecutesystemcommand.pdf test.tex} \input knuth \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 ___