Denis Bitouzé <[EMAIL PROTECTED]> writes:
> thanks for AucTeX which makes my life simpler!
>
> I find very useful to format paragraphs with ESC-q keystroke. But it
> can lead to troubles with indexes because it can insert break lines in
> arguments of \index commands and I recently noticed that such break
> lines could lead to different entries in the index, as it can be
> checked in the following minimal example:
>
> \documentclass{article}
> \usepackage{makeidx}
> \makeindex
> \begin{document}
> Bla bla bla bla\index{Something
> with spaces}
> \newpage{}
> Bla bla bla bla\index{Something
> with spaces}
> \newpage{}
> Bla bla bla bla\index{Something with spaces}
> \newpage{}
> Bla bla bla bla\index{Something with spaces}
> \printindex{}
> \end{document}
>
> So, could it be possible that all formatting commands don't make break
> lines in arguments of \index commands? And, furthermore, it could be
> great to prevent the user to insert, even "manually", such break lines!
>
> Maybe there are other commands than \index one which could have same
> treatment...
Try
M-x customize-variable RET LaTeX-fill-break-at-separators RET
and set "Opening Brace" for this. This should try to avoid line breaks
in arguments when possible.
--
David Kastrup
_______________________________________________
auctex mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/auctex