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