Re: [NTG-context] two suggestions for \setuphead

2017-03-26 Thread Pablo Rodriguez
On 03/26/2017 10:20 PM, Wolfgang Schuster wrote:
>> Pablo Rodriguez schrieb am 26. März 2017 um 22:09:
>> [...]
>> \definemargindata[outerhead][outer]
>> \setupmargindata[outerhead][align=center]
>
> \setupmargindata[outerhead][align=center,width=\rightmarginwidth]

Many thanks for your help, Wolfgang.

I didn’t know that width had to be specified.

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] two suggestions for \setuphead

2017-03-26 Thread Wolfgang Schuster



Pablo Rodriguez 
26. März 2017 um 22:09via Postbox 



Many thanks for the implementation, Hans.

I’m afraid that I found an issue. Alignment in margindata doesn’t work:

\showframe

\definemargindata[outerhead][outer]
\setupmargindata[outerhead][align=center]

\setupmargindata[outerhead][align=center,width=\rightmarginwidth]

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] two suggestions for \setuphead

2017-03-26 Thread Pablo Rodriguez
On 03/26/2017 04:11 PM, Hans Hagen wrote:
> On 3/23/2017 8:45 PM, Pablo Rodriguez wrote:
>> [...]
>> Would it be possible to implement both proposals in ConTeXt?
> 
> i'll add this (should cover both)

Many thanks for the implementation, Hans.

I’m afraid that I found an issue. Alignment in margindata doesn’t work:

\showframe

\definemargindata[outerhead][outer]
\setupmargindata[outerhead][align=center]

\setuppagenumbering
   [alternative=doublesided]

\setuphead
   [section]
   [alternative=inmargin,
align=center,
location=outerhead]

\starttext
 \dorecurse{5}{\section{Section title}}
\stoptext

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] two suggestions for \setuphead

2017-03-26 Thread Hans Hagen

On 3/23/2017 8:45 PM, Pablo Rodriguez wrote:

On 03/22/2017 10:13 PM, Hans Hagen wrote:

On 3/15/2017 8:59 PM, Pablo Rodriguez wrote:

[...]
Would it be possible in this case to set both numberalign and textalign?
(If no margin or inmargin alternative is selected and both numberalign
and textalign are specified, textalign should have preference)

I think those two suggestions would provide extra features for headings.

How about implementing both in ConTeXt?


i have no clue what you mean


Sorry for not being clear, Hans. I have two different proposals.

The first one is about aligning titles and numbers (separately):

\showframe
%~ \setuphead[section][alternative=inmargin, align=center]
\setuphead[section][alternative=inmargin]
\setuphead[subsection][alternative=margin]
\setuppagenumbering[alternative=doublesided]
\starttext
\dorecurse{5}{\section{Section title}
\dorecurse{5}{\subsection{Subsection title}}}
\stoptext

Using align, the margin or inmargin alternative doesn’t work. (And align
doesn’t work with the margintext alternative.)

Wouldn’t it be possible to set up both alignments, for numbers in margin
and for title inside margins?

My second proposal is to be able to specify which margin (inner, outer,
left or right) is used for both margin/inmargin and margintext
alternatives in \setuphead.

I mean, either I’m missing something, or the alternatives
margin/inmargin and margintext are set to the left margin. It seems to
be no other option.

Would it be possible to implement both proposals in ConTeXt?


i'll add this (should cover both)

\showframe

\definemargindata[outerhead][outer]

\setuppagenumbering
  [alternative=doublesided]

\setuphead
  [section]
  [alternative=inmargin,
   align=center,
   location=outerhead]

\setuphead
  [subsection]
  [alternative=inmargin,
   align=center,
   location=inner]

\starttext
\dorecurse {5} {
\section{Section title}
\dorecurse{5} {
\subsection{Subsection title}
}
}
\stoptext



-
  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
___