Re: [NTG-context] Hooking \stoptext

2012-03-07 Thread Wolfgang Schuster
Am 07.03.2012 um 18:37 schrieb Wolfgang Schuster: > > Am 07.03.2012 um 16:57 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: > >> ... Yes, that's it! Thanks a lot! > > You can also write your own stop/stop-commands for the document like > > \def\startmydocument > {\starttext} > > \def\stopm

Re: [NTG-context] Style file for iPad?

2012-03-07 Thread Alasdair McAndrew
A while ago I grabbed some mathematics book samples for the Kindle. These were books produced by well-known publishing companies, retailing for considerable sums (even in the electronic versions), and in all of them the mathematics typesetting was atrocious. I think that in most (all?) ebook form

Re: [NTG-context] Hooking \stoptext

2012-03-07 Thread Wolfgang Schuster
Am 07.03.2012 um 16:57 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: > ... Yes, that's it! Thanks a lot! You can also write your own stop/stop-commands for the document like \def\startmydocument {\starttext} \def\stopmydocument {\ctxlua{…}% \stoptext} and use them instead of \startte

Re: [NTG-context] Page Header Text with Two Lines

2012-03-07 Thread Emmanuel Asante
On Wed, Mar 7, 2012 at 9:58 AM, Marco wrote: > On 2012-03-07 Emmanuel Asante wrote: > > > I tried to setup a page header with two lines using a command like this: > > > >\setupheadertexts[Left Text][Right Text 1. \crlf Right Text 2] > > > > but the \crlf command gets ignored. How do I achie

Re: [NTG-context] Page Header Text with Two Lines

2012-03-07 Thread Marco
On 2012-03-07 Emmanuel Asante wrote: > I tried to setup a page header with two lines using a command like this: > >\setupheadertexts[Left Text][Right Text 1. \crlf Right Text 2] > > but the \crlf command gets ignored. How do I achieve this? \setupheadertexts [Left Text] [\setups{header:r

[NTG-context] Page Header Text with Two Lines

2012-03-07 Thread Emmanuel Asante
Hi All, I tried to setup a page header with two lines using a command like this: \setupheadertexts[Left Text][Right Text 1. \crlf Right Text 2] but the \crlf command gets ignored. How do I achieve this? Best regards, Emmanuel _

Re: [NTG-context] Style file for iPad?

2012-03-07 Thread William Adams
On Mar 7, 2012, at 3:34 AM, Nicola wrote: > It's worse than pre-TeX printed books. Which makes me wonder: is anyone in > the > world addressing this? Are there people in the TeX community involved in the > standardization processes (say, Epub3, but also the various W3C > specifications), > wh

Re: [NTG-context] Hooking \stoptext

2012-03-07 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... Yes, that's it! Thanks a lot! Best regards, Lukas On Wed, 07 Mar 2012 16:50:01 +0100, Philipp Gesang wrote: On 2012-03-07 15:28, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, I'd need to to hook \stoptext by Lua - I'd need to write something right before the end of the text.

Re: [NTG-context] Hooking \stoptext

2012-03-07 Thread Philipp Gesang
On 2012-03-07 15:28, Procházka Lukáš Ing. - Pontex s. r. o. wrote: > Hello, > > I'd need to to hook \stoptext by Lua - I'd need to write something right > before the end of the text. > > See the simple example: > > t-Hook.mkiv > \startluacode > local stoptext_p = context.stoptext > >

Re: [NTG-context] Hooking \stoptext

2012-03-07 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... OK, your solution works - - But I'd need one which doesn't force user to hook manually; i.e. without: \let\Oldstoptext\stoptext \def\stoptext{% \startluacode context("END") \stopluacode \Oldstoptext } Hooking should be performed in a Lua function and should be "invisible"

Re: [NTG-context] Hooking \stoptext

2012-03-07 Thread luigi scarso
On Wed, Mar 7, 2012 at 3:39 PM, luigi scarso wrote: > > > 2012/3/7 Procházka Lukáš Ing. - Pontex s. r. o. > > Hello, >> >> I'd need to to hook \stoptext by Lua - I'd need to write something right >> before the end of the text. >> > > At least > \let\Oldstoptext\stoptext > \def\stoptext{% > \star

Re: [NTG-context] Hooking \stoptext

2012-03-07 Thread luigi scarso
2012/3/7 Procházka Lukáš Ing. - Pontex s. r. o. > Hello, > > I'd need to to hook \stoptext by Lua - I'd need to write something right > before the end of the text. > At least \let\Oldstoptext\stoptext \def\stoptext{% \startluacode context("END") \stopluacode \Oldstoptext} \starttext \input kn

[NTG-context] Hooking \stoptext

2012-03-07 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'd need to to hook \stoptext by Lua - I'd need to write something right before the end of the text. See the simple example: t-Hook.mkiv \startluacode local stoptext_p = context.stoptext context.stoptext = function(...) context("END") stoptext_p(...) end \stopluacode

Re: [NTG-context] Style file for iPad?

2012-03-07 Thread Nicola
In article <20120306134022.GB29209@khaled-laptop>, Khaled Hosny wrote: > On Tue, Mar 06, 2012 at 10:40:20PM +1100, Alasdair McAndrew wrote: > > Yes, but what ebook formats handle mathematics and diagrams? > > Plus the poor layout support in almost all ebook readers (brain dead > paragraph build