two suggestions for \setuphead
Hans, here is my minimal sample: \showframe \starttext \setuphead[section][alternative=margin] \section{This is a title} \stoptext After having to adapt a special page design for a friend, I realized that reverse would be an even greater value for the alternative option in \setuphead when it could be combined with margin, inmargin and margintext. This may be reached with a special command, but avoiding a extra hack would be very helpful for newbies. Another issue with margin numbering is alignment: \showframe \starttext \setuphead[section][alternative=margin, align=center] \section{This is a title} \stoptext 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? Many thanks for your help, Pablo -- http://www.ousia.tk
On 3/15/2017 8:59 PM, Pablo Rodriguez wrote:
Hans,
here is my minimal sample:
\showframe \starttext \setuphead[section][alternative=margin] \section{This is a title} \stoptext
After having to adapt a special page design for a friend, I realized that reverse would be an even greater value for the alternative option in \setuphead when it could be combined with margin, inmargin and margintext.
This may be reached with a special command, but avoiding a extra hack would be very helpful for newbies.
Another issue with margin numbering is alignment:
\showframe \starttext \setuphead[section][alternative=margin, align=center] \section{This is a title} \stoptext
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 ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
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? Many thanks for your help, Pablo -- http://www.ousia.tk
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 -----------------------------------------------------------------
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
Pablo Rodriguez mailto:oinos@gmx.es 26. März 2017 um 22:09via Postbox https://www.postbox-inc.com/?utm_source=email&utm_medium=sumlink&utm_campaign=reach
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
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
On 03/26/2017 10:20 PM, Wolfgang Schuster wrote:
Pablo Rodriguez schrieb am 26. März 2017 um 22:09: [...] 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]
On a second thought, I wonder why width in \setupmargindata hasn’t its default value to \leftmarginwidth or \rightmarginwidth depending on the chosen location value for the same \setupmargindata. Is there any reason not to have this default value? Many thanks for your help, Pablo -- http://www.ousia.tk
On 3/27/2017 3:57 PM, Pablo Rodriguez wrote:
On 03/26/2017 10:20 PM, Wolfgang Schuster wrote:
Pablo Rodriguez schrieb am 26. März 2017 um 22:09: [...] 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]
On a second thought, I wonder why width in \setupmargindata hasn’t its default value to \leftmarginwidth or \rightmarginwidth depending on the chosen location value for the same \setupmargindata.
Is there any reason not to have this default value?
it has always been the case and won't change ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
On 03/27/2017 05:22 PM, Hans Hagen wrote:
On 3/27/2017 3:57 PM, Pablo Rodriguez wrote:
[...] On a second thought, I wonder why width in \setupmargindata hasn’t its default value to \leftmarginwidth or \rightmarginwidth depending on the chosen location value for the same \setupmargindata.
Is there any reason not to have this default value?
it has always been the case and won't change
Sorry, I was trying to understand why width has no default value in margin data. Pablo -- http://www.ousia.tk
On 3/27/2017 8:00 PM, Pablo Rodriguez wrote:
On 03/27/2017 05:22 PM, Hans Hagen wrote:
On 3/27/2017 3:57 PM, Pablo Rodriguez wrote:
[...] On a second thought, I wonder why width in \setupmargindata hasn’t its default value to \leftmarginwidth or \rightmarginwidth depending on the chosen location value for the same \setupmargindata.
Is there any reason not to have this default value?
it has always been the case and won't change
Sorry, I was trying to understand why width has no default value in margin data.
because there was no need, as it anchors at the side of the text ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
On 03/27/2017 09:29 PM, Hans Hagen wrote:
On 3/27/2017 8:00 PM, Pablo Rodriguez wrote:
Sorry, I was trying to understand why width has no default value in margin data.
because there was no need, as it anchors at the side of the text
Sorry again, but I must be missing something extremely basic. One of the results of no value for width in margin data is a tricky approach to its alignment. But since I seem to be the only one interested in aligning margin data, I guess this is perfectly fine. Many thanks for your help, Pablo -- http://www.ousia.tk
On 3/27/2017 9:49 PM, Pablo Rodriguez wrote:
On 03/27/2017 09:29 PM, Hans Hagen wrote:
On 3/27/2017 8:00 PM, Pablo Rodriguez wrote:
Sorry, I was trying to understand why width has no default value in margin data.
because there was no need, as it anchors at the side of the text
Sorry again, but I must be missing something extremely basic.
One of the results of no value for width in margin data is a tricky approach to its alignment.
But since I seem to be the only one interested in aligning margin data, I guess this is perfectly fine.
Margindata is a general thing, it can be any margin or edge when you define an instance so you don't know what width is meant. Of course you can have a parent with some width. Also, margindata can be stacked next to another one which again can mean a different width. Having no width set is better than having the wrong one set. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
On 03/27/2017 10:15 PM, Hans Hagen wrote:
On 3/27/2017 9:49 PM, Pablo Rodriguez wrote:
[...] One of the results of no value for width in margin data is a tricky approach to its alignment.
But since I seem to be the only one interested in aligning margin data, I guess this is perfectly fine.
Margindata is a general thing, it can be any margin or edge when you define an instance so you don't know what width is meant. Of course you can have a parent with some width. Also, margindata can be stacked next to another one which again can mean a different width. Having no width set is better than having the wrong one set.
I understand now why width in margin data shouldn’t be set to a default. Many thanks for the reply, Pablo -- http://www.ousia.tk
participants (3)
-
Hans Hagen
-
Pablo Rodriguez
-
Wolfgang Schuster