Re: [NTG-context] CSV scanners built in ConTeXt - feature or bug?

2015-02-26 Thread Jaroslav Hajtmar
Hans and Alan, Thanks for the reply. Now it works properly. I would like to ask if you're planning to fix file util-prs.lua in a future release of standalone ConTeXt. As for me, I'd rather vote for as the default option other option, ie which does not stop on a blank line ie. not how it's

Re: [NTG-context] total pages in external PDF

2015-02-26 Thread Pablo Rodriguez
On 02/25/2015 10:45 PM, Hans Hagen wrote: On 2/25/2015 6:41 PM, Pablo Rodriguez wrote: [...] \def\Myfilename{\env{filename}} doc = epdf.open(arg[\MyFilename]) total_pages_ = doc:getNumPages() \def\Mypages{total_pages} [...] Which is the right way to get the code above

Re: [NTG-context] total pages in external PDF

2015-02-26 Thread Pablo Rodriguez
On 02/25/2015 11:05 PM, Aditya Mahajan wrote: On Wed, 25 Feb 2015, Pablo Rodriguez wrote: I need to get the number of pages from an external PDF file that I also define with an \env. [...] From my old cut-n-paste module (to format two column pdfs into one column so that they are easier to

[NTG-context] textbackground

2015-02-26 Thread Alan BRASLAU
Hello, For a multilingual document, alternating one language or another, not necessarily a bilingual, translated text, I thought about using textbackground to set-off paragraphs. This technique could also apply to a single language text having multiple levels of information, perhaps statements

Re: [NTG-context] textbackground

2015-02-26 Thread Hans Hagen
On 2/26/2015 10:22 AM, Alan BRASLAU wrote: Hello, For a multilingual document, alternating one language or another, not necessarily a bilingual, translated text, I thought about using textbackground to set-off paragraphs. This technique could also apply to a single language text having multiple

Re: [NTG-context] CSV scanners built in ConTeXt - feature or bug?

2015-02-26 Thread Hans Hagen
On 2/26/2015 1:40 AM, Jaroslav Hajtmar wrote: \starttext \startluacode local mycsvsplitter = utilities.parsers.rfc4180splitter{ separator = ,, quote = '', } local crap = io.loaddata(data.txt) -- with header variant local tablerows, columnname = mycsvsplitter(crap,true)

Re: [NTG-context] CSV scanners built in ConTeXt - feature or bug?

2015-02-26 Thread Alan BRASLAU
On Thu, 26 Feb 2015 10:47:29 +0100 Hans Hagen pra...@wxs.nl wrote: i'm not sure about the default as the standard might demand quit at empty line so that needs to be figured out (not by me therefore by you) Stop on empty line is a very MetaPost-like feature. I don't have an opinion as to

[NTG-context] Error when using TikZ with the library datavisualization

2015-02-26 Thread Alias 1
Hello The following code gives an error (current beta and version from texlive 2014): \usemodule[tikz] \usetikzlibrary[datavisualization] \starttext A \stoptext The log gives the following error: tex error       error on line 682 in file

Re: [NTG-context] Error when using TikZ with the library datavisualization

2015-02-26 Thread Hans Hagen
On 2/27/2015 1:06 AM, Alias 1 wrote: Hello The following code gives an error (current beta and version from texlive 2014): \usemodule[tikz] \usetikzlibrary[datavisualization] how is \usetikzlibrary defined? it should load the file in unprotected mode (\between \unprotect .. \protect)