From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sullivan, Gregory \(US SSA\)" Subject: RE: BUG: Problems with LaTeX exporting of ^ and _ Date: Fri, 17 Oct 2008 09:22:25 -0400 Message-ID: <73kku8$6rtks@dmzms99901.na.baesystems.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KqpHm-0001IE-7B for emacs-orgmode@gnu.org; Fri, 17 Oct 2008 09:22:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KqpHi-0001HV-IW for emacs-orgmode@gnu.org; Fri, 17 Oct 2008 09:22:33 -0400 Received: from [199.232.76.173] (port=60008 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KqpHi-0001HS-Ag for emacs-orgmode@gnu.org; Fri, 17 Oct 2008 09:22:30 -0400 Received: from dmzms99901.na.baesystems.com ([149.32.200.65]:46457) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KqpHh-0000UP-TF for emacs-orgmode@gnu.org; Fri, 17 Oct 2008 09:22:30 -0400 content-class: urn:content-classes:message 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: "Daniel J. Sinder" , Org Mode List As far as: Ideally, it should be \item This is a $\mbox{super}^{\mbox{\scriptsize{s}}}$cript but I'd settle for this \item This is a $super^{s}cript$ I agree that it should be the first (using mbox). The second is just wrong, as it uses math mode spacing for each letter. Possibly a simpler way to accomplish this is=20 \item This is a super${}^{s}$cript --Greg -- Gregory T. Sullivan, Ph.D. BAE Systems Advanced Information Technologies 6 New England Executive Park, Burlington, MA 01803 781-262-4553 (office), 978-430-3461 (cell) gregory.sullivan@baesystems.com=20 -----Original Message----- From: emacs-orgmode-bounces+gregory.sullivan=3Dbaesystems.com@gnu.org [mailto:emacs-orgmode-bounces+gregory.sullivan=3Dbaesystems.com@gnu.org] On Behalf Of Daniel J. Sinder Sent: Friday, October 17, 2008 1:33 AM To: Org Mode List Subject: [Orgmode] BUG: Problems with LaTeX exporting of ^ and _ Consider the following simple org file: -- start org file -- #+OPTIONS: ^:{} * This is a test - This is a super^script - This is a sub_script -- end org file -- If I export this to HTML, as expected I get this (relevant portion=20 only):
  • This is a super^script
  • This is a sub_script
But, if I export to LaTeX, I surprisingly get this: \begin{itemize} \item This is a $super^{script}$ \item This is a $sub_{script}$ \end{itemize} I would expect no superscript and no subscript because I didn't use=20 braces and I have ^:{} in my OPTIONS line. Things get plain weird if I use braces in the first item, so my org=20 file is now this: -- start org file -- #+OPTIONS: ^:{} * This is a test - This is a super^{s}cript - This is a sub_script -- end org file -- HTML output in this case is still what I'd expect:
  • This is a superscript
  • This is a sub_script
But the LaTeX output is not at all what I'd expect: \begin{itemize} \item This is a $super^{s}$cript \item This is a sub_script \end{itemize} Note that now the second item has changed in latex even though it=20 didn't change in the org file. Plus it actually throws an error in=20 latex because there is no equation environment and no escape of the=20 underscore. The first item is also a problem because the equation=20 environment splits in a strange place, causing fonts to get mixed.=20 Ideally, it should be \item This is a $\mbox{super}^{\mbox{\scriptsize{s}}}$cript but I'd settle for this \item This is a $super^{s}cript$ Dan _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode