From: "Alan Stone" <software.list.1es9s@gmail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: goto(box) and setuplist questions
Date: Mon, 4 Aug 2008 22:57:52 +0200 [thread overview]
Message-ID: <326847810808041357j648cc977ld2386514e8ef9bc7@mail.gmail.com> (raw)
In-Reply-To: <115224fb0808040752m12a36676vc8b57c92ff889c69@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 2314 bytes --]
I'm looking to have in the menu...
- chapter title centered
- section title left aligned
- for long chapter/section titles split over more than 1line,
vertical space between these chapter/section lines to be
smaller
- left and right margin of (x)pt
\setuppapersize[S6][S6]
\setupbodyfont[14.4pt]
%\showframe
\setuppagenumbering[alternative=singlesided]
\setuplayout
[width=360pt,
headerheight=7pt,
footerheight=7pt,
margin=0pt,
backspace=25pt,
topheight=7pt,
bottomheight=7pt,
rightedgedistance=20pt,
rightedge=180pt]
\setuplist[chapter,section][
criterium=all,
aligntitle=yes,
interaction=all]
\setuphead[chapter][number=yes]
\setuphead[section][number=no]
\setupbackgrounds[text][rightedge][frame=on]
\setupinteraction[
state=start,
menu=on,
page=yes]
\setupnarrower[left=1pt,right=1pt]
%\setupnarrower[left=5pt,right=5pt]
\defineinteractionmenu[myMenu][right]
\startinteractionmenu[myMenu]
\placecontent[
criterium=all,
alternative=b,
% distance=2pt, % no effect
style=\tfx, % \tfxx is too
small to read
% offset=5pt, % no effect
% margin=5pt, % only sets left
margin
% width=.9\rightedgewidth, % chapter title gets whacked
out of rightedge
% maxwidth=.9\rightedgewidth, % no effect
interaction=all,
before=\startnarrower, % sets a default left and
right margin, i.e. independent
after=\stopnarrower] % of left/right setting
% before=,
% after=]
\stopinteractionmenu
\setupinteractionmenu[myMenu][state=start]
\setupinteractionmenu[right][
% offset=5pt, % no effect
% width=.9\rightedgewidth, % no effect
% maxwidth=.9\rightedgewidth, % no effect
% before=\startnarrower, % no effect
% after=\stopnarrower, % no effect
distance=overlay]
\starttext
\chapter{This Long Chapter Title}
\section{This Long Section Title A}
\input knuth
\section{This Long Section Title B}
\input zapf
\stoptext
[-- Attachment #1.2: Type: text/html, Size: 4993 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
___________________________________________________________________________________
next prev parent reply other threads:[~2008-08-04 20:57 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-04 11:06 Alan Stone
2008-08-04 12:23 ` Hans Hagen
2008-08-04 14:44 ` Alan Stone
2008-08-04 14:52 ` Wolfgang Schuster
2008-08-04 20:57 ` Alan Stone [this message]
2008-08-05 8:29 ` Wolfgang Schuster
2008-08-05 11:07 ` Alan Stone
2008-08-05 11:16 ` Wolfgang Schuster
2008-08-06 7:12 ` Alan Stone
2008-08-06 8:45 ` Wolfgang Schuster
2008-08-06 10:16 ` Alan Stone
2008-08-06 13:26 ` Wolfgang Schuster
2008-08-06 14:15 ` Alan Stone
2008-08-06 14:59 ` Wolfgang Schuster
2008-08-06 16:07 ` Alan Stone
2008-08-06 18:45 ` Alan Stone
2008-08-07 6:26 ` Wolfgang Schuster
2008-08-07 7:48 ` Wolfgang Schuster
2008-08-07 6:24 ` Wolfgang Schuster
2008-08-06 15:03 ` Wolfgang Schuster
2008-08-06 15:13 ` Alan Stone
2008-08-06 10:25 ` Alan Stone
2008-08-06 11:03 ` Wolfgang Schuster
2008-08-06 12:09 ` Alan Stone
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=326847810808041357j648cc977ld2386514e8ef9bc7@mail.gmail.com \
--to=software.list.1es9s@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).