ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Rudolf Bahr <quasi@quasi.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: \startnarrower[left, right] \completecontent[pageboundaries={0.1.1.5}] \stopnarrower
Date: Wed, 22 Jan 2014 12:05:33 +0100	[thread overview]
Message-ID: <20140122110533.GA11827@mini> (raw)

[-- Attachment #1: Type: text/plain, Size: 3213 bytes --]


Hello listmembers,

ConTeXt  ver: 2013.05.28 00:36 MKIV current  fmt: 2014.1.6

I'm typesetting a book in A4 landscape and would like to indent the TOC
at both sides. I tried two solutions which both didn't work as expected.

1. attempt with "\startnarrower[left,right] \completecontent[pageboundaries={0.1.1.5}] \stopnarrower":
   The output of the following minimalistic example is partly attached as .pdf file. I shortened there
   the textheight to 80mm.
   a.) I would expect the TOC to be midaligned. But it isn't. It is leftaligned.
   b.) I would expect the TOC stopped after the 5th subsection row at page bottom and to be
       continued at the next page due to "[pageboundaries={0.1.1.5}]". But it isn't.

2. attempt with "\line{\hfill\vbox{\hsize=.75\hsize\completecontent[pageboundaries={0.1.1.5}]}\hfill}",
   outcommented in the following example. The TOC is really indented at both sides, but
   it doesn't stop at all at page bottom.

Something must be wrong here. But what?

Regards,

Rudolf Bahr

----------------------------------------------------------------------------------------------------->8
\setuppapersize[A4,landscape]
\setuplayout[backspace=27.5mm,topspace=20mm,height=80mm,width=242mm,footer=5mm,header=8mm,margin=18mm]

\setuplayout [location=middle, marking=on, margindistance=3mm]

\setuppagenumbering[alternative=singlesided,
                    location={footer, margin},
                    style=bold,
                    command=\midaligned]
\setupheader[text][after=\hrule]

\setupbodyfont[default]

\definebodyfontswitch [xvii] [17.3pt]
\definebodyfontswitch [xiv]  [14.4pt]
\definebodyfontswitch [xii]  [12pt]

\setupheadtext[content=\rm\xvii\bf Inhaltsverzeichnis]
\definelist[chapter]
\setuplist[chapter]   [style=\rm\xvii\bf, pagenumber=no]

\definelist[section]
\setuplist[section]   [margin=1.5em, style=\rm\xiv\bf, pagenumber=no]

\definelist[subsection]
\setuplist[subsection][margin=3.0em, style=\rm\xii, alternative=c]

\setuphead[chapter]   [header=empty, style=\rm\xvii\bf, number=no, align=middle, textstyle=\rm\xvii\bf]
\setuphead[section]   [header=empty, style=\rm\xiv\bf,  number=no, align=middle]
\setuphead[subsection][header=empty, style=\rm\xii\bf,  number=no. align=middle]

\showframe

\setupnarrower[left=.125\hsize,right=.125\hsize]                                         % <---------------------

\starttext

%\line{\hfill\vbox{\hsize=.75\hsize\completecontent[pageboundaries={0.1.1.5}]}\hfill}
\startnarrower[left,right] \completecontent[pageboundaries={0.1.1.5}] \stopnarrower      % <---------------------

\chapter{2010}
\section{My Home Is My Castle}

\subsection{A}
        Here we are in subsection A.
\subsection{B}
        Here we are in subsection B.
\subsection{C}
        Here we are in subsection C.
\subsection{D}
        Here we are in subsection D.
\subsection{E}
        Here we are in subsection E.
\subsection{F}
        Here we are in subsection F.
\subsection{G}
        Here we are in subsection G.
\subsection{H}
        Here we are in subsection H.
\subsection{I}
        Here we are in subsection I.

\stoptext
----------------------------------------------------------------------------------------------------->8


[-- Attachment #2: 1_pdfsam_test.pdf --]
[-- Type: application/pdf, Size: 16805 bytes --]

[-- Attachment #3: Type: text/plain, Size: 485 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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

             reply	other threads:[~2014-01-22 11:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-22 11:05 Rudolf Bahr [this message]
2014-01-22 22:20 ` Wolfgang Schuster
2014-01-23 17:56   ` Rudolf Bahr
2014-01-23 18:13   ` Hans Hagen
2014-01-23 21:03     ` Wolfgang Schuster
2014-01-23 21:19       ` Hans Hagen
2014-01-23 21:24         ` Wolfgang Schuster
2014-01-23 21:32           ` Hans Hagen

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=20140122110533.GA11827@mini \
    --to=quasi@quasi.de \
    --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).