auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX] [Feature request] Prevent break lines in arguments of \inde


From: David Kastrup
Subject: Re: [AUCTeX] [Feature request] Prevent break lines in arguments of \index commands
Date: Thu, 17 Jan 2008 11:45:22 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux)

Denis Bitouzé <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]