* marginal heads as standard option?
@ 2016-10-25 19:06 Pablo Rodriguez
2016-10-26 11:50 ` Hans Hagen
0 siblings, 1 reply; 3+ messages in thread
From: Pablo Rodriguez @ 2016-10-25 19:06 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hans,
I have the following sample:
\setuphead[section][alternative=margin]
\starttext
\section{afeasdf}
\input knuth
\section{afeasfdf}
\input zapf
\stoptext
Would it be possible to have value to the "alternative" key that
automatically places the head on the margin? I mean, not only the
number, but the whole title.
Probably this option should allow the user to set head in the inner,
outer, left and right margins.
I know that it should be possible with an extra command, but consider
that "reverse" is also a value for the "alternative",
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: marginal heads as standard option?
2016-10-25 19:06 marginal heads as standard option? Pablo Rodriguez
@ 2016-10-26 11:50 ` Hans Hagen
2016-10-26 19:57 ` Pablo Rodriguez
0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2016-10-26 11:50 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 10/25/2016 9:06 PM, Pablo Rodriguez wrote:
> Hans,
>
> I have the following sample:
>
> \setuphead[section][alternative=margin]
> \starttext
> \section{afeasdf}
> \input knuth
>
> \section{afeasfdf}
> \input zapf
> \stoptext
>
> Would it be possible to have value to the "alternative" key that
> automatically places the head on the margin? I mean, not only the
> number, but the whole title.
>
> Probably this option should allow the user to set head in the inner,
> outer, left and right margins.
>
> I know that it should be possible with an extra command, but consider
> that "reverse" is also a value for the "alternative",
>
> Many thanks for your help,
I'll add something
% \definemargindata
% [margintext:chapter]
% [margintext:section]
% \defineheadalternative
% [margintext:chapter]
% [margintext]
% [margintext=margintext:chapter]
% \setuphead
% [chapter]
% [alternative=margintext:chapter]
\setuphead
[chapter]
[alternative=margintext]
that uses the margindata margintext:section but no special rendering
options because demands can differ
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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-10-26 19:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-25 19:06 marginal heads as standard option? Pablo Rodriguez
2016-10-26 11:50 ` Hans Hagen
2016-10-26 19:57 ` Pablo Rodriguez
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).