On Sat, Jul 26, 2014 at 9:26 AM, Jürgen Spitzmüller <[email protected]> wrote:
> Jonas Weiher wrote:
> > Hello,
> >
> > my professor wants a slightly different design of the table of contents:
> >
> > 1. Lyx makes the section title and page-number in TOC bold and the other
> > levels normal. My professor wants all in normal, so the section-title and
> > -pagenumber shouldn't be bold.
> >
> > 2. The section-level has no filling dots between title and page-number in
> > the doc but the other levels have them. My professor wants also filling
> > dots in the section-level.
>
> All these settings depend on the document class. Which one do you use?
>
> > How can I do these 2 things in Lyx? I've tried to right-click the
> > TOC-placeholder because I thought that could be set there, but I can't
> find
> > any setting for that.
>
> Some document classes allow for direct customization of TOC appearance.
> Alternatively, you need to use a specific LaTeX package such as tocloft.
> E.g.
> in preamble:
>
> \usepackage{tocloft}
> \renewcommand\cftsecfont{\mdseries\normalfont}
> \renewcommand\cftsecpagefont{\mdseries\normalfont}
> \renewcommand\cftsecleader{\cftdotfill{\cftsecdotsep}}
> \renewcommand\cftsecdotsep{\cftdotsep}
>
>
Jürgen's solution is going to work fine, but I think you should ask
yourself if this is the last formatting modification your professor is
going to request or (as it sometimes happens), the first of many. In the
latter case, you may consider switching from your current LaTeX class
(whichever it is) to a class that can be easily and heavily customized to
your (professor's) needs, such as KomaScript or memoir.
It will take some time to learn how to do so, but it will pay off in the
end. Unless you are already at the end...in which case: congrats!
Cheers,
Stefano
--
__________________________________________________
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies Ph: +1 (979) 845-2125
Texas A&M University Fax: +1 (979) 845-6421
College Station, Texas, USA
[email protected]
http://stefano.cleinias.org