* Splitting up inline LaTeX
@ 2013-12-13 13:01 Laurens Van Houtven
2013-12-13 14:27 ` John Kitchin
2013-12-13 19:01 ` Nicolas Goaziou
0 siblings, 2 replies; 4+ messages in thread
From: Laurens Van Houtven @ 2013-12-13 13:01 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 831 bytes --]
Hi!
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.
thanks in advance
lvh
[-- Attachment #2: Type: text/html, Size: 980 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Splitting up inline LaTeX
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
1 sibling, 0 replies; 4+ messages in thread
From: John Kitchin @ 2013-12-13 14:27 UTC (permalink / raw)
To: Laurens Van Houtven; +Cc: emacs-orgmode@gnu.org
[-- Attachment #1: Type: text/plain, Size: 1831 bytes --]
I would use links for this purpose, which org-mode would get right across
lines. For instance, here is a cite link:
https://github.com/jkitchin/jmax/blob/prelude/jorg-bib.el#L332
so you use cite:bibkey1,bibkey2 or [[cite:bibkey1, bibkey2]] instead of
\cite{bibkey1,bibkey2}. At export time, the link is converted to the latex
they way you need it.
The code at the link above does a lot more than that and may not be
directly suitable for what you are doing, e.g. when I click on the link, it
opens my bibtex file at the entry I clicked on, etc... See this page:
http://orgmode.org/manual/Adding-hyperlink-types.html for another example
of making your own links.
John
-----------------------------------
John Kitchin
Associate Professor
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
http://kitchingroup.cheme.cmu.edu
On Fri, Dec 13, 2013 at 8:01 AM, Laurens Van Houtven <_@lvh.io> wrote:
> Hi!
>
> 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.
>
> thanks in advance
> lvh
>
[-- Attachment #2: Type: text/html, Size: 2600 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Splitting up inline LaTeX
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
2013-12-16 13:32 ` Laurens Van Houtven
1 sibling, 1 reply; 4+ messages in thread
From: Nicolas Goaziou @ 2013-12-13 19:01 UTC (permalink / raw)
To: Laurens Van Houtven; +Cc: emacs-orgmode
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-12-16 13:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2013-12-16 13:32 ` Laurens Van Houtven
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.