From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xiao-Yong Jin Subject: Re: LaTeX export Date: Fri, 02 Nov 2007 12:05:14 -0400 Message-ID: <87pryshbut.fsf@columbia.edu> References: <87abpxot2c.fsf@hati.baby-gnu.org> <87lk9gbryg.fsf@bzg.ath.cx> <87tzo4oeeh.fsf@hati.baby-gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Inz1T-00059C-P8 for emacs-orgmode@gnu.org; Fri, 02 Nov 2007 12:05:27 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Inz1S-00058a-5w for emacs-orgmode@gnu.org; Fri, 02 Nov 2007 12:05:27 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Inz1R-00058V-Nf for emacs-orgmode@gnu.org; Fri, 02 Nov 2007 12:05:25 -0400 Received: from jalapeno.cc.columbia.edu ([128.59.29.5]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Inz1Q-0002wi-Oe for emacs-orgmode@gnu.org; Fri, 02 Nov 2007 12:05:25 -0400 Received: from neutrino (dyn-carl-201-211.dyn.columbia.edu [160.39.201.211]) (user=xj2106 mech=PLAIN bits=0) by jalapeno.cc.columbia.edu (8.14.1/8.14.1) with ESMTP id lA2G5FQA016684 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Fri, 2 Nov 2007 12:05:16 -0400 (EDT) In-Reply-To: <87tzo4oeeh.fsf@hati.baby-gnu.org> (Daniel Dehennin's message of "Fri\, 02 Nov 2007 16\:28\:22 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Daniel Dehennin writes: > Le 5175 Septembre 1993, Bastien a tapot=C3=A9: >> Daniel Dehennin writes: >> >>> I have 2 problems: >>> >>> - the underscore "_" is not escaped, >> >> Can you provide an example with context for both the input and the >> output? Maybe the #+OPTIONS: line could be useful as well. > > Well, having "_" in my ORG file was litteraly a "_" in my LaTeX source > and compiling the LaTex source complains about missing $. > > I'm not able to reproduce this I don't understand what happend :-/ > > But now, how can I have some\_thing in my LaTeX source ? > > I write many documents with something like: > > variable_name > > and I don't want them to become: > > $variable_{name}$ > > in my LaTeX source. I've also spotted this. I guess it's hard to make it right. By default, org-mode doesn't require `$'s to recognize certain region as math environment. See info page : 10.2 Subscripts and Superscripts : =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D :=20 : Just like in LaTeX, `^' and `_' are used to indicate super- and : subscripts. Again, these can be used without embedding them in : math-mode delimiters. To increase the readability of ASCII text, it is : not necessary (but OK) to surround multi-character sub- and superscripts : with curly braces. For example :=20 : The mass if the sun is M_sun =3D 1.989 x 10^30 kg. The radius of : the sun is R_{sun} =3D 6.96 x 10^8 m. :=20 : To avoid interpretation as raised or lowered text, you can quote `^' : and `_' with a backslash: `\_' and `\^'. :=20 : During HTML export (*note HTML export::), subscript and superscripts : are surrounded with `' and `' tags, respectively. But I would like to propose a work-around. How about make `^' and `_' in those regions marked as =3Dthis_code=3D or something similar not be interpreted as super- and subscripts? Xiao-Yong --=20 c/* __o/* <\ * (__ */\ <