[NTG-context] \setupbackend and manual hyphenation

2015-02-12 Thread Axel Kielhorn
Hi! I'm trying to use Context to export a document to epub. Following the instructions on Contextgarden everything works up to a point: When I add manual hyphenation for the word "Trennalgorithmus" and \setupbackend[export=yes,xhtml=yes] I get: lua error > error on line 1 in file /Volumes/

Re: [NTG-context] XML Processing with Verbatim (VIM-Typing)

2015-02-12 Thread Hans Hagen
On 2/11/2015 12:15 PM, Andreas Schneider wrote: Am 10.02.2015 22:45, schrieb Hans Hagen: \startluacode function xml.functions.processJSON(t) buffers.assign("foo","\\startJSON\n" .. tostring(xml.text(t)) .. "\n\\stopJSON") context.getbuffer { "foo" } end \stopluacode \st

Re: [NTG-context] \setupbackend and manual hyphenation

2015-02-12 Thread Hans Hagen
On 2/12/2015 11:13 AM, Axel Kielhorn wrote: Hi! I'm trying to use Context to export a document to epub. Following the instructions on Contextgarden everything works up to a point: remark: in your example you say: > Auch wenn der Trennalgorithmus von LaTeX nicht schlecht ist, gibt es > wieder

Re: [NTG-context] \setupbackend and manual hyphenation

2015-02-12 Thread Hans Hagen
On 2/12/2015 11:13 AM, Axel Kielhorn wrote: Hi! I'm trying to use Context to export a document to epub. Following the instructions on Contextgarden everything works up to a point: When I add manual hyphenation for the word "Trennalgorithmus" and \setupbackend[export=yes,xhtml=yes] I get: lua e

Re: [NTG-context] \setupbackend and manual hyphenation

2015-02-12 Thread Axel Kielhorn
Am 12.02.2015 um 16:10 schrieb Hans Hagen : > for the moment use > > \setuphyphenation[method=expanded] This works in the current beta, but not with the stable version in TeXLive 2014. It doesn't matter since I need the beta to create epub, just wanted to mention it. Thanks for the quick rep

[NTG-context] \setupcaptions question

2015-02-12 Thread j. van den hoff
I want to use `numberstopper' for figure caption customization like so: \setupcaptions[numberstopper={:}] this works fine for the caption itself (i.e. I get, e.g. "Figure 1: caption text") _but_ references to the figure via a defined label such as [fig:example] in the body text do include the n

Re: [NTG-context] \setupbackend and manual hyphenation

2015-02-12 Thread Hans Hagen
On 2/12/2015 5:10 PM, Axel Kielhorn wrote: Am 12.02.2015 um 16:10 schrieb Hans Hagen : for the moment use \setuphyphenation[method=expanded] This works in the current beta, but not with the stable version in TeXLive 2014. indeed, as there is new hyphenation related code in the beta (alrea

[NTG-context] Asciidoc to PDF over Context

2015-02-12 Thread Tobias Famulla
Hello Mailing-List, I used Latex for a few years in university to create reports for assignments and also to write my bachelor thesis (I would have liked to use Context, but the right schema for citation was not available and I had no time to create it myself). Over the time I got a little bit fru

Re: [NTG-context] \setupcaptions question

2015-02-12 Thread Otared Kavian
Hi Joerg, I think you are right when refering to a figure, the number stopper should not appear in the text. It seems to me that using something like \setupcaption[figure][stopper={.}] used to work in mkii and mkiv, but while it works in mkii, I just tried it with mkiv and found that i

Re: [NTG-context] \setupcaptions question

2015-02-12 Thread Wolfgang Schuster
> Am 12.02.2015 um 17:37 schrieb j. van den hoff : > > > I want to use `numberstopper' for figure caption customization like so: > > \setupcaptions[numberstopper={:}] > > this works fine for the caption itself (i.e. I get, e.g. "Figure 1: > caption text") _but_ > references to the figure via a

Re: [NTG-context] \setupcaptions question

2015-02-12 Thread j. van den hoff
On Thu, 12 Feb 2015 22:18:51 +0100, Otared Kavian wrote: Hi Joerg, hi otared, I think you are right when refering to a figure, the number stopper should not appear in the text. It seems to me that using something like \setupcaption[figure][stopper={.}] used to work in mkii and

Re: [NTG-context] \setupcaptions question

2015-02-12 Thread Otared Kavian
Hi Wolfgang, and Joerg, Actually with your code and using numberstopper instead of stopper your example works fine here, too. So the right command is \setupcaption[figure][numberstopper={:}] and not what I wrote before (which works in mkii, though…). Actually the command used by Joerg, th

Re: [NTG-context] \setupcaptions question

2015-02-12 Thread j. van den hoff
On Thu, 12 Feb 2015 22:56:11 +0100, Otared Kavian wrote: Hi Wolfgang, and Joerg, Actually with your code and using numberstopper instead of stopper your example works fine here, too. So the right command is \setupcaption[figure][numberstopper={:}] and not what I wrote before (which

Re: [NTG-context] XML Processing with Verbatim (VIM-Typing)

2015-02-12 Thread Aditya Mahajan
On Thu, 12 Feb 2015, Hans Hagen wrote: On 2/11/2015 12:15 PM, Andreas Schneider wrote: Am 10.02.2015 22:45, schrieb Hans Hagen: \startluacode function xml.functions.processJSON(t) buffers.assign("foo","\\startJSON\n" .. tostring(xml.text(t)) .. "\n\\stopJSON") context.getb

Re: [NTG-context] \setupcaptions question

2015-02-12 Thread Wolfgang Schuster
> Am 12.02.2015 um 23:14 schrieb j. van den hoff : > >>> On 12 Feb 2015, at 22:31, Wolfgang Schuster >>> wrote: >>> >>> Am 12.02.2015 um 17:37 schrieb j. van den hoff : I want to use `numberstopper' for figure caption customization like so: \setupcaptions[numb

Re: [NTG-context] \setupcaptions question

2015-02-12 Thread j. van den hoff
On Fri, 13 Feb 2015 04:54:58 +0100, Wolfgang Schuster wrote: No, you’re right. I used the wrong command (\at is used to show the page where to float was placed) understood. and so far there is only a workaround for this problem. What you can do OK, does this require some sort of formal