Search found 3 matches

by safl
Sun May 17, 2009 3:20 pm
Forum: LyX
Topic: Nice looking TOC
Replies: 2
Views: 2707

Re: Nice looking TOC

Thank you Stefan, that was exactly what i was looking for!
The default layout of tocloft suits me just fine so a simple \usepackage{tocloft} in the preamble and BAM nice toc ;)
Once again THANK YOU!
by safl
Sat May 16, 2009 5:39 pm
Forum: LyX
Topic: Nice looking TOC
Replies: 2
Views: 2707

Nice looking TOC

Hey People,

How do I modify the style the toc? I want:

* Emphasized sections
* Indented subsections

Cheers!
by safl
Sat May 16, 2009 5:35 pm
Forum: LyX
Topic: Programming Code in LYX
Replies: 6
Views: 15276

Re: Programming Code in LYX

I study computer science so i often have the exact same need.

What i do is i add this to the Preamble of the document (Document->Setting->Latex Preamble):

\usepackage{listings}
\lstset{language=c,numbers=left,tabsize=2,showstringspaces=false,showspaces=false,breaklines=true}

Then i insert (Insert ...