[NTG-context] Centered title with numeration on the same line
Dear All, in MkIV when any title is centered, its numeration is placed on a separate line above the title itself. I'd expect inline formatting which could be overridden as described here http://wiki.contextgarden.net/Titles My code: \setuplabeltext[en][chapter=Chapter~] % while for chapter title this line break is handy (in my use case) \setuphead[chapter][ alternative=middle, style=\bfc, conversion=Romannumerals, numbercommand=\groupedcommand{\cap}{\blank[0.5cm]}, after={\blank[1cm]}, ] % for section it is inappropriate \setuphead[section][ alternative=middle, style=\bfa, sectionsegments=section, % ignore component label ] \starttext \chapter{Foo} \section{The First Section} Text. \stoptext How can I keep numeration and title together? Thanks, Jan ___ 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] Fraction with a fraction in the denominator
On 4 juin 2013, at 21:34, Hans Hagen pra...@wxs.nl wrote: […] ok, a new feature for SB: Thanks hans! Very nice feature. Wikified in http://wiki.contextgarden.net/Command/fraction but the output on the wiki is not correct since ConTeXt there is mkii. Best regards: OK \definemathfraction [wfrac] [margin=.25em] \starttext \startformula \wfrac { a } { \frac { b } { c } } \stopformula \stoptext - 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 ___ ___ 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] Centered title with numeration on the same line
On 6/3/2013 6:57 PM, Jan Tosovsky wrote: Dear All, in MkIV when any title is centered, its numeration is placed on a separate line above the title itself. I'd expect inline formatting which could be overridden as described here http://wiki.contextgarden.net/Titles My code: \setuplabeltext[en][chapter=Chapter~] % while for chapter title this line break is handy (in my use case) \setuphead[chapter][ alternative=middle, style=\bfc, conversion=Romannumerals, numbercommand=\groupedcommand{\cap}{\blank[0.5cm]}, after={\blank[1cm]}, ] % for section it is inappropriate \setuphead[section][ alternative=middle, style=\bfa, sectionsegments=section, % ignore component label ] \starttext \chapter{Foo} \section{The First Section} Text. \stoptext How can I keep numeration and title together? in strc-ren you can see exmaples of definitions; you can either define a macro and hook it in (old method) or use setups in which case you have access to more properties commands like \veryraggedright are low level (often fast) variants of in this case \setupalign[middle,broad] (just use \setupalign if more advanced control is needed) \defineheadalternative [mymiddle] [alternative=horizontal, renderingsetup=head:mymiddle] \startsetups[head:mymiddle] \ruledvbox { \headsetupspacing \veryraggedcenter \begstrut \ifconditional\headshownumber \headnumbercontent \quad \fi \headtextcontent \endstrut } \stopsetups the struts enforce consistent spacing - 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] Including a large SVG image
Sander wrote: The inkscape command works okay from the command line. Thanks for checking this! Hmm, so Inkscape is not the problem... Does ConTeXt still fail to include the picture when you make a minimal document containing only some text and the problematic SVG? Should I upload the SVG and manual PDF output somewhere? Yes, if you could, that would be appreciated. Cheers, Sietse On 4 June 2013 19:35, Sander Maijers s.n.maij...@student.ru.nl wrote: The inkscape command works okay from the command line. Should I upload the SVG and manual PDF output somewhere? On 03-06-13 18:53, honyk wrote: Sander Maijers wrote: I have a few SVG graphics of multiple megabytes. They contain a lot of objects (text/shapes). All graphics except for one gets properly included in my ConTeXt document. Marco Patzer wrote: Maybe inkscape failed to convert the file. Is a corresponding m_k_i_v_filename.svg.pdf file generated? It might be informative to try running the Inkscape conversion manually. This is the command line ConTeXT uses: inkscape %oldname% --export-dpi=600 -A %newname% (The quotation marks are literal: they are there in case the filename has spaces, e.g.) If processing in Inkscape fails, you can try another tool: http://xmlgraphics.apache.org/batik/tools/rasterizer.html It can (despite its name) transcode SVG to vector PDF: java -Xmx2G -jar batik-rasterizer.jar -m application/pdf image.svg In that case you have to transcode your files first and reference PDF variants in your input. Jan ___ 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 ___ ___ 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] Pagenumbering
I doing something wrong is this a bug? \starttext \setupcounter[userpage][10] \dorecurse{3}{ \input tufte \page } \stoptext current version: 2013.05.28 00:36 = Doesn't start at page 10 but at page 1 Cheers, Tim ___ 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] Pagenumbering
On 2013–06–05 Tim Steenvoorden wrote: I doing something wrong is this a bug? \starttext \setupcounter[userpage][10] \setcounter [userpage] [10] Marco signature.asc Description: Digital 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] Including a large SVG image
On 05-06-13 12:38, Sietse Brouwer wrote: Sander wrote: The inkscape command works okay from the command line. Thanks for checking this! Hmm, so Inkscape is not the problem... Does ConTeXt still fail to include the picture when you make a minimal document containing only some text and the problematic SVG? Should I upload the SVG and manual PDF output somewhere? Yes, if you could, that would be appreciated. Here is the PDF converted by hand from the SVG: https://docs.google.com/file/d/0BynsKFwk6jYJQlMxR3paNW0zS2s/edit?usp=sharing I can upload the SVG in the evening, if you need it. I guess that is not useful because Inkscape can convert the SVG to PDF, it is just that ConTeXt does not include the graphic. Cheers, Sietse On 4 June 2013 19:35, Sander Maijers s.n.maij...@student.ru.nl wrote: The inkscape command works okay from the command line. Should I upload the SVG and manual PDF output somewhere? On 03-06-13 18:53, honyk wrote: Sander Maijers wrote: I have a few SVG graphics of multiple megabytes. They contain a lot of objects (text/shapes). All graphics except for one gets properly included in my ConTeXt document. Marco Patzer wrote: Maybe inkscape failed to convert the file. Is a corresponding m_k_i_v_filename.svg.pdf file generated? It might be informative to try running the Inkscape conversion manually. This is the command line ConTeXT uses: inkscape %oldname% --export-dpi=600 -A %newname% (The quotation marks are literal: they are there in case the filename has spaces, e.g.) If processing in Inkscape fails, you can try another tool: http://xmlgraphics.apache.org/batik/tools/rasterizer.html It can (despite its name) transcode SVG to vector PDF: java -Xmx2G -jar batik-rasterizer.jar -m application/pdf image.svg In that case you have to transcode your files first and reference PDF variants in your input. Jan ___ 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 ___ ___ 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] Including a large SVG image
On Wed, Jun 5, 2013 at 2:58 PM, Sander Maijers s.n.maij...@student.ru.nlwrote: On 05-06-13 12:38, Sietse Brouwer wrote: Sander wrote: The inkscape command works okay from the command line. Thanks for checking this! Hmm, so Inkscape is not the problem... Does ConTeXt still fail to include the picture when you make a minimal document containing only some text and the problematic SVG? Should I upload the SVG and manual PDF output somewhere? Yes, if you could, that would be appreciated. Here is the PDF converted by hand from the SVG: https://docs.google.com/file/**d/**0BynsKFwk6jYJQlMxR3paNW0zS2s/** edit?usp=sharinghttps://docs.google.com/file/d/0BynsKFwk6jYJQlMxR3paNW0zS2s/edit?usp=sharing it says Sorry, we are unable to generate a view of the document at this time. Please try again later. -- 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] Including a large SVG image
Hi Luigi, On 05-06-13 15:01, luigi scarso wrote: On Wed, Jun 5, 2013 at 2:58 PM, Sander Maijers s.n.maij...@student.ru.nl mailto:s.n.maij...@student.ru.nl wrote: On 05-06-13 12:38, Sietse Brouwer wrote: Sander wrote: The inkscape command works okay from the command line. Thanks for checking this! Hmm, so Inkscape is not the problem... Does ConTeXt still fail to include the picture when you make a minimal document containing only some text and the problematic SVG? Should I upload the SVG and manual PDF output somewhere? Yes, if you could, that would be appreciated. Here is the PDF converted by hand from the SVG: https://docs.google.com/file/d/0BynsKFwk6jYJQlMxR3paNW0zS2s/edit?usp=sharing it says Sorry, we are unable to generate a view of the document at this time. Please try again later. -- luigi __ That is a preview window that only works for certain file types. You can download the file, for example by the menu bar in the top left corner. (I am not in the position to upload the file somewhere else now, so that's why I am using Google Drive.) _ 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] Including a large SVG image
On Wed, Jun 5, 2013 at 3:06 PM, Sander Maijers s.n.maij...@student.ru.nlwrote: Hi Luigi, That is a preview window that only works for certain file types. You can download the file, for example by the menu bar in the top left corner. (I am not in the position to upload the file somewhere else now, so that's why I am using Google Drive.) yes, but it says 0 bytes. -- 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] Including a large SVG image
On 05-06-13 15:09, luigi scarso wrote: On Wed, Jun 5, 2013 at 3:06 PM, Sander Maijers s.n.maij...@student.ru.nl mailto:s.n.maij...@student.ru.nl wrote: Hi Luigi, That is a preview window that only works for certain file types. You can download the file, for example by the menu bar in the top left corner. (I am not in the position to upload the file somewhere else now, so that's why I am using Google Drive.) yes, but it says 0 bytes. Excuse me. The file became truncated when I was renaming it and the OS froze, it indeed is 0 bytes now. This evening I will try upload it again. -- 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 ___ ___ 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] Including a large SVG image
On Wed, Jun 5, 2013 at 3:13 PM, Sander Maijers s.n.maij...@student.ru.nlwrote: Excuse me. The file became truncated when I was renaming it and the OS froze, it indeed is 0 bytes now. This evening I will try upload it again. can you also post a 7z compressed version of the SVG ? -- 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] Pagenumbering
Oh god, stupid me. Thanks, Marco! Cheers, Tim Op woensdag 5 juni 2013, om 12:54 heeft Marco Patzer het volgende geschreven: On 2013–06–05 Tim Steenvoorden wrote: I doing something wrong is this a bug? \starttext \setupcounter[userpage][10] \setcounter [userpage] [10] 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 ___ ___ 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] Multiple footnote-numbers referring only to one footnote
No way? I am sure, there is some :) Another solution, which would work equally would be to have two footnote-numbers with the same number, which refer to the same footnote. This way: Text [Footnote number 1] text [Footnote number 1] Footer: 1 Some Footnote. Is that possible? Thanks Huseyin ___ 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] Multiple footnote-numbers referring only to one footnote
Have you had a look at http://wiki.contextgarden.net/Footnotes#Footnote_Numbering ? Can you post some code of what you've already tried? On Wed, Jun 5, 2013 at 8:47 AM, H. Özoguz h.oezo...@mmnetz.de wrote: No way? I am sure, there is some :) Another solution, which would work equally would be to have two footnote-numbers with the same number, which refer to the same footnote. This way: Text [Footnote number 1] text [Footnote number 1] Footer: 1 Some Footnote. Is that possible? Thanks Huseyin __**__** ___ 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 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/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] Multiple footnote-numbers referring only to one footnote
Am 05.06.2013 um 17:47 schrieb H. Özoguz h.oezo...@mmnetz.de: No way? I am sure, there is some :) Another solution, which would work equally would be to have two footnote-numbers with the same number, which refer to the same footnote. This way: Text [Footnote number 1] text [Footnote number 1] Footer: 1 Some Footnote. Is that possible? \starttext First note.\footnote[fnt:one]{First footnote} Second note.\footnote[fnt:two]{Second footnote} Third note.\note[fnt:one] \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] Multiple footnote-numbers referring only to one footnote
\starttext First note.\footnote[fnt:one]{First footnote} Second note.\footnote[fnt:two]{Second footnote} Third note.\note[fnt:one] \stoptext Wolfgang Perfect, thanks again 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] Last standalone version suddenly will not load user module
Hello ConTeXist. For several years, I use very often my library for processing CSV tables. Even 2 months ago worked flawlessly in both versions (standalone version and ConTeXt TeXLive 2012). I am update standalone version fairly often (at least one times for two months). Unfortunately, today I found out that my latest standalone version fails to load the library and the compilation is complete with an error message. I find now that I can not detect and correct a problem in the library. Maybe in it any longer unsupported commands. Can someone be read from the attached log file? Or I'll have to conserve the previous version of the standalone for my ConTeXt applications? I can, if necessary, to send my module... Thanx Jaroslav Hajtmar Here is content of my log file ... : C:\$~1da\SKOLA\2012-2013\pz2013context --autopdf x mtx-context | warning: no (local) file './x', proceeding mtx-context | run 1: luatex --fmt=C:/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en --jobname=x --lua=C:/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui --no-parse-first-line --c:autopdf --c:currentrun=1 --c:fulljobname=./x --c:input=./x --c:kindofrun=1 --c:maxnofruns=8 cont-yes.mkiv This is LuaTeX, Version beta-0.77.0-2013053109 (rev 4635) \write18 enabled. (C:/context/tex/texmf-context/tex/context/base/cont-yes.mkiv ConTeXt ver: 2013.06.04 21:26 MKIV beta fmt: 2013.6.4 int: english/english system 'cont-new.mkiv' loaded (C:/context/tex/texmf-context/tex/context/base/cont-new.mkiv) system files jobname 'x', input './x', result 'x' fontslatin modern fonts are not preloaded languageslanguage 'en' is active (C:/$~1da/SKOLA/2012-2013/pz2013/x.tex fontstypescripts unknown library 'loc' fontstypescripts unknown library 'cmr' fontspreloading latin modern fonts (third stage) {C:/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{C:/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{C:/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} fonts'fallback modern rm 11pt' is loaded resolversmodules 'hl2t-scancsv' is loaded (../texlibrary//hl2t-scancsv.mkiv loading ConTeXt User Module / ScanCSV ! LuaTeX error [string \directlua ]:80: invalid escape sequence near '\{'. system tex error on line 415 in file ../texlibrary//hl2t-scancsv.mkiv: LuaTeX error ... 405 406 if temptotempnumrows then tempto=tempnumrows end 407 if tempfromtempnumrows then tempfrom=1 end 408 tempfromI=tempfrom-1 409 410 tex.sprint(tex.ctxcatcodes,'\\newcount\\tempfrom\\tempfrom='..tostring(tempfrom)) -- 411 tex.sprint(tex.ctxcatcodes,'\\newcount\\tempfromI\\tempfromI='..tostring(tempfromI)) -- 412 tex.sprint(tex.ctxcatcodes,'\\newcount\\tempto\\tempto='..tostring(tempto)) -- 413 end -- function thirddata.scancsv.paramcontrol(from, to) 414 415 \stopluacode 416 417 %D \section{MACRO DEFINITIONS} 418 419 \def\printline{\ctxlua{thirddata.scancsv.printline()}\par} 420 \def\printall{\ctxlua{thirddata.scancsv.printall()}\par} 421 422 \def\csvreport{ 423 \ctxlua{thirddata.scancsv.csvreport()} 424 } 425 inserted text ...ion thirddata.scancsv.paramcontrol(from, to) } \luat_start_lua_code_indeed ...nd \directlua {#1}} l.415 \stopluacode ? ) (../texlibrary/lib-lua.tex) ! LuaTeX error [string \directlua ]:1: attempt to call field 'opencsvfile' (a nil value). system tex error on line 207 in file C:/$~1da/SKOLA/2012-2013/pz2013/x.tex: LuaTeX error ... 197 198 \podpisreditele 199 200 \page 201 } 202 203 \def\lineaction{\printaction} 204 205 \starttext 206 207 \filelineaction{rozh_4lneprijat-nesplnil.csv} 208 209 \stoptext 210 211 212 \dodoopencsvfile ...ata.scancsv.opencsvfile(#1)} \else \ctxlua {thirddata argument \opencsvfile {rozh_4lneprijat-nesplnil.csv} \doloopaction \firstoftwoarguments #1#2n-#1 \doloopLineaction ...ion {\lineaction }{#2}{#3 to be read again l.207 \filelineaction{rozh_4lneprijat-nesplnil.csv} ? ! LuaTeX error [string \directlua ]:1: attempt to call field 'opencsvfile' (a nil value). system tex error on line 207 in file C:/$~1da/SKOLA/2012-2013/pz2013/x.tex: LuaTeX error ... 197 198 \podpisreditele 199 200 \page 201 } 202 203 \def\lineaction{\printaction} 204 205 \starttext 206 207 \filelineaction{rozh_4lneprijat-nesplnil.csv} 208 209 \stoptext 210 211 212 \dodoopencsvfile ...irddata.scancsv.opencsvfile()} \fi to be read again \doifsomethingelse \doloopAction ...-\opencsvfile \doifsomethingelse
Re: [NTG-context] Last standalone version suddenly will not load user module
Am 05.06.2013 um 20:26 schrieb Jaroslav Hajtmar hajt...@gyza.cz: Hello ConTeXist. For several years, I use very often my library for processing CSV tables. Even 2 months ago worked flawlessly in both versions (standalone version and ConTeXt TeXLive 2012). I am update standalone version fairly often (at least one times for two months). Unfortunately, today I found out that my latest standalone version fails to load the library and the compilation is complete with an error message. I find now that I can not detect and correct a problem in the library. Maybe in it any longer unsupported commands. Can someone be read from the attached log file? Or I'll have to conserve the previous version of the standalone for my ConTeXt applications? I can, if necessary, to send my module… Please provide also a short example for the problem. 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] Last standalone version suddenly will not load user module
On 6/5/2013 8:26 PM, Jaroslav Hajtmar wrote: Hello ConTeXist. For several years, I use very often my library for processing CSV tables. Even 2 months ago worked flawlessly in both versions (standalone version and ConTeXt TeXLive 2012). I am update standalone version fairly often (at least one times for two months). Unfortunately, today I found out that my latest standalone version fails to load the library and the compilation is complete with an error message. if the file is not in the local path, you need to use --global - 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] suppress unwanted page breaks
Hi ConTextists, I have a few pages with questions and answers \setuptolerance[verytolerant] \defineparagraphs [mypar][n=3,before={\blank[back]}]%,after={\blank[disable]}] \setupparagraphs [mypar][1][width=.01\textwidth,style=bold] \setupparagraphs [mypar][2][width=.95\textwidth] \starttext \page[bigpreference] 1. Question \blank[1*line] \blank[1*line] \startmypar * \mypar First possible answer \mypar \externalfigure[marked] \stopmypar \blank[1*line] \blank[1*line] \startmypar * \mypar Second possible answer \mypar \externalfigure[empty] \stopmypar ... More question and answers blocks \stoptext My problems: - Sometimes the answer is not broken up into lines correctly, but prints over the externalfigure, which is a marker, with the given answer is the correct one. - I want the question to stay together on one page with the answers, but sometimes there are pagebreaks in between. - I guess there are better ways to code this, so if you have a better ideas, go ahead. (I created a minimal example from my multipage text, and hope that I included all relevant setup commands). Kind regards, Ingo Hohmann ___ 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] Indenting in \setuplines
Dnia 2013-06-03, o godz. 15:20:45 Marcin Borkowski mb...@wmi.amu.edu.pl napisał(a): Hi, I'd like to have my \startlines ... \stoplines indented in the following way: the first two lines unindented, the next two indented, and so on. Basically, this means that I'd like the pattern to be based on (mod 4) arithmetic and not (mod 2). Is it possible? If yes, how? OK, so I thought I can handle this... but not:(. I found the relevant definitions in spac-hor.mkiv and tried to add a line saying \installindentingmethod \v!evenpairs{\c_spac_indentation_toggle_state\plusfour} But after context --make I got an Undefined control sequence. Here's an excerpt from the log information: ! Undefined control sequence. system tex error on line 108 in file /home/marcin/context-2013-05-22-19-28/tex/texmf-context/tex/context/base/spac-hor.mkiv: Undefined control sequence ... 98 99 \installindentingmethod \v!yes {\parindent\d_spac_indentation_par\relax} % not \indent ! 100 \installindentingmethod \v!always{\parindent\d_spac_indentation_par\relax} % not \indent ! 101 102 \installindentingmethod \v!never {\parindent\zeropoint\relax % no \indent ! 103 \c_spac_indentation_toggle_state\zerocount} 104 105 \installindentingmethod \v!odd {\c_spac_indentation_toggle_state\plusone} 106 \installindentingmethod \v!even {\c_spac_indentation_toggle_state\plustwo} 107 %\installindentingmethod \v!oddpairs {\c_spac_indentation_toggle_state\plusthree} 108 \installindentingmethod \v!evenpairs {\c_spac_indentation_toggle_state\plusfour} 109 110 \installindentingmethod \v!normal{\ifx\normalindentation\empty\else 111 \let\v_spac_indentation_current\normalindentation 112 \simplesetupindenting 113 \fi} 114 115 \installindentingmethod \v!reset {\settrue\c_spac_indentation_indent_first 116 \parindent\zeropoint 117 \c_spac_indentation_toggle_state\zerocount} 118 argument \??indentingmethod \v!evenpairs \setvalue #1?-\expandafter \def \csname #1 \endcsname \installindentingmethod ...{\??indentingmethod #1} {#2} l.108 ...{\c_spac_indentation_toggle_state\plusfour} What am I doing wrong? TIA, Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University ___ 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] Last standalone version suddenly will not load user module
Thanx very much Wolfgang. Now is all OK. Unfortunately now is necessary have one version of module for TeXLive version of ConTeXt and second version of module for standalone version. But it's not much of a problem now for me... I am afraid, that in the future will my module problematic again and without help I will lose it. Now very much thanx for your help. I will not have sleepless night... Jaroslav Hajtmar Dne 5.6.2013 22:47, Wolfgang Schuster napsal(a): Am 05.06.2013 um 22:26 schrieb Jaroslav Hajtmar hajt...@gyza.cz: Hello Wolfgang. Thanks very much for your interest in my problem. I am sending a library and very simple example. When I compile example by ConTeXt Lexlive 2012, then is OK - flawless. When I use last standalone version to compile then compilation ending with error message. I note that about two years I have successfully used the module. Just two months ago it managed standalone version. Standalone version don't work till in last version now. If the error does not reveal, I'll probably have to use the module only in old versions Context. I really need it too often for my job. Processing large bulk data. I do not know whether it makes sense to send this mail to the mailing list, so I send it to you privately. The fixes are simple: 1. Don’t escape braces ({” and }), e.g. line 169 has to be context.setvalue(hc..thirddata.scancsv.ar2colnum(i),'{\\bch'..thirddata.scancsv.gCSV[i]..'\\ech}') and not context.setvalue(hc..thirddata.scancsv.ar2colnum(i),'\{\\bch'..thirddata.scancsv.gCSV[i]..'\\ech\}') 2. There is a \ missing in line 248 for the \par command. You wrote infomakra=infomakra..'\par' but it has to be infomakra=infomakra..'\\par' 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] Indenting in \setuplines
On 6/5/2013 11:06 PM, Marcin Borkowski wrote: Dnia 2013-06-03, o godz. 15:20:45 Marcin Borkowski mb...@wmi.amu.edu.pl napisał(a): Hi, I'd like to have my \startlines ... \stoplines indented in the following way: the first two lines unindented, the next two indented, and so on. Basically, this means that I'd like the pattern to be based on (mod 4) arithmetic and not (mod 2). Is it possible? If yes, how? OK, so I thought I can handle this... but not:(. I found the relevant definitions in spac-hor.mkiv and tried to add a line saying \installindentingmethod \v!evenpairs{\c_spac_indentation_toggle_state\plusfour} % there is no \v!evenpairs \unprotect % english interface only: \installindentingmethod {evenpairs} {\c_spac_indentation_toggle_state\plusfour} % or maybe: \installindentingmethod \v!quadruple {\c_spac_indentation_toggle_state\plusfour} % as \v!quadruple is a known keyword \protect - 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] Last standalone version suddenly will not load user module
On 6/6/2013 12:19 AM, Jaroslav Hajtmar wrote: I am afraid, that in the future will my module problematic again and without help I will lose it. Now very much thanx for your help. I will not have sleepless night... as has been mentioned a few times before: lua 5.2 is more strict in permitted escapes, so unless 5.2 changes that policy you're okay 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] Indenting in \setuplines
Dnia 2013-06-06, o godz. 00:22:04 Hans Hagen pra...@wxs.nl napisał(a): On 6/5/2013 11:06 PM, Marcin Borkowski wrote: Dnia 2013-06-03, o godz. 15:20:45 Marcin Borkowski mb...@wmi.amu.edu.pl napisał(a): Hi, I'd like to have my \startlines ... \stoplines indented in the following way: the first two lines unindented, the next two indented, and so on. Basically, this means that I'd like the pattern to be based on (mod 4) arithmetic and not (mod 2). Is it possible? If yes, how? OK, so I thought I can handle this... but not:(. I found the relevant definitions in spac-hor.mkiv and tried to add a line saying \installindentingmethod \v!evenpairs{\c_spac_indentation_toggle_state\plusfour} % there is no \v!evenpairs \unprotect % english interface only: \installindentingmethod {evenpairs} {\c_spac_indentation_toggle_state\plusfour} % or maybe: \installindentingmethod \v!quadruple {\c_spac_indentation_toggle_state\plusfour} % as \v!quadruple is a known keyword \protect Sorry to say that, but neither seems to work... ! Missing number, treated as zero. to be read again q \v_spac_indentation_current -q uadruple \4unknown #1#2#3#4#5-#2=#1 \relax \spac_indentation_apply_step_one ...on_setup_size \fi \next1 #1,-\spac_indentation_apply_step_one {#1} \syst_helpers_do_process_co... \syst_helpers_do_process_comma_list ...rgument #1, ]\relax \global \advance \... ... l.36 \startlines[indenting=quadruple] ? What do I do? (And what do I do if I really want evenpairs, especially that I'd like to have oddpairs, too, so quadruple is not really a good keyword for me?) TIA, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University ___ 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] Itemgroup: reverse and start key
Hi, \startitemize[reverse][start=...] does not work as expected. Minimal example: \startitemize[n, reverse][start=2] \item One \item Two \stopitemize Possible fix: Add \c!start=\itemgroupparameter\c!start, to the list of options in \def\strc_itemgroups_insert_item_counter_indeed {} in strc-itm.mkvi. 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 ___