From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Trouble with autofill mode Date: Mon, 03 Aug 2015 21:12:02 -0400 Message-ID: <871tfjvov1.fsf@pierrot.dokosmarshall.org> References: <87si818mw9.fsf@nicolasgoaziou.fr> <5AF0D5A1-1F17-44EF-900F-A165757DC745@agrarianresearch.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53173) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMQmD-00088C-Hj for emacs-orgmode@gnu.org; Mon, 03 Aug 2015 21:12:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZMQmA-00021H-8O for emacs-orgmode@gnu.org; Mon, 03 Aug 2015 21:12:21 -0400 Received: from plane.gmane.org ([80.91.229.3]:42166) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMQmA-00020v-2q for emacs-orgmode@gnu.org; Mon, 03 Aug 2015 21:12:18 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZMQm7-0005th-U7 for emacs-orgmode@gnu.org; Tue, 04 Aug 2015 03:12:16 +0200 Received: from pool-108-20-41-232.bstnma.fios.verizon.net ([108.20.41.232]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 Aug 2015 03:12:15 +0200 Received: from ndokos by pool-108-20-41-232.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 Aug 2015 03:12:15 +0200 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: emacs-orgmode@gnu.org Vikas Rawal writes: >> >>> 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. >>> >>> That is, \index{my name} is sometimes broken into \index{my >>> name}. This creates a problem for LaTeX. >>> >>> 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? >> >> Have you tried >> >> #+INDEX: my name >> >> Regards, >> > > > 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. > So put it as close as possible to the keywords: --8<---------------cut here---------------start------------->8--- This section needs to index some #+INDEX: multi word term multi word terms. --8<---------------cut here---------------end--------------->8--- -- Nick