Re: [NTG-context] show header text only on first page of chapter

2018-02-20 Thread Henning Hraban Ramm
Thank you, but I don’t know how to use that in my setup. Since my rubric has to be in a defined place and I didn’t manage to achieve that with header setups, I used \setlayer with \getmarking[part] Would that defined text behave differently than the part "marker"? And how do I get at that?

Re: [NTG-context] issue with character and \xmlprettyprinttext

2018-02-20 Thread Pablo Rodriguez
On 02/20/2018 06:10 PM, Hans Hagen wrote: > [...] > local name = P("\\") * (patterns.utf8char + S("@!?_"))^1 After checking other code samples, I realized that the approach had to be different: local name = P("\\") * (patterns.letter + S("@!?_") + patterns.utf8two + patterns.utf8three +

Re: [NTG-context] In-Margin Title + whitespace/indent bug

2018-02-20 Thread Wolfgang Schuster
Wolfgang Schuster 19. Februar 2018 um 21:28 This is a shortened version of the original question with a section title in the margin (\setuphead[...][alternative=margintext]) where \noindent is part of the code (strc-ren.mkiv). Wolfgang Hans Hagen

Re: [NTG-context] issue with character and \xmlprettyprinttext

2018-02-20 Thread Pablo Rodriguez
On 02/20/2018 06:10 PM, Hans Hagen wrote: > On 2/20/2018 5:18 PM, Pablo Rodriguez wrote: >> [...] >> I’m afraid it might be a bug. > > local name = P("\\") * (patterns.utf8char + S("@!?_"))^1 Hans, I’m afraid that my previous reply was too fast. Just after testing it worked, I saw it broke

Re: [NTG-context] issue with character and \xmlprettyprinttext

2018-02-20 Thread Pablo Rodriguez
On 02/20/2018 06:10 PM, Hans Hagen wrote: > On 2/20/2018 5:18 PM, Pablo Rodriguez wrote: >> [...] >> I’m afraid it might be a bug. > > local name = P("\\") * (patterns.utf8char + S("@!?_"))^1 Many thanks for your fast fix, Hans. Pablo -- http://www.ousia.tk

Re: [NTG-context] issue with character and \xmlprettyprinttext

2018-02-20 Thread Hans Hagen
On 2/20/2018 5:18 PM, Pablo Rodriguez wrote: On 02/20/2018 09:32 AM, Hans Hagen wrote: On 2/19/2018 10:14 PM, Pablo Rodriguez wrote: [...] For some strange reason, "\␣" is problematic only when \xmlprettyprinttext (or \xmlinlineprettyprinttext) is set to tex. Is this a bug or am I missing

Re: [NTG-context] Learning how to use \setupbtxrendering

2018-02-20 Thread Hans Hagen
On 2/20/2018 5:08 PM, Otared Kavian wrote: Hi Thomas, Many thanks for your insight. Indeed as Alan and you explain, it is straightforward to define one's own specification. I have not done that yet, but already I could change some of the renderings by modifying a few of the definitions in the

Re: [NTG-context] show header text only on first page of chapter

2018-02-20 Thread Wolfgang Schuster
Henning Hraban Ramm 20. Februar 2018 um 17:35 Hi Wolfgang, thank you very much - does that mean it’s not possible to use the part title? \definetext[henning][header][part] \setuphead[part][placehead=empty] \setuphead[chapter][header=henning] \starttext

Re: [NTG-context] show header text only on first page of chapter

2018-02-20 Thread Henning Hraban Ramm
Hi Wolfgang, thank you very much - does that mean it’s not possible to use the part title? Greetlings, Hraban --- http://www.fiee.net http://wiki.contextgarden.net GPG Key ID 1C9B22FD Am 2018-02-20 um 17:17 schrieb Wolfgang Schuster : >

Re: [NTG-context] issue with character and \xmlprettyprinttext

2018-02-20 Thread Pablo Rodriguez
On 02/20/2018 09:32 AM, Hans Hagen wrote: > On 2/19/2018 10:14 PM, Pablo Rodriguez wrote: >> [...] >> For some strange reason, "\␣" is problematic only when >> \xmlprettyprinttext (or \xmlinlineprettyprinttext) is set to tex. >> >> Is this a bug or am I missing something? > are you sure that the

Re: [NTG-context] show header text only on first page of chapter

2018-02-20 Thread Wolfgang Schuster
\definetext[henning][header][chapter] \setuphead[chapter][header=henning] \starttext \dorecurse{5} {\expanded{\chapter{Kapitel \recurselevel}} \dorecurse{10}{\input{lorem}\par}} \stoptext Wolfgang Henning Hraban Ramm 20. Februar 2018 um 15:30 I tried something

Re: [NTG-context] Learning how to use \setupbtxrendering

2018-02-20 Thread Otared Kavian
Hi Thomas, Many thanks for your insight. Indeed as Alan and you explain, it is straightforward to define one's own specification. I have not done that yet, but already I could change some of the renderings by modifying a few of the definitions in the file publ-imp-default.mkvi in my test file.

Re: [NTG-context] show header text only on first page of chapter

2018-02-20 Thread Henning Hraban Ramm
Am 2018-02-20 um 12:30 schrieb Henning Hraban Ramm : > Hello again, > > in my current magazine layout I’m abusing the part structure as a rubric, > i.e. the part title shows up only in the header and in the ToC. > That works nicely so far, but I must show the rubric header only

[NTG-context] show header text only on first page of chapter

2018-02-20 Thread Henning Hraban Ramm
Hello again, in my current magazine layout I’m abusing the part structure as a rubric, i.e. the part title shows up only in the header and in the ToC. That works nicely so far, but I must show the rubric header only on the first page of a chapter (article). Which approach would you suggest? In

Re: [NTG-context] Learning how to use \setupbtxrendering

2018-02-20 Thread Thomas A. Schmitz
Hi Otared, > > So my first question is: how can one define one's own « specification », when > modifying built-in specifications is not satisfactory for one's needs, or > does not give the expected result? I work with lots of bibliographies and want my very own styles, and I have indeed

Re: [NTG-context] image file resolver in Lua?

2018-02-20 Thread Henning Hraban Ramm
Am 2018-02-04 um 13:06 schrieb Hans Hagen : > \getfiguredimensions[t:/sources/cow.pdf] > > \starttabulate[|T|T|] > \NC \string\figurewidth \NC \figurewidth \NC \NR > \NC \string\figureheight\NC \figureheight\NC \NR > \NC \string\figurexscale

Re: [NTG-context] issue with character and \xmlprettyprinttext

2018-02-20 Thread Hans Hagen
On 2/19/2018 10:14 PM, Pablo Rodriguez wrote: Hans, I have the following sample: \startbuffer[demo] b \␣ \stopbuffer \startxmlsetups xml:initialize \xmlsetsetup{#1}{doc|p|code}{xml:*} \stopxmlsetups \xmlregistersetup{xml:initialize} \startxmlsetups