[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 my experience, it’s hard to find the right place for \setupheader(texts) so 
that it affects the right page(s).


Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

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\NC \figurexscale\NC \NR
> \NC \string\figureyscale\NC \figureyscale\NC \NR
...
> \TB
> \NC \string\figurefullname  \NC \figurefullname  \NC \NR
> \NC \string\noffigurepages  \NC \noffigurepages  \NC \NR
> \TB
> \NC \string\figurefilepath  \NC \figurefilepath  \NC \NR
> \NC \string\figurefilename  \NC \figurefilename  \NC \NR
> \NC \string\figurefiletype  \NC \figurefiletype  \NC \NR
> \stoptabulate

Next try: How can I access these values from Lua?

While \ctxlua{print("\figureheight")} works,
context.figureheight is a function value (?),
context.figureheight() or tex.figureheight() is nil, 
tex.getdimen("figureheight") is also wrong, and it’s also no glue.

I’d be thankful for a hint.


Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

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 xml:doc
  \xmlflush{#1}
   \stopxmlsetups

   \startxmlsetups xml:p
  \startpar\xmlflush{#1}\stoppar
   \stopxmlsetups

   \startxmlsetups xml:code
 \xmlprettyprinttext{#1}{tex}
   \stopxmlsetups

   \starttext
  \xmlprocessbuffer{main}{demo}{}
   \stoptext

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 font you use has the character


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

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 found that it is easier to define my own styles rather than modify the 
existing ones. So what you want to do:

1. you define your own style, let’s call it otared. So in your main tex file, 
you would have this line:

\usebtxdefinitions [otared]

This means you have to create two files, one for the lua definitions, one for 
tex. 

2. For the lua file, just take publ-imp-apa.lua and cpy it as 
publ-imp-otared.lua. Chances are you won’t have to make any changes right away. 
The content is pretty straightforward lua code.

3. The tex file publ-imp-otared.mkvi will then contain your definitions in a 
block 

\startbtxrenderingdefinitions[otared]

...

\stopbtxrenderingdefinitions

You define two different sets of definitions: one for the citations in the text 
(in the form \startsetups btx:cite:XXX), one for the list of references (in the 
form \startsetups btx:list:XXX). Here you can make all the formatting you want: 
article name in red, author name for articles in small caps, journal name in 
3D, whatever. Again, just look at publ-imp-apa.mkvi and try to understand how 
it works; it’s not that difficult.

> The second question is: how can one write a file containing only the 
> references which are used in a document, so that that file can be in some way 
> included into the main document (this is somewhat analogous to the .bbl file 
> created by BibTeX, which allows to include a series of \bibitem into an 
> article written with LaTeX: this is necessary to do when one submits a paper 
> to a mathematical journal).
> 
> Thanks again for your help: OK

The list of references is included in the .tuc file that a context run 
produces. If you need to massage it into any other form, 5 minutes of lua 
coding can extract the salient information for you.

HTH

Thomas
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

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 on the first 
> page of a chapter (article).
> 
> Which approach would you suggest?
> In my experience, it’s hard to find the right place for \setupheader(texts) 
> so that it affects the right page(s).

I tried something like:

\def\SetPart{%
  \setlayerframed[background]%
  [y=10mm,x=20mm,]%
  {\getmarking[part]}
}
\setuphead[chapter][after={\SetPart}]

But I always get the name of the previous part. :(


Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

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. I guess when my file say named, as you put it, publ-imp-otared.mkvi, is 
finished, I have to put it in my personal directory 
texmf/tex/context
where ConTeXt would find it.

Regarding my question about extracting a file with the used references, Alan 
explained it to me: it is enough to say
\savebtxdataset[usedreferences.bib]
and then ConTeXt creates the file usedreferences.bib. Including the content of 
that file in the source of the main document into a buffer, then allows me to 
have a single file with the references in it. So this also has been solved by 
Alan and Hans and is waiting there!

Regarding the setups for cite, I did not see where I should put the modified 
block
\startsetups btx:cite:XXX

\stopsetups
As of now it doesn't seem necessary to modify anything for \cite: maybe this 
can be done later on if necessary.

Best regards: OK




> On 20 Feb 2018, at 10:52, Thomas A. Schmitz  
> wrote:
> 
> 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 found that it is easier to define my own styles rather than modify the 
> existing ones. So what you want to do:
> 
> 1. you define your own style, let’s call it otared. So in your main tex file, 
> you would have this line:
> 
> \usebtxdefinitions [otared]
> 
> This means you have to create two files, one for the lua definitions, one for 
> tex. 
> 
> 2. For the lua file, just take publ-imp-apa.lua and cpy it as 
> publ-imp-otared.lua. Chances are you won’t have to make any changes right 
> away. The content is pretty straightforward lua code.
> 
> 3. The tex file publ-imp-otared.mkvi will then contain your definitions in a 
> block 
> 
> \startbtxrenderingdefinitions[otared]
> 
> ...
> 
> \stopbtxrenderingdefinitions
> 
> You define two different sets of definitions: one for the citations in the 
> text (in the form \startsetups btx:cite:XXX), one for the list of references 
> (in the form \startsetups btx:list:XXX). Here you can make all the formatting 
> you want: article name in red, author name for articles in small caps, 
> journal name in 3D, whatever. Again, just look at publ-imp-apa.mkvi and try 
> to understand how it works; it’s not that difficult.
> 
>> The second question is: how can one write a file containing only the 
>> references which are used in a document, so that that file can be in some 
>> way included into the main document (this is somewhat analogous to the .bbl 
>> file created by BibTeX, which allows to include a series of \bibitem into an 
>> article written with LaTeX: this is necessary to do when one submits a paper 
>> to a mathematical journal).
>> 
>> Thanks again for your help: OK
> 
> The list of references is included in the .tuc file that a context run 
> produces. If you need to massage it into any other form, 5 minutes of lua 
> coding can extract the salient information for you.
> 
> HTH
> 
> Thomas
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

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 font you use has the character

Many thanks for your reply, Hans.

The chars are there:

\setuptype[option=tex]
\starttext
\startTEXpage[offset=1em]
\type{\ ␣ \ á \ ñ}

% \type{\␣ \á \ñ}

{\ttbf \letterbackslash ␣ \letterbackslash á
   \letterbackslash ñ}
\stopTEXpage
\stoptext

The problem is that the \type command and the typing start-stop break
when the backslash is followed by a non ASCII character. The commented
line shows the issue.

I’m afraid it might be a bug.

Many thanks for your help,

Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

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

\dorecurse{3}
  {\expanded{\part{Rubrik \recurselevel}}
   \dorecurse{5}
 {\expanded{\chapter{Kapitel \recurselevel}}
  \dorecurse{10}{\input{lorem}\par}}}

\stoptext

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

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 something?

are you sure that the font you use has the character


Many thanks for your reply, Hans.

The chars are there:

 \setuptype[option=tex]
 \starttext
 \startTEXpage[offset=1em]
 \type{\ ␣ \ á \ ñ}

 % \type{\␣ \á \ñ}

 {\ttbf \letterbackslash ␣ \letterbackslash á
\letterbackslash ñ}
 \stopTEXpage
 \stoptext

The problem is that the \type command and the typing start-stop break
when the backslash is followed by a non ASCII character. The commented
line shows the issue.

I’m afraid it might be a bug.


local name = P("\\") * (patterns.utf8char + S("@!?_"))^1



Many thanks for your help,

Pablo




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

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 :

> \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 like:
>> 
>> \def\SetPart{%
>> \setlayerframed[background]%
>> [y=10mm,x=20mm,]%
>> {\getmarking[part]}
>> }
>> \setuphead[chapter][after={\SetPart}]
>> 
>> But I always get the name of the previous part. :(
>> 
>> 
>> Greetlings, Hraban
>> ---
>> http://www.fiee.net
>> http://wiki.contextgarden.net
>> GPG Key ID 1C9B22FD
>> 
>> ___
>> If your question is of interest to others as well, please add an entry to 
>> the Wiki!
>> 
>> maillist : ntg-context@ntg.nl / 
>> http://www.ntg.nl/mailman/listinfo/ntg-context
>> webpage : http://www.pragma-ade.nl / http://context.aanhet.net
>> archive : https://bitbucket.org/phg/context-mirror/commits/
>> wiki : http://contextgarden.net
>> ___
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

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 like:

\def\SetPart{%
\setlayerframed[background]%
[y=10mm,x=20mm,]%
{\getmarking[part]}
}
\setuphead[chapter][after={\SetPart}]

But I always get the name of the previous part. :(


Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

___
If your question is of interest to others as well, please add an entry 
to the Wiki!


maillist : ntg-context@ntg.nl / 
http://www.ntg.nl/mailman/listinfo/ntg-context

webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

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 file publ-imp-default.mkvi in my test 
file. I guess when my file say named, as you put it, publ-imp-otared.mkvi, is 
finished, I have to put it in my personal directory
texmf/tex/context


in

texmf-local/tex/context/user

or

texmf-project/tex/context/user

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

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
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

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 comments themselves.

Something like that would be needed:

local name = P("\\") * (patterns.utf8character - S("
\t\f\v\n\r.,;'\"=+-"))^1

I hope it might help,

Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

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 
19. Februar 2018 um 22:05

ok, so there we need to use \noindentation then



There is still a empty line when parskip is zero.


\setuplayout
  [backspace=2in,
   width=middle]

\setuphead
  [section]
  [alternative=margintext,
   style=]

%\setupwhitespace[line]

\showframe[text][leftmargin,text]

\starttext

\section{Lorem ipsum dolor sit amet \unknown}
\input lorem

\stoptext


Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

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 + patterns.utf8four)^1

Sorry for taking too much to realize this,

Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

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?

Since I must complete that damned layout tonight, I’ll resolve to setting the 
rubric manually. :(

Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

Am 2018-02-20 um 17:56 schrieb 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
> 
> \dorecurse{3}
>   {\expanded{\part{Rubrik \recurselevel}}
>\dorecurse{5}
>  {\expanded{\chapter{Kapitel \recurselevel}}
>   \dorecurse{10}{\input{lorem}\par}}}
> 
> \stoptext
> 
> Wolfgang
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___