I'm a new user to LaTeX and LyX, as I've only begun writing my thesis in it. It's really awesome, which is why I want to stick with it to the end.
Anyway, I'm having a really hard time figuring out how to make my table of contents look right, more specifically how I can get dots between the chapters and the page numbers instead of just blanks. I'm using the report (KOMA-script) document class without any special modifications in Lyx 1.6.5.
I'm sure it can be done, even with an ERT if need be.
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
The section and subsection entries will, by default, contain dotted leaders in the scrreprt (or report, or book) document class. To obtain the same result for chapters, for example, you could use the tocloft package. Take a look at the following example:
gmedina wrote:
I just noticed that this is the LyX subforum; unfortunately, I have no idea how to implement my solution in LyX.
Thanks for the quick hint, I'll give it a try. In LyX, you can insert arbitrary LaTeX code using the ERT feature, so I guess I'll just have to place the renewcommands in the right place.
place those commands in the document preamble of your LyX document, you will find that point in the LyX menu, like in document settings (I don't have LyX right here).
place those commands in the document preamble of your LyX document, you will find that point in the LyX menu, like in document settings (I don't have LyX right here).
Stefan
Thanks, I saw that option as well. Now I know what to put in there!
Is this some kind of syntax error. BTW, notice that I added \usepackage{tocloft} to the beginning of the preamble, so I should be able to use these commands, right??
Thanks for any help you can offer. I'm pretty lost with latex and I'm trying to get my dissertation formatted correctly.
Last edited by Stefan Kottwitz on Tue Aug 09, 2011 6:43 pm, edited 1 time in total.
for new questions please open a new thread instead of continuing an older topic. So more readers would notice your question.
You are using the article class. This class doesn't support chapters, and \cftchapdotsep and \cftchapleader are chapter commands, as I see because of the chap in the name.
You could use \cftsecdotsep and \cftsecleader instead, which are similar but for sections,
or you could use a class which supports chapters, such as report or book, and use chapter headings.
Is that the correct syntax? I don't get an error anymore, but I also don't get a change in my TOC. It still has no dots between the list of figures, bibliography, etc and the page number. Did I implement your suggestion correctly?
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p