I using \tableofcontents for a document of about 25 pages.
(1) \tableofcontents is defaulting by starting about
1/4 down the length of the page. Is there any way
to change this, so that the table of contents starts
closer to the top?
(2) Perhaps related to (1), currently my table
of contents is two pages, with 26 entries on the first page
and one entry on the second page, which looks
quite inelegant. How can I have all entries
on the same page? There is plenty of room.
(3) Perhaps also related to (2), with that 1/4 blank page
that is the default because apparently, \tableofcontents
defaults by starting about 1/4 down the length
of page, is there any way I can put some text in
that blank area before the table of contents begins?
When I try, \tableofcontents always wants to
begin a new page. How can this behavior be over-ridden?
--
You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to latexusersgro...@googlegroups.com.
To post to this group, send email to latexus...@googlegroups.com.
Visit this group at http://groups.google.com/group/latexusersgroup?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Sankhadeep Sarkar
Use the book or report document class.
Peter Flynn <anglebrac...@gmail.com> wrote:
>That code would not work under my latex installation. I got the
> \makeatother
> \renewcommand\tableofcontents{%
> \clearpage
> \section*{\contentsname
> \@mkboth{\MakeUppercase\contentsname}
> {\MakeUppercase\contentsname}}%
> \@starttoc{toc}}%
> \makeatletter
>
> This also makes the heading smaller, which looks better (ToC heading the
> size of a chapter heading just looks far too big, IMHO).
message "! You can't use `\spacefactor' in vertical mode."
> If you want to squeeze one more line onto the page, useI am not clear what I put this. Putting it just in front
> \enlargethispage{\baselineskip}
of \tableofcontents executes, but nothing changes
I will have:
de Ventadorn: Can vei la lauzeta mover
but in the actual section, the title will be
Bernart de Ventadorn (c. 1125 - c. 1190)
Can vei la lauzeta mover (When I See the Lark Beating)
(c. 1170?)
I don't want the entire section name in the table of contents.
On May 28, 6:44 pm, Peter Flynn <anglebrac...@gmail.com> wrote:
>
>
> I'm sorry, finger slippage. I got the \makeatother and \makeatletter the
> wrong way round.
And that totally works. Puts all my table of contents
entries on one page, starts the table of contents at the
top of the page. Thanks.
> It should go after the \tableofcontents. Putting it before will affect theOk, this still visually does nothing.
> page it is on (ie the page before the table of contents).
Just manually. The section headings actually need to be longer
than the table of contents listing. For example, in the table of
contents
I will have:
de Ventadorn: Can vei la lauzeta mover
but in the actual section, the title will be
Bernart de Ventadorn (c. 1125 - c. 1190)
Can vei la lauzeta mover (When I See the Lark Beating)
(c. 1170?)
I don't want the entire section name in the table of contents.
The only immediate difference is that each of the sections have a
floating point number in front of them, 0.1, 0.2, ... 0.29, 0.30.
front of of the section headings was sort of artificial/inelegant
for a document this short. I guess that was my reason.
Indeed. After the header, by document begins:
\begin{document}
\normalsize
\tableofcontents
addcontentsline{toc}{section}{Perotin: Viderunt omnes}
{\Large {\bf Perotin} (fl. c. 1200)}\\
{\LARGE {\em Viderunt omnes}} {\Large (c. 1200)}\\
and the then the rest of the entries. What happens with the above
is that entries 1-26 are on the "table of content page 1"
entries 27-30 are on "table of contents page 2"
and then my
text starts on page 2 _immediately_ after the table of contents.
I would prefer that my text start on a new page and so I add
the tag \pagebreak to my above example.
What happens now is that my actual text does begin on
page 3, the last four entries of the table of contents
are on page 2, _but_ these last four table of contents
entries are spread vertically equidistantly from
the top to the bottom. It looks most inelegant and
is difficult to read.
> What is that for? \normalsize is the default: you don't need to specify it.Even if something is the default value, I like to put it in the file.
It helps keep me organized.
Ok, I am now using above syntax with the article class.
Things look alright, the floating point number has now
been changed to an integer.
I learned those tags from the Kopka/Daley book in 1999 and have
used them ever since.
Thank you Mr. Flynn for taking the time to help me out !