ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \startnarrower[left, right] \completecontent[pageboundaries={0.1.1.5}] \stopnarrower
@ 2014-01-22 11:05 Rudolf Bahr
  2014-01-22 22:20 ` Wolfgang Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: Rudolf Bahr @ 2014-01-22 11:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: \startnarrower[left, right] \completecontent[pageboundaries={0.1.1.5}] \stopnarrower
  2014-01-22 11:05 \startnarrower[left, right] \completecontent[pageboundaries={0.1.1.5}] \stopnarrower Rudolf Bahr
@ 2014-01-22 22:20 ` Wolfgang Schuster
  2014-01-23 17:56   ` Rudolf Bahr
  2014-01-23 18:13   ` Hans Hagen
  0 siblings, 2 replies; 8+ messages in thread
From: Wolfgang Schuster @ 2014-01-22 22:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1441 bytes --]


Hi Rudolf,  

what you try doesn’t work because the narrower environment and the list alternative you use try to change the same internal register for the distance from the left margin. What you have to do is to write your own layout for the section entries in the TOC because this way you don’t reset the margins added by \startnarrower.  

Wolfgang


On 22.01.2014 12:05:33, Rudolf Bahr <quasi@quasi.de> wrote:  
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  

[-- Attachment #1.2: Type: text/html, Size: 1741 bytes --]

[-- Attachment #2: 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: \startnarrower[left, right] \completecontent[pageboundaries={0.1.1.5}] \stopnarrower
  2014-01-22 22:20 ` Wolfgang Schuster
@ 2014-01-23 17:56   ` Rudolf Bahr
  2014-01-23 18:13   ` Hans Hagen
  1 sibling, 0 replies; 8+ messages in thread
From: Rudolf Bahr @ 2014-01-23 17:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, Jan 22, 2014 at 11:20:45PM +0100, Wolfgang Schuster wrote:
> 
> Hi Rudolf,  
> 
> what you try doesn’t work because the narrower environment and the list alternative you use try to change the same internal register for the distance from the left margin. What you have to do is to write your own layout for the section entries in the TOC because this way you don’t reset the margins added by \startnarrower.  
> 
> Wolfgang
> 

Hello Wolfgang,

ok, I shall look for a workaround. Thank you for your explanation!

Rudolf

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: \startnarrower[left, right] \completecontent[pageboundaries={0.1.1.5}] \stopnarrower
  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
  1 sibling, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2014-01-23 18:13 UTC (permalink / raw)
  To: ntg-context

On 1/22/2014 11:20 PM, Wolfgang Schuster wrote:
>
> Hi Rudolf,
>
> what you try doesn’t work because the narrower environment and the list
> alternative you use try to change the same internal register for the
> distance from the left margin. What you have to do is to write your own
> layout for the section entries in the TOC because this way you don’t
> reset the margins added by \startnarrower.
>
> Wolfgang
>
>

we can do this:

\startsetups[\??listrenderings:abc]
     \endgraf % are we grouped?
     \advance\leftskip\listparameter\c!margin % after \endgraf !

but it needs testing

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
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: \startnarrower[left, right] \completecontent[pageboundaries={0.1.1.5}] \stopnarrower
  2014-01-23 18:13   ` Hans Hagen
@ 2014-01-23 21:03     ` Wolfgang Schuster
  2014-01-23 21:19       ` Hans Hagen
  0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2014-01-23 21:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 358 bytes --]

2014/1/23 Hans Hagen <pragma@wxs.nl>

>
> we can do this:
>
> \startsetups[\??listrenderings:abc]
>     \endgraf % are we grouped?
>     \advance\leftskip\listparameter\c!margin % after \endgraf !
>
> but it needs testing
>


I don’t think this is an option because it will change the layout of the
TOC in many existing documents.

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 785 bytes --]

[-- Attachment #2: 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: \startnarrower[left, right] \completecontent[pageboundaries={0.1.1.5}] \stopnarrower
  2014-01-23 21:03     ` Wolfgang Schuster
@ 2014-01-23 21:19       ` Hans Hagen
  2014-01-23 21:24         ` Wolfgang Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2014-01-23 21:19 UTC (permalink / raw)
  To: ntg-context

On 1/23/2014 10:03 PM, Wolfgang Schuster wrote:
> 2014/1/23 Hans Hagen <pragma@wxs.nl <mailto:pragma@wxs.nl>>
>
>
>     we can do this:
>
>     \startsetups[\??__listrenderings:abc]
>          \endgraf % are we grouped?
>          \advance\leftskip\__listparameter\c!margin % after \endgraf !
>
>     but it needs testing
>
>
> I don’t think this is an option because it will change the layout of the
> TOC in many existing documents.

i wonder how many people have narrower around it ...

-----------------------------------------------------------------
                                           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
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: \startnarrower[left, right] \completecontent[pageboundaries={0.1.1.5}] \stopnarrower
  2014-01-23 21:19       ` Hans Hagen
@ 2014-01-23 21:24         ` Wolfgang Schuster
  2014-01-23 21:32           ` Hans Hagen
  0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2014-01-23 21:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 754 bytes --]

2014/1/23 Hans Hagen <pragma@wxs.nl>

> On 1/23/2014 10:03 PM, Wolfgang Schuster wrote:
>
>> 2014/1/23 Hans Hagen <pragma@wxs.nl <mailto:pragma@wxs.nl>>
>>
>>
>>     we can do this:
>>
>>     \startsetups[\??__listrenderings:abc]
>>
>>          \endgraf % are we grouped?
>>          \advance\leftskip\__listparameter\c!margin % after \endgraf !
>>
>>
>>     but it needs testing
>>
>>
>> I don’t think this is an option because it will change the layout of the
>> TOC in many existing documents.
>>
>
> i wonder how many people have narrower around it ...
>


The layout will also change when you have chapter, sections etc. with
alternative a–c
because each new entry in the list will increase the left margin.

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 1534 bytes --]

[-- Attachment #2: 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: \startnarrower[left, right] \completecontent[pageboundaries={0.1.1.5}] \stopnarrower
  2014-01-23 21:24         ` Wolfgang Schuster
@ 2014-01-23 21:32           ` Hans Hagen
  0 siblings, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2014-01-23 21:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 1/23/2014 10:24 PM, Wolfgang Schuster wrote:
> 2014/1/23 Hans Hagen <pragma@wxs.nl <mailto:pragma@wxs.nl>>
>
>     On 1/23/2014 10:03 PM, Wolfgang Schuster wrote:
>
>         2014/1/23 Hans Hagen <pragma@wxs.nl <mailto:pragma@wxs.nl>
>         <mailto:pragma@wxs.nl <mailto:pragma@wxs.nl>>>
>
>
>              we can do this:
>
>              \startsetups[\??____listrenderings:abc]
>
>                   \endgraf % are we grouped?
>                   \advance\leftskip\____listparameter\c!margin % after
>         \endgraf !
>
>
>              but it needs testing
>
>
>         I don’t think this is an option because it will change the
>         layout of the
>         TOC in many existing documents.
>
>
>     i wonder how many people have narrower around it ...
>
>
>
> The layout will also change when you have chapter, sections etc. with
> alternative a–c
> because each new entry in the list will increase the left margin.

hm, we can catch that if needed, but indeed it needs thinking / checking

-----------------------------------------------------------------
                                           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
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-01-23 21:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-22 11:05 \startnarrower[left, right] \completecontent[pageboundaries={0.1.1.5}] \stopnarrower Rudolf Bahr
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

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).