The solution to my problem is to add the following in the preamble:
\makeatletter
[EMAIL PROTECTED]
\ifnum [EMAIL PROTECTED] >[EMAIL PROTECTED]
[EMAIL PROTECTED]
\vskip 1.0em [EMAIL PROTECTED]@
[EMAIL PROTECTED]
\begingroup
\parindent \z@ \rightskip [EMAIL PROTECTED]
\parfillskip [EMAIL PROTECTED]
\leavevmode \bfseries
[EMAIL PROTECTED]
\hskip -\leftskip
#1\nobreak\
[EMAIL PROTECTED]
\mkern [EMAIL PROTECTED] mu\hbox{.}\mkern [EMAIL PROTECTED]
[EMAIL PROTECTED]@[EMAIL PROTECTED] #2}\par
[EMAIL PROTECTED]
\endgroup
\fi}
\makeatother
This solves the problem.
Thank you
Leo
LB wrote:
Hello
I'm using Lyx 1.4.4 with Win XP and Document class: book
For my thesis I need to added dots between chapter names and their
page numbers in TOC.
I can do that with:
[EMAIL PROTECTED]@dottedtocline{0}{1.5em}{2.3em}} %
However in TOC, this removes formatting of the chapter entries and
removes section indents.
From what I can tell, I should be able to use tocloft package but
when I use
it I get error:
LaTeX Error: Command [EMAIL PROTECTED] already defined.
Can anybody suggest a solution for this?
Thank you
Leo
Hi,
I did have the same problem when i tried to use tocloft package. You are
getting this error because lyx automatically defines the depth. You will
be able to see if you look at the latex code of the document. I don't
know how to stop this behaviour of Lyx. What i did was to manually edit
the tex file (comment the line where Lyx define the depth and put the
tocloft package code) and then run the pdflatex to get the pdf output.
regards,
Kamran