Hi!

Jacob and Richard, thank you very much for you answers!
I just found the time to experiment a bit with LyX. I will try to
answer each of you in this mail.

@Jacob:

> Also, if you send a minimal example, it  will make it easier to help you.

I have tried to do that.

>> 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 can be done by redefining the chapter headings, and specifying the font
> in the redefinitions. To start figuring out how to do that, open your
> document template and search for where these are given. Then, start changing
> things until you get what you want :)

I do not find anything about this in the template I use. I guess they
are defined in the book.class?

>> 3) The font of te chapter numbers should also be identical, i.e. 12p
>> and non-fat.
>
>
> Use the same method as 2).

Same as above.

>
> That is because the thesis template is based on book, which has three parts,
> frontmatter, mainmatter, and endmatter. By default, I think frontmatter uses
> lowercase roman numbering. You can suppress the page number with (in ERT)
> \thispagestyle{empty} For more on numbering, see the wiki:
> http://wiki.lyx.org/FAQ/Numbering

The ERT also supresses also that the ToC is shown at all. I guess
there's a reason why it is called evil.


> Reasonably easy if you have invested enough time in understanding things,
> but not nearly as easy as I (and likely many others) wish it were. Someday,
> I hope we will have a nice graphical editor that we can use to create new
> document templates (as soon as somebody decides to write one...not
> necessarily part of LyX), but right now the process of creating or modifying
> one has a bit of a learning curve.

That would be very nice. For a newby like me, it would be nice if it
would be a bit easier to distinguish between LaTeX- and LyX - issues.

@Richard:

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

Thanks for the clarification. I have no clue about LaTeX as I have
started using LyX. From my perspective it is indistinguishable if I
have a LaTeX-issue or an LyX-issue.

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

Thanks for the suggestion, I've tried just that. The only issue is
that this does not give me a PDF-bookmarked ToC, but I will figure out
how to do that later.

>> 1) The table of contents should not have a title (i.e. "Table of
>> contents")
>
>
> \renewcommand\contents{}
This does not work. I have experimented a bit. The command given above
yields a "LaTeX Error: \contents undefinded" if I try to compile the
document.
I'm unable to overcome that issue. Even using
"renewcommand\tableofcontens" does not work, this yields just an empty
site instead of a ToC.

Conclusion: I do now not enough about LaTeX to mess around with this.
>
>> 2)
>
> \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.

I've tried that. I'm not able to figure out what all these commands
mean. Is there a list somewhere? Or some sort of introduction?


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

Sorry, yes, I meant page. I figure that is part of the
Thesis-template, if I learn enough about LaTeX to change that this
will be a chinch.

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

> So perhaps something like:
>
> \renewcommand\chapter{\vspace*{2em}
>                     \global\@topnum\z@
>                     \@afterindentfalse
>                     \secdef\@chapter\@schapter}

This has actually worked out-of-the-box. Thank you very much!

I figure I will have to learn a lot about LaTeX. A quick search
revealed this LaTeX-Introduction: tobi.oetiker.ch/lshort/lshort.pdf
I guess there are many more. Any recommendations?

Greetings!
Ph.

Attachment: Minimal.lyx
Description: application/lyx

Reply via email to