* set headings in the margins
@ 2007-10-09 20:55 Aric Bills
2007-10-10 10:39 ` Wolfgang Schuster
0 siblings, 1 reply; 4+ messages in thread
From: Aric Bills @ 2007-10-09 20:55 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 138 bytes --]
Thanks Wolfgang--your solution does just what I needed. I'll study it.
Best regards,
Aric
(Apologies if I've sent my reply improperly)
[-- Attachment #1.2: Type: text/html, Size: 175 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* set headings in the margins
@ 2007-10-09 9:20 Aric Bills
2007-10-09 15:01 ` Wolfgang Schuster
0 siblings, 1 reply; 4+ messages in thread
From: Aric Bills @ 2007-10-09 9:20 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 1417 bytes --]
Hello all,
I'm a total newbie Context user trying to do something that is apparently
way beyond me. I'm trying to set up a conceptual three-column design grid.
The idea was to use the two columns on the right for body text, the column
on the left for margin paragraphs, and the full three-column spread for
headings. The easiest way I could find to set such a thing up was this:
\setuplayout[backspace=3.083in,
leftmargin=2.083in,
leftmargindistance=.25in,
width=4.417in,
rightmargin=1in]
where "leftmargin" represents the leftmost column and "width" represents the
other two columns (plus gutter). So far so good.
To get my heading to stretch across all three conceptual columns, I thought
I'd use something along the lines of:
\start
\startlocal
\setuplayout[...]
\stoplocal
\section{This heading was supposed to start at the left edge of the left
margin and wrap at the right edge of the text area}
\stop
where [...] would eliminate the left margin and margindistance and
re-allocate that space to the text width.
However, I haven't yet found any [...] that does the trick.
Whether my approach is basically right or totally wrong, I'd love to get
guidance on the best way to typeset a heading across both the margin and the
text area. I'm aware that it's trivial to make section numbers appear in
the margin; this is not the solution I'm looking for, though.
Thanks for your help,
Aric
[-- Attachment #1.2: Type: text/html, Size: 1651 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: set headings in the margins
2007-10-09 9:20 Aric Bills
@ 2007-10-09 15:01 ` Wolfgang Schuster
0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2007-10-09 15:01 UTC (permalink / raw)
To: mailing list for ConTeXt users
2007/10/9, Aric Bills <aric.bills@gmail.com>:
> Hello all,
>
> I'm a total newbie Context user trying to do something that is apparently
> way beyond me. I'm trying to set up a conceptual three-column design grid.
> The idea was to use the two columns on the right for body text, the column
> on the left for margin paragraphs, and the full three-column spread for
> headings. The easiest way I could find to set such a thing up was this:
>
> \setuplayout[backspace=3.083in,
> leftmargin=2.083in,
> leftmargindistance=.25in,
> width=4.417in,
> rightmargin=1in]
>
> where "leftmargin" represents the leftmost column and "width" represents the
> other two columns (plus gutter). So far so good.
>
> To get my heading to stretch across all three conceptual columns, I thought
> I'd use something along the lines of:
>
> \start
> \startlocal
> \setuplayout[...]
> \stoplocal
> \section{This heading was supposed to start at the left edge of the left
> margin and wrap at the right edge of the text area}
> \stop
>
> where [...] would eliminate the left margin and margindistance and
> re-allocate that space to the text width.
> However, I haven't yet found any [...] that does the trick.
>
> Whether my approach is basically right or totally wrong, I'd love to get
> guidance on the best way to typeset a heading across both the margin and the
> text area. I'm aware that it's trivial to make section numbers appear in
> the margin; this is not the solution I'm looking for, though.
>
> Thanks for your help,
> Aric
Hi Aric,
you can start with my solution, sorry but I have at the moment no time
for a better one.
\setuplayout[backspace=6cm,width=fit]
\def\myheader#1#2%
{\hbox to\makeupwidth
{\hss\hbox
to\dimexpr\leftmarginwidth+\leftmargindistance+\makeupwidth\relax
{\vbox{\hsize=\dimexpr\leftmarginwidth+\leftmargindistance+\makeupwidth\relax#1#2}}}}
\setuphead[section][command=\myheader]
\starttext
\dorecurse{5}
{\section{\dorecurse{100}{text }}
\dorecurse{5}{\input knuth\par}}
\stoptext
___________________________________________________________________________________
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://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-10-10 10:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-09 20:55 set headings in the margins Aric Bills
2007-10-10 10:39 ` Wolfgang Schuster
-- strict thread matches above, loose matches on Subject: below --
2007-10-09 9:20 Aric Bills
2007-10-09 15:01 ` Wolfgang Schuster
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).