Le Mercredi 27 Février 2002 07:35, vous avez écrit :
> I don't like where Lyx is doing the line breaks in some of my
It is LaTeX, not LyX ;)
> section headings in a report I'm writing. I have a section called
> "The Term Vector Model of Document Similarity" and it is breaking
> the line right after the "Sim" in Similarity and hyphenating there.
>
> I can break it after "Model" using a TeX "//", which works fine, and
> looks good in the text, but the trouble is, this then breaks up
> the entry in my Table of Contents into 2 lines, which doesn't
> look good. I want the Table of Contents entry to stay on one line
> while the text version is on two. Is this possible?

There is the command \sloppy that should tell LaTeX to avoid cutting the 
words.
Another solution would be to keep your \\ and use the optionnal parameter 
of the \chapter \section... commands (so you could not use the LyX style 
anymore but need to use plain LaTeX)
\section[tocentry]{title}
tocentry is what wil be shown in the toc, it defaults to title.

-- 
Renaud Michel

Savoir dissimuler est le savoir des rois.

        -- Richelieu

Reply via email to