From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vikas Rawal Subject: Re: Trouble with autofill mode Date: Mon, 3 Aug 2015 05:35:45 +0530 Message-ID: <5AF0D5A1-1F17-44EF-900F-A165757DC745@agrarianresearch.org> References: <87si818mw9.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36580) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZM3GP-0007LX-Fc for emacs-orgmode@gnu.org; Sun, 02 Aug 2015 20:05:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZM3GL-0006Kn-Ey for emacs-orgmode@gnu.org; Sun, 02 Aug 2015 20:05:57 -0400 Received: from mail-pd0-f173.google.com ([209.85.192.173]:35730) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZM3GL-0006Kg-9d for emacs-orgmode@gnu.org; Sun, 02 Aug 2015 20:05:53 -0400 Received: by pdrg1 with SMTP id g1so66410495pdr.2 for ; Sun, 02 Aug 2015 17:05:52 -0700 (PDT) In-Reply-To: <87si818mw9.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Goaziou Cc: org-mode mailing list >=20 >> I am inserting LaTeX \index{} commands in an org document to create = an >> index. Almost everything works fine. But I am having trouble with >> auto-fill-mode. It often puts a line break in the middle of an index >> entry, and then it does not work. >>=20 >> That is, \index{my name} is sometimes broken into \index{my >> name}. This creates a problem for LaTeX. >>=20 >> I have disabled auto-fill-mode for now, but that is clearly >> a sub-optimal thing to do. Is there a way to tell it not to put line >> breaks in the middle of \index{} entries? >=20 > Have you tried >=20 > #+INDEX: my name >=20 > Regards, >=20 I am sorry for not being clear. \index{} may have to be used inline in a = para since the index has to pick up the right page where a term appears. = So you want to put it as close as possible to the keywords. Vikas=