Re: [NTG-context] Character spacing and url

2015-04-13 Thread Wolfgang Schuster
Am 10.04.2015 um 15:31 schrieb Hans Hagen pra...@wxs.nl: On 4/10/2015 12:26 PM, Wolfgang Schuster wrote: Hi Hans, the character spacing mechanism should be disabled for certain commands because it produces unwanted spaces when you want to typeset a URL.

Re: [NTG-context] \hyphenatedurl problem

2015-04-13 Thread Rik Kabel
On 2015-04-13 13:19, Pablo Rodriguez wrote: On 04/11/2015 07:20 AM, Rik wrote: With versions from 20150325 and earlier, the following example code produced nicely wrapped URLs. With current betas, the URLs do not wrap. Hi Rik, with beta from 2015.04.12 15:41, urls are wrapped. Just in case

Re: [NTG-context] ConTeXt-defined colours broken in TikZ in MkIV with latest betas

2015-04-13 Thread Christian Prim
Hi I can confirm this bug. It worked fine for me a week before. It seems to be a bug in one of the latest beta. Thanks for fixing it Christian 2015-04-13 19:45 GMT+02:00 Mojca Miklavec mojca.miklavec.li...@gmail.com: Hi, The following example works in MkII and it works in TeX Live 2014, but

Re: [NTG-context] epub-mkiv-demo.epub

2015-04-13 Thread Hans Hagen
On 4/13/2015 3:37 PM, Piotr Kopszak wrote: ERROR(RSC-005): epub-mkiv-demo.epub/OEBPS/epub-mkiv-demo.opf(26,79): Error while parsing file 'assertion failed: Duplicate ID 'cow-svg''. we can probably catch that one epub-mkiv-demo.epub/OEBPS/epub-mkiv-demo-div.xhtml(38,120): MathML should

[NTG-context] ConTeXt-defined colours broken in TikZ in MkIV with latest betas

2015-04-13 Thread Mojca Miklavec
Hi, The following example works in MkII and it works in TeX Live 2014, but it fails with the latest beta (it draws a black rectangle instead of using the defined colour): \usemodule[tikz] \starttext \definecolor[mycol][r=0.9,g=0.8,b=0.8] \starttikzpicture \fill[mycol] (0, 0) rectangle (2,4);

Re: [NTG-context] How to exclude certain figures from list of figures in ConTeXt?

2015-04-13 Thread Wolfgang Schuster
Am 12.04.2015 um 20:53 schrieb Geert Verhaag verhaagg...@ziggo.nl: Hi, I was wondering whether it is possible to exclude certain figures of a document using the \placelistoffigures command in ConTeXt? For example those that start having a reference like ['fig:figure:exclude‘]? You

Re: [NTG-context] bug in \sethyphenatedurlafter, \sethyphenatedurlbefore and \sethyphenatedurlnormal?

2015-04-13 Thread Hans Hagen
On 4/13/2015 7:17 PM, Pablo Rodriguez wrote: On 04/10/2015 09:32 AM, Hans Hagen wrote: On 4/9/2015 9:23 PM, Pablo Rodriguez wrote: Hans, the minimal sample doesn’t compile with latest beta from 2015.04.08 21:31: \sethyphenatedurlafter{./-_}

Re: [NTG-context] how to insert symbols into document?

2015-04-13 Thread Wolfgang Schuster
Am 13.04.2015 um 01:29 schrieb Csikos Bela bcsikos...@freemail.hu: Hello context users: I would like to insert symbols into my document, especially black-diamond and losenge symbols. I read symbols page at contextgarden but still don't know how to do it. I also tried

Re: [NTG-context] ConTeXt-defined colours broken in TikZ in MkIV with latest betas

2015-04-13 Thread Hans Hagen
On 4/13/2015 7:45 PM, Mojca Miklavec wrote: Hi, The following example works in MkII and it works in TeX Live 2014, but it fails with the latest beta (it draws a black rectangle instead of using the defined colour): \usemodule[tikz] \starttext \definecolor[mycol][r=0.9,g=0.8,b=0.8]

Re: [NTG-context] (hindi) font questions

2015-04-13 Thread Harald Koenig
On Apr 10, Wolfgang Schuster wrote: You forgot the “range” setting for the fallback font which tells context which glyphs should be taken from the font. opps sorry! I only removed the range after my first attempt didn't succeed... now it's working fine, but only after copying the font to

Re: [NTG-context] bug in \sethyphenatedurlafter, \sethyphenatedurlbefore and \sethyphenatedurlnormal?

2015-04-13 Thread Pablo Rodriguez
On 04/13/2015 07:41 PM, Hans Hagen wrote: On 4/13/2015 7:17 PM, Pablo Rodriguez wrote: [...] Would it be possible to have hyphenmin in \setuplanguage? I think it also makes sense there, besides lefthyphenmin and righthyphenmin. It relates more to the alternative hyphenator and hyphenation

Re: [NTG-context] Writing between lines

2015-04-13 Thread Otared Kavian
On 13 Apr 2015, at 18:30, Hans Hagen pra...@wxs.nl wrote: […] pushing stuff in between will probably mess up spacing etc etc so if you follow that route just accept that your proof is not what you will eventually get anyway, i added some ref tracing to the upcoming beta (1)

Re: [NTG-context] bug in \sethyphenatedurlafter, \sethyphenatedurlbefore and \sethyphenatedurlnormal?

2015-04-13 Thread Pablo Rodriguez
On 04/10/2015 09:32 AM, Hans Hagen wrote: On 4/9/2015 9:23 PM, Pablo Rodriguez wrote: Hans, the minimal sample doesn’t compile with latest beta from 2015.04.08 21:31: \sethyphenatedurlafter{./-_} \define[1]\url{{\tt\goto{\hyphenatedurl{#1}}[url(#1)]}} \starttext

Re: [NTG-context] \hyphenatedurl problem

2015-04-13 Thread Pablo Rodriguez
On 04/11/2015 07:20 AM, Rik wrote: With versions from 20150325 and earlier, the following example code produced nicely wrapped URLs. With current betas, the URLs do not wrap. Hi Rik, with beta from 2015.04.12 15:41, urls are wrapped. Just in case it helps, Pablo (Perhaps this is what

[NTG-context] How to exclude certain figures from list of figures in ConTeXt?

2015-04-13 Thread Geert Verhaag
Hi, I was wondering whether it is possible to exclude certain figures of a document using the \placelistoffigures command in ConTeXt? For example those that start having a reference like ['fig:figure:exclude']? Gerard

[NTG-context] Writing between lines

2015-04-13 Thread Otared Kavian
Hi all, How can one write in small print something between lines, in an efficient manner? I have come up with the following: \define[1]\betweenlines{${\rlap{{\mbox{\darkgray{\infofont #1}}}\atop{}}\atop{}}$} in order to make visible certain informations just above a cited reference. But

Re: [NTG-context] how to insert symbols into document?

2015-04-13 Thread Csikos Bela
Otared Kavian írta: On 13 Apr 2015, at 01:29, Csikos Bela wrote: Hello context users: I would like to insert symbols into my document, especially black-diamond and losenge symbols. I read symbols page at contextgarden but still don't know how to do it. I also tried

Re: [NTG-context] how to insert symbols into document?

2015-04-13 Thread Otared Kavian
Hi, There is no \blackdiamond defined beforehand, but there is \diamondsuit (as well as \heartsuit, \spadesuit, \clubsuit): If you want a filled black diamond, you may use \blacklozenge, or find its corresponding UTF code and then insert it with a special command: begin diamond.tex

[NTG-context] Evaluating a Lua expression at the end

2015-04-13 Thread Kumar Appaiah
Hi. I am trying to set up a system where I can use Lua to find a total that I can display at the end. For example, if I set a question paper, after each question, I do a \directlua{total = total + 4}, assuming this question has 4 points. At the top of my document, I now want to say Total points:

Re: [NTG-context] Evaluating a Lua expression at the end

2015-04-13 Thread Norbert Melzer
Sorry, wrong recipient... Am 13.04.2015 14:05 schrieb Norbert Melzer timmel...@gmail.com: If it is possible I'd like to wait for the idris book and get that one. If that's not possible I'm interested in http://www.manning.com/blackheath/ Am 13.04.2015 13:54 schrieb Kumar Appaiah

Re: [NTG-context] Evaluating a Lua expression at the end

2015-04-13 Thread Norbert Melzer
If it is possible I'd like to wait for the idris book and get that one. If that's not possible I'm interested in http://www.manning.com/blackheath/ Am 13.04.2015 13:54 schrieb Kumar Appaiah a.ku...@alumni.iitm.ac.in: Hi. I am trying to set up a system where I can use Lua to find a total that

Re: [NTG-context] Evaluating a Lua expression at the end

2015-04-13 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, another single-pass approach, which uses the fact that you know the questions and their point weights in advance is to form questions into a Lua table and evaluate the total first: local C = context local tab = { {Question 1, 10, }, {Question 2, 20, }, {Question 3, 30, }, }

Re: [NTG-context] Evaluating a Lua expression at the end

2015-04-13 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello Kumar, could you provide a (non-working) minimal example? I tried this: local C = context local n = 0 C.starttext() C(A) n = n + 1 C(B) n = n + 1 C(C) n = n + 1 print(***, n) C.stoptext() print(, n) and I got 3 (twice) - what I expected: ... ConTeXt ver:

Re: [NTG-context] Evaluating a Lua expression at the end

2015-04-13 Thread Kumar Appaiah
On Mon, Apr 13, 2015 at 03:32:04PM +0200, Hans Hagen wrote: On 4/13/2015 1:53 PM, Kumar Appaiah wrote: Hi. I am trying to set up a system where I can use Lua to find a total that I can display at the end. For example, if I set a question paper, after each question, I do a \directlua{total =

Re: [NTG-context] Evaluating a Lua expression at the end

2015-04-13 Thread Kumar Appaiah
Dear Lukáš, On Mon, Apr 13, 2015 at 02:26:38PM +0200, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello Kumar, could you provide a (non-working) minimal example? I tried this: local C = context local n = 0 C.starttext() C(A) n = n + 1 C(B) n = n + 1 C(C)

Re: [NTG-context] Evaluating a Lua expression at the end

2015-04-13 Thread Hans Hagen
On 4/13/2015 1:53 PM, Kumar Appaiah wrote: Hi. I am trying to set up a system where I can use Lua to find a total that I can display at the end. For example, if I set a question paper, after each question, I do a \directlua{total = total + 4}, assuming this question has 4 points. At the top of

Re: [NTG-context] epub-mkiv-demo.epub

2015-04-13 Thread Piotr Kopszak
Thanks Hans! That did the trick, just a README mentioning mudraw as dependency in the source directory would do, however the file which is generated contains errors, at least according to epubcheck and kindlegen, which prevents conversion of resulting epub file to mobi format, what I would

Re: [NTG-context] epub-mkiv-demo.epub

2015-04-13 Thread Hans Hagen
On 4/13/2015 3:37 PM, Piotr Kopszak wrote: Thanks Hans! That did the trick, just a README mentioning mudraw as dependency in the source directory would do, however the file which is generated contains errors, at least according to epubcheck and kindlegen, which prevents conversion of resulting

Re: [NTG-context] Writing between lines

2015-04-13 Thread Hans Hagen
On 4/13/2015 10:00 AM, Otared Kavian wrote: Hi all, How can one write in small print something between lines, in an efficient manner? I have come up with the following: \define[1]\betweenlines{${\rlap{{\mbox{\darkgray{\infofont #1}}}\atop{}}\atop{}}$} in order to make visible certain