ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* TOCS: part number, custom alternative and margins
@ 2009-04-15  2:34 Jeff Smith
  2009-04-20 15:08 ` Jeff Smith
  2009-04-20 19:44 ` Wolfgang Schuster
  0 siblings, 2 replies; 4+ messages in thread
From: Jeff Smith @ 2009-04-15  2:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Hi all!

A while ago I asked how to achieve a particular layout I wanted for part
titles in my table of contents. I was given this solution:

 \definelistplacement[partlist][none]#1#2#3%

{\sc\inframed[width=broad,align=right,bottomframe=on,topframe=off,rightframe=off,leftframe=off]{{#2}}}


 \setuplist[part][alternative=partlist]


With that, I get no part number, no page number, a title in small caps and a
bottom frame. So far so good.

In the same table, I also want my section and subsection titles to indent,
at different values depending on levels (the further the section in the
hierarchy, the further it indents). I use the margin= parameter for that.

When I do that, however, the next part title indents equally to the same
level as the last section or subsection did. See the example file toc.tex
attached. Obviously, I don't want that.

The only way I've found to avoid that is to get rid of the custom
alternative, and transfer the \inframed command to a textstyle parameter
inside a normal \setuplist[part] command. See toc-2.tex attached.

When I do that, however, I can't get rid of the part number. I tried
everything I could think about, but to no avail.

I'm using MKII+Xetex. (ConTeXt  ver: 2008.11.10 21:40 MKII  fmt: 2008.11.15
int: english/english)

Can anyone help? What is the best solution?

Thanks in advance!
Jeff

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

[-- Attachment #2: toc.tex --]
[-- Type: application/x-tex, Size: 696 bytes --]

[-- Attachment #3: toc-2.tex --]
[-- Type: application/x-tex, Size: 673 bytes --]

[-- Attachment #4: 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: TOCS: part number, custom alternative and margins
  2009-04-15  2:34 TOCS: part number, custom alternative and margins Jeff Smith
@ 2009-04-20 15:08 ` Jeff Smith
  2009-04-20 19:44 ` Wolfgang Schuster
  1 sibling, 0 replies; 4+ messages in thread
From: Jeff Smith @ 2009-04-20 15:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

Anybody has some time for this?

Thanks!
Jeff

On Tue, Apr 14, 2009 at 22:34, Jeff Smith <ascarel@gmail.com> wrote:
> Hi all!
>
> A while ago I asked how to achieve a particular layout I wanted for part
> titles in my table of contents. I was given this solution:
>
> \definelistplacement[partlist][none]#1#2#3%
>
> {\sc\inframed[width=broad,align=right,bottomframe=on,topframe=off,rightframe=off,leftframe=off]{{#2}}}
>
> \setuplist[part][alternative=partlist]
>
> With that, I get no part number, no page number, a title in small caps and a
> bottom frame. So far so good.
>
> In the same table, I also want my section and subsection titles to indent,
> at different values depending on levels (the further the section in the
> hierarchy, the further it indents). I use the margin= parameter for that.
>
> When I do that, however, the next part title indents equally to the same
> level as the last section or subsection did. See the example file toc.tex
> attached. Obviously, I don't want that.
>
> The only way I've found to avoid that is to get rid of the custom
> alternative, and transfer the \inframed command to a textstyle parameter
> inside a normal \setuplist[part] command. See toc-2.tex attached.
>
> When I do that, however, I can't get rid of the part number. I tried
> everything I could think about, but to no avail.
>
> I'm using MKII+Xetex. (ConTeXt  ver: 2008.11.10 21:40 MKII  fmt: 2008.11.15
> int: english/english)
>
> Can anyone help? What is the best solution?
>
> Thanks in advance!
> Jeff
>
>
>
>
>
___________________________________________________________________________________
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: TOCS: part number, custom alternative and margins
  2009-04-15  2:34 TOCS: part number, custom alternative and margins Jeff Smith
  2009-04-20 15:08 ` Jeff Smith
@ 2009-04-20 19:44 ` Wolfgang Schuster
  2009-04-21 21:49   ` Jeff Smith
  1 sibling, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2009-04-20 19:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 15.04.2009 um 04:34 schrieb Jeff Smith:

> The only way I've found to avoid that is to get rid of the custom  
> alternative, and transfer the \inframed command to a textstyle  
> parameter inside a normal \setuplist[part] command. See toc-2.tex  
> attached.
>
> When I do that, however, I can't get rid of the part number. I tried  
> everything I could think about, but to no avail.

headnumber=no

Wolfgang

___________________________________________________________________________________
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: TOCS: part number, custom alternative and margins
  2009-04-20 19:44 ` Wolfgang Schuster
@ 2009-04-21 21:49   ` Jeff Smith
  0 siblings, 0 replies; 4+ messages in thread
From: Jeff Smith @ 2009-04-21 21:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, Apr 20, 2009 at 15:44, Wolfgang Schuster
<schuster.wolfgang@googlemail.com> wrote:

>
> headnumber=no
>
> Wolfgang
>

Oh gosh, HEADnumber. *slaps forehead*

Thank you for your patience with us idiot users,
Jeff
___________________________________________________________________________________
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:[~2009-04-21 21:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-15  2:34 TOCS: part number, custom alternative and margins Jeff Smith
2009-04-20 15:08 ` Jeff Smith
2009-04-20 19:44 ` Wolfgang Schuster
2009-04-21 21:49   ` Jeff Smith

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