From mboxrd@z Thu Jan 1 00:00:00 1970 From: "kevin.lemorzadec" Subject: LaTeX fragments to deal with character { Date: Sat, 13 Dec 2014 17:58:40 -0330 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0115ee9c6d552a050a1fb1c5 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49283) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzuF9-0000qe-TT for emacs-orgmode@gnu.org; Sat, 13 Dec 2014 16:28:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XzuF2-0002MY-CE for emacs-orgmode@gnu.org; Sat, 13 Dec 2014 16:28:51 -0500 Received: from ellington.ucs.mun.ca ([134.153.232.51]:57819) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzuF2-0002MR-6C for emacs-orgmode@gnu.org; Sat, 13 Dec 2014 16:28:44 -0500 Received: from mail-yk0-f173.google.com (mail-yk0-f173.google.com [209.85.160.173]) by ellington.ucs.mun.ca (8.13.8/8.13.8) with ESMTP id sBDLSedS001459 for ; Sat, 13 Dec 2014 17:58:41 -0330 Received: by mail-yk0-f173.google.com with SMTP id 19so4009067ykq.18 for ; Sat, 13 Dec 2014 13:28:40 -0800 (PST) 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 --089e0115ee9c6d552a050a1fb1c5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 =E2=80=98\(...\)=E2=80=99 it does keep the "{" characters but the =E2= =80=98\(...\)' 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 }}\) --=20 Kevin --089e0115ee9c6d552a050a1fb1c5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,
I am trying to do a latex l= oop in org mode. When I use the latex syntax directly, the character "= {" are exported as"\{" as in case 1 below. If I use=C2=A0=E2= =80=98\(...\)=E2=80=99 it does keep the "{" characters but the=C2= =A0=E2=80=98\(...\)' stays in the .tex created (case 2 below) giving me= an error when I try to generate the pdf.=C2=A0
Is there an= other was to export the "{" characters?

Org-mode version 6.33x

----= ---------------------------------------------
case 1
<= div style>
.org file:
\foreach \n in {Temp,DO,Sal}{\fore= ach \m in
{Temp,DO,Sal}{=C2=A0
\n \m \par
}}

.tex file:
\foreach \n in \{Temp,DO,Sal\}{\foreach \m in
<= div>\{Temp,DO,Sal\}\{=C2=A0
\n \m \par
}\}
-------------------------------------------------
<= div style>case 2
.org file:
\(\foreach \n in= {Temp,DO,Sal}{\foreach \m in
{Temp,DO,Sal}{=C2=A0
\n \= m \par
}}\)

.tex fil= e:
\(\foreach \n in {Temp,DO,Sal}{\foreach \m in
{= Temp,DO,Sal}{=C2=A0
\n \m \par
}}\)


--
Kevin=C2=A0
--089e0115ee9c6d552a050a1fb1c5--