On 08/01/2014 07:44 AM, Philipp Gröne wrote:
Hi there!

I need some assistance using LyX.
I want to make a list of pictures. Each of this pictures has either a
chapter number (1) or a section number (1.1).
I chose the thesis-template shiped with LyX to achieve this, mainly
because it provides chapters, sections and a table of contents.
It looks mostly okay, but I still need to change the following things,
listed in no particular order:

These are all LaTeX issues. All of these things are set by the document class and are not really designed to be customizable. You can change them, but it means learning some LaTeX and doing some work in the preamble.

For what it's worth, I'd suggest you use the basic book class. It's more easily customizable. What follows is for that.

1) The table of contents should not have a title (i.e. "Table of contents")

\renewcommand\contents{}

2) The font of all entries in the table of contents should be
identical. At the moment, the chapter- and the section titles have
different font families in the table of content, and changing it
manually only changes the chapter-titles in the ToC, not the
section-titles.

This is probably done most easily using the titletoc or titlesec package, but the TOC entries are set using a bunch of macros l@chapter, l@section, etc, that are defined in the book.cls file, e.g.:

\newcommand*\l@chapter[2]{%
  \ifnum \c@tocdepth >\m@ne
    \addpenalty{-\@highpenalty}%
    \vskip 1.0em \@plus\p@
    \setlength\@tempdima{1.5em}%
    \begingroup
      \parindent \z@ \rightskip \@pnumwidth
      \parfillskip -\@pnumwidth
      \leavevmode \bfseries
      \advance\leftskip\@tempdima
      \hskip -\leftskip
      #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
      \penalty\@highpenalty
    \endgroup
  \fi}

If you want to change them, you can copy them to your premable, change it to "\renewcommand", and do whatever you wish.

3) The font of the chapter numbers should also be identical, i.e. 12p
and non-fat.

Same.

4) The site with the ToC should have no page number. Currently it is
labeled "i".

I assume you mean the page (seite) with the TOC. In any event, I'm not sure what to do about this. Maybe someone else would know.

5) There shouldnt be any page breaks, neither after the Toc nor before chapters.

The command in book.cls is:

\newcommand\chapter{\if@openright\cleardoublepage\else\clearpage\fi
                    \thispagestyle{plain}%
                    \global\@topnum\z@
                    \@afterindentfalse
                    \secdef\@chapter\@schapter}

The first bit is what causes the page break, so you can remove it. This probably will not leave enough space above the chapter title, though, so you'll have to add something to do that. And you probably don't need the plain page style now. So perhaps something like:

\renewcommand\chapter{\vspace*{2em}
                    \global\@topnum\z@
                    \@afterindentfalse
                    \secdef\@chapter\@schapter}

Richard

Reply via email to