Since I spent the better part of two days puzzling over this simple task I thought I would share. The American style for running heads for non-fiction books is to have the current chapter on the left (verso) page and the current section on the right (recto) page. The text for each is near the spine and the page number near the outside edge. The layout must be set doublesided in context. Two commands are pertinent: \setupheader[leftstyle=bold,rightstyle=bold] \setupheadertexts[text][section][pagenumber][pagenumber][chapter] On the actual page spread the chapter title wll be on the laft of the spread and the section title on the right. But the \setupheadertexts command has them reversed. The recto gets described first and then the verso. The manual describes them otherwise. left then right, but it is really right, then left. Also the location parameter (first bracket pair) is mandatory for this kind of header setup. And just putting [] won't work. You have to specify a location. Now old hands will have memorized all these peculiarities long ago. I write this for beginners at the context game, like me. -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: "Create Book Covers with Scribus" available at http://www.booklocker.com/books/4055.html
Hi John,
Perhaps http://wiki.contextgarden.net/Command/setupheadertexts will be of
some help? Though, the wiki page does not list the [text] argument in your
second command. I'm not sure that ConTeXt sees recto and verso, as the wiki
page talks of even and odd pages.
HTH,
Mica
On Fri, Apr 5, 2013 at 3:16 PM, john Culleton
Since I spent the better part of two days puzzling over this simple task I thought I would share. The American style for running heads for non-fiction books is to have the current chapter on the left (verso) page and the current section on the right (recto) page. The text for each is near the spine and the page number near the outside edge. The layout must be set doublesided in context. Two commands are pertinent:
\setupheader[leftstyle=bold,rightstyle=bold] \setupheadertexts[text][section][pagenumber][pagenumber][chapter]
On the actual page spread the chapter title wll be on the laft of the spread and the section title on the right. But the \setupheadertexts command has them reversed. The recto gets described first and then the verso. The manual describes them otherwise. left then right, but it is really right, then left. Also the location parameter (first bracket pair) is mandatory for this kind of header setup. And just putting [] won't work. You have to specify a location.
Now old hands will have memorized all these peculiarities long ago. I write this for beginners at the context game, like me.
-- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: "Create Book Covers with Scribus" available at http://www.booklocker.com/books/4055.html
___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net
___________________________________________________________________________________
On 4/6/2013 12:41 AM, Mica Semrick wrote:
Hi John,
Perhaps http://wiki.contextgarden.net/Command/setupheadertexts will be of some help? Though, the wiki page does not list the [text] argument in your second command. I'm not sure that ConTeXt sees recto and verso, as the wiki page talks of even and odd pages.
just try all combinations: % \setuppagenumbering[alternative=singlesided] \setuppagenumbering[alternative=doublesided] % \setuppagenumbering[alternative={singlesided,doublesided}] \setupheadertexts[a][b] % \setupheadertexts[a][b][c][d] \showframe \starttext \dorecurse{100}{test \page} \stoptext ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On Fri, 5 Apr 2013 15:41:46 -0700
Mica Semrick
Hi John,
Perhaps http://wiki.contextgarden.net/Command/setupheadertexts will be of some help? Though, the wiki page does not list the [text] argument in your second command. I'm not sure that ConTeXt sees recto and verso, as the wiki page talks of even and odd pages.
HTH, Mica
For a properly paginated book: Left=even=verso Right=odd=recto Looking at a two page spread the even page is on the left and the odd page is on the right. The command however lists the odd page parameters first, then the even page parameters. The manual does not make this clear. The wiki does. Thanks for that reference. With respect to the first parameter, location, I could not make the command work properly unless the first parameter was [text] followed by the other four. Perhaps this was a peculiarity with my particular file. Now for some reason it works without [text]. Perhaps Hans waved a magic wand? Thanks for your input. When I was searching wiki I could not find the wiki passage you noted. I did not enter "Command" first.
On 4/8/2013 8:46 PM, john Culleton wrote:
With respect to the first parameter, location, I could not make the command work properly unless the first parameter was [text] followed by the other four. Perhaps this was a peculiarity with my particular file. Now for some reason it works without [text]. Perhaps Hans waved a magic wand?
that code is rather old and stable (also, it would get noticed immediately if something was messed up with those areas) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Hi John,
My logic in thinking about this says odd=right=page 1 = list it first in
the command. Anyway. I've been using ConTeXt for a couple of years and have
found that the manuals usually lag behind the wiki. I gather most of my
needed context info from this mailing list and the wiki. I will check out a
manual and print pages that I think I'll need (or bookmark them or
what-have-you), but rarely is the PDF manual the first place I look
anymore.
You can certainly navigate all the known commands in the wiki using the
taxonomy, but I find it much more useful just to put the command without
the \ in front of it. So when looking for \setupheadertexts, I enter
setupheadertexts in the search box and it returned the page I linked to.
ConTeXt generally employs easy-to-remember names for commands, so a keyword
search is helpful also.
Also without fail, this mailing list has some very bright people on it, who
are quick and friendly with answers, no matter your level of use with
ConTeXt.
At any rate, ConTeXt is very able, I hope you enjoy it! I also hope to be
able to offer services like your wexford press sometime in the near future.
The publishing landscape is changing rapidly!
Regards,
Mica
On Mon, Apr 8, 2013 at 12:36 PM, Hans Hagen
On 4/8/2013 8:46 PM, john Culleton wrote:
With respect to the first parameter, location, I could not make the
command work properly unless the first parameter was [text] followed by the other four. Perhaps this was a peculiarity with my particular file. Now for some reason it works without [text]. Perhaps Hans waved a magic wand?
that code is rather old and stable (also, it would get noticed immediately if something was messed up with those areas)
Hans
------------------------------**------------------------------**----- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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 http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/**projects/contextrev/http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ______________________________**______________________________** _______________________
participants (3)
-
Hans Hagen
-
john Culleton
-
Mica Semrick