emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* LaTeX fragments to deal with character {
@ 2014-12-13 21:28 kevin.lemorzadec
  2014-12-13 21:51 ` Rasmus
  0 siblings, 1 reply; 2+ messages in thread
From: kevin.lemorzadec @ 2014-12-13 21:28 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 910 bytes --]

Hi,
I am trying to do a latex loop in org mode. When I use the latex syntax
directly, the character "{" are exported as"\{" as in case 1 below. If I
use ‘\(...\)’ it does keep the "{" characters but the ‘\(...\)' stays in
the .tex created (case 2 below) giving me an error when I try to generate
the pdf.
Is there an other was to export the "{" characters?

Org-mode version 6.33x

-------------------------------------------------
case 1
.org file:
\foreach \n in {Temp,DO,Sal}{\foreach \m in
{Temp,DO,Sal}{
\n \m \par
}}

.tex file:
\foreach \n in \{Temp,DO,Sal\}{\foreach \m in
\{Temp,DO,Sal\}\{
\n \m \par
}\}

-------------------------------------------------
case 2
.org file:
\(\foreach \n in {Temp,DO,Sal}{\foreach \m in
{Temp,DO,Sal}{
\n \m \par
}}\)

.tex file:
\(\foreach \n in {Temp,DO,Sal}{\foreach \m in
{Temp,DO,Sal}{
\n \m \par
}}\)



-- 
Kevin

[-- Attachment #2: Type: text/html, Size: 1549 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: LaTeX fragments to deal with character {
  2014-12-13 21:28 LaTeX fragments to deal with character { kevin.lemorzadec
@ 2014-12-13 21:51 ` Rasmus
  0 siblings, 0 replies; 2+ messages in thread
From: Rasmus @ 2014-12-13 21:51 UTC (permalink / raw)
  To: emacs-orgmode

Hi Kevin,

> Org-mode version 6.33x

O-o-okay.  The current stable version is 8.2 and the export framework
changed in v8.  If possible, you should upgrade.

"kevin.lemorzadec" <kevin.lemorzadec@mun.ca> writes:

> I am trying to do a latex loop in org mode. When I use the latex syntax
> directly, the character "{" are exported as"\{" as in case 1 below. If I
> use ‘\(...\)’ it does keep the "{" characters but the ‘\(...\)' stays in
> the .tex created (case 2 below) giving me an error when I try to generate
> the pdf.
> Is there an other was to export the "{" characters?

I don't remember if this works in Org6 and it's not available to me.

Try:

#+LATEX: loop line 1
#+LATEX: loop line 2
#+LATEX: loop line 3

Or

#+begin_latex
My loop {}
#+end_latex

Let's hope one of those works in Org6.

—Rasmus

-- 
Vote for proprietary math!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-12-13 21:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-13 21:28 LaTeX fragments to deal with character { kevin.lemorzadec
2014-12-13 21:51 ` Rasmus

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).