emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <n.goaziou@gmail.com>
To: Laurens Van Houtven <_@lvh.io>
Cc: emacs-orgmode@gnu.org
Subject: Re: Splitting up inline LaTeX
Date: Fri, 13 Dec 2013 20:01:52 +0100	[thread overview]
Message-ID: <87bo0kwp5r.fsf@gmail.com> (raw)
In-Reply-To: <CAE_Hg6YKo3nzOnz2U7jveaRx0gRThz8FFWiqjTDLWek9rBHO3g@mail.gmail.com> (Laurens Van Houtven's message of "Fri, 13 Dec 2013 14:01:22 +0100")

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

  parent reply	other threads:[~2013-12-13 19:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-13 13:01 Splitting up inline LaTeX Laurens Van Houtven
2013-12-13 14:27 ` John Kitchin
2013-12-13 19:01 ` Nicolas Goaziou [this message]
2013-12-16 13:32   ` Laurens Van Houtven

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bo0kwp5r.fsf@gmail.com \
    --to=n.goaziou@gmail.com \
    --cc=_@lvh.io \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).