From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Splitting up inline LaTeX Date: Fri, 13 Dec 2013 20:01:52 +0100 Message-ID: <87bo0kwp5r.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47799) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VrXza-0002sI-K7 for emacs-orgmode@gnu.org; Fri, 13 Dec 2013 14:01:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VrXzV-0000Cd-2p for emacs-orgmode@gnu.org; Fri, 13 Dec 2013 14:01:42 -0500 Received: from mail-ea0-x232.google.com ([2a00:1450:4013:c01::232]:53293) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VrXzU-0000C8-SL for emacs-orgmode@gnu.org; Fri, 13 Dec 2013 14:01:37 -0500 Received: by mail-ea0-f178.google.com with SMTP id d10so1088591eaj.9 for ; Fri, 13 Dec 2013 11:01:34 -0800 (PST) In-Reply-To: (Laurens Van Houtven's message of "Fri, 13 Dec 2013 14:01:22 +0100") 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: Laurens Van Houtven <_@lvh.io> Cc: emacs-orgmode@gnu.org Hello, Laurens Van Houtven <_@lvh.io> writes: > I'm using org-mode with the LaTeX export to write a book. I'm having issues > with inline LaTeX citations (\cite{some label}) and glossary references > (\gls{some label}). When the label (the thing in between the curly braces) > is split across lines, the org-mode LaTeX exporter escapes the curly > braces, so I get something like: > > the beginning of the line \cite\{the first part of the label > the latter part of the label\} the rest of the line > > The extra escaping of the curlies makes LaTeX very unhappy. I would like to > teach org-mode that stuff like that needs to be kept together, much like > $math mode stuff$. I tried reading the manual for advice, but those are > neither inline math (so not $$ delimited) nor an environment (\begin{} and > \end{} delimited), which are the two cases that the manual covers. Org doesn't support arbitrary LaTeX code. You can use export snippets: @@latex:\gls{some label}@@ Regards, -- Nicolas Goaziou