ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Page number alignment in \placecontent
@ 2006-10-27 20:16 Ángel Luis García Fernández
  0 siblings, 0 replies; 3+ messages in thread
From: Ángel Luis García Fernández @ 2006-10-27 20:16 UTC (permalink / raw)


Hi all,

sorry for bothering you with this, but I have a problem: I like this style for 
my Index:

\setuplist[chapter][style=bold]

\placecontent[level=section,
              alternative=c,
              criterium=all,
              aligntitle=yes]

But then the section page numbers are placed in the right margin of the page 
instead of in the text area as the chapter page numbers are. (if you want a 
sample: http://wwwdi.ujaen.es/~algarcia/page.pdf . It's just 16 KB)

How can I manage to keep all the index structure while moving the section page 
numbers to the left?

Ángel-Luis

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

* Re: Page number alignment in \placecontent
       [not found] <mailman.987.1162241629.16231.ntg-context@ntg.nl>
@ 2006-11-01  9:45 ` Ángel Luis García Fernández
  0 siblings, 0 replies; 3+ messages in thread
From: Ángel Luis García Fernández @ 2006-11-01  9:45 UTC (permalink / raw)


Hi again,

you were right, Maarten-Jan. The problem was the following:

\setupindenting[medium]

I like the first line of each paragraph to be indented, so I put the above 
command in my "general config" file. The undesired effect is that it also 
indented the index lines, shifting them to the right. That's the reason why 
the page numbers appeared in the right margin (is this a bug? I mean, should 
ConTeXt break the index line instead of put the number in the margin?).

Now I have moved the \setupindenting command to the body section of my 
document, and the \setuplist options you wrote in the previous e-mail work ok 
(I forgot the "criterium=all" in the \setupcombinedlist command).

Thanks for your help,

Ángel Luis

> From: "M.J. Kallen" <mj_kallen@yahoo.com>
> Subject: Re: [NTG-context] ntg-context Digest, Vol 28, Issue 76
> Angel-Luis,
>
> I'm not sure why you do not get a table of contents, maybe try to add
> criterium=all to the \setupcombinedlist command and see if that works?
> Also, you have used \placecontent, which you can use instead of
> \completecontent.
>
> I've tried your settings using the live ConTeXt on the wiki and it works
> without the page numbers in the margin. Looking at your sample file, the
> lines with the sections are somehow shifted to the right. It is not
> possible to see why this is happening. Are you shure you have not added
> something somewhere to change the appearance of the list?
>
> Maarten-Jan
>
> ----- Original Message ----
> From: ?ngel Luis Garc?a Fern?ndez <algarcia@ujaen.es>
> To: ntg-context@ntg.nl
> Sent: Monday, October 30, 2006 10:16:24 AM
>
>
> I tried that, but then nothing appears (empty index)
>
> Angel-Luis
>
> > Hi Angel-Luis,
> >
> > looks like you want a LaTeX-like table of contents. I achieved what I
> > think you want to achieve as well, using the following commands:
> >
> > % setup table of contents
> > \setupcombinedlist[content][alternative=c,level=section]
> >
> > % margins, widths and distances are setup such that section lines line up
> > with chapter text (change to your liking!)
> > \setuplist[chapter][margin=0mm,width=6mm,distance=2mm,style=bold,aligntit
> >le =yes,before=\blank]
> > \setuplist[section][margin=8mm,width=6mm,distance=2mm]
> >
> > % place the following in the relevant location
> > \completecontent
> >
> > Hope this ends up looking like you want it to!
> >
> > Maarten-Jan
> >
> > ----- Original Message ----
> > From: ?ngel Luis Garc?a Fern?ndez <algarcia@ujaen.es>
> > To: ntg-context@ntg.nl
> > Sent: Friday, October 27, 2006 10:16:21 PM
> > Subject: [NTG-context] Page number alignment in \placecontent
> >
> >
> > Hi all,
> >
> > sorry for bothering you with this, but I have a problem: I like this
> > style for my Index:
> >
> > \setuplist[chapter][style=bold]
> >
> > \placecontent[level=section,
> >               alternative=c,
> >               criterium=all,
> >               aligntitle=yes]
> >
> > But then the section page numbers are placed in the right margin of the
> > page instead of in the text area as the chapter page numbers are. (if you
> > want a sample: http://wwwdi.ujaen.es/~algarcia/page.pdf . It's just 16
> > KB)
> >
> > How can I manage to keep all the index structure while moving the section
> > page numbers to the left?
> >
> > ?ngel-Luis
> > _______________________________________________
> > ntg-context mailing list
> > ntg-context@ntg.nl
> > http://www.ntg.nl/mailman/listinfo/ntg-context
> >
> >
> >
> >
> > ------------------------------
> >
> > _______________________________________________
> > ntg-context mailing list
> > ntg-context@ntg.nl
> > http://www.ntg.nl/mailman/listinfo/ntg-context

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

* Re: Page number alignment in \placecontent
@ 2006-10-28  8:36 M.J. Kallen
  0 siblings, 0 replies; 3+ messages in thread
From: M.J. Kallen @ 2006-10-28  8:36 UTC (permalink / raw)


Hi Angel-Luis,

looks like you want a LaTeX-like table of contents. I achieved what I think you want to achieve as well, using the following commands:

% setup table of contents
\setupcombinedlist[content][alternative=c,level=section]

% margins, widths and distances are setup such that section lines line up with chapter text (change to your liking!)
\setuplist[chapter][margin=0mm,width=6mm,distance=2mm,style=bold,aligntitle=yes,before=\blank]
\setuplist[section][margin=8mm,width=6mm,distance=2mm]

% place the following in the relevant location
\completecontent

Hope this ends up looking like you want it to!

Maarten-Jan

----- Original Message ----
From: Ángel Luis García Fernández <algarcia@ujaen.es>
To: ntg-context@ntg.nl
Sent: Friday, October 27, 2006 10:16:21 PM
Subject: [NTG-context] Page number alignment in \placecontent


Hi all,

sorry for bothering you with this, but I have a problem: I like this style for 
my Index:

\setuplist[chapter][style=bold]

\placecontent[level=section,
              alternative=c,
              criterium=all,
              aligntitle=yes]

But then the section page numbers are placed in the right margin of the page 
instead of in the text area as the chapter page numbers are. (if you want a 
sample: http://wwwdi.ujaen.es/~algarcia/page.pdf . It's just 16 KB)

How can I manage to keep all the index structure while moving the section page 
numbers to the left?

Ángel-Luis
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

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

end of thread, other threads:[~2006-11-01  9:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-27 20:16 Page number alignment in \placecontent Ángel Luis García Fernández
2006-10-28  8:36 M.J. Kallen
     [not found] <mailman.987.1162241629.16231.ntg-context@ntg.nl>
2006-11-01  9:45 ` Ángel Luis García Fernández

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