From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Parker, Matthew" Subject: Exporting to HTML - underscores cause unwanted sub-script Date: Thu, 14 Aug 2008 21:01:13 -0400 Message-ID: <9E067A1AECCB154485D4CF7E4BEF4D8E09484B9D@post07.corp.seic.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0623177609==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KTnhD-0000FI-1Z for emacs-orgmode@gnu.org; Thu, 14 Aug 2008 21:01:39 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KTnh9-0000EE-42 for Emacs-orgmode@gnu.org; Thu, 14 Aug 2008 21:01:38 -0400 Received: from [199.232.76.173] (port=53411 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTnh8-0000EB-T3 for Emacs-orgmode@gnu.org; Thu, 14 Aug 2008 21:01:34 -0400 Received: from exprod5og111.obsmtp.com ([64.18.0.22]:58139) by monty-python.gnu.org with smtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KTnh6-0003f9-E1 for Emacs-orgmode@gnu.org; Thu, 14 Aug 2008 21:01:33 -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: Emacs-orgmode@gnu.org This is a multi-part message in MIME format. --===============0623177609== Content-class: urn:content-classes:message Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C8FE72.6A3F1128" This is a multi-part message in MIME format. ------_=_NextPart_001_01C8FE72.6A3F1128 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, =20 The export to HTML is really great....=20 =20 One thing that I'm tripping up on is that I'm trying to list data base names that have underscores, e.g. prc_tms.=20 =20 And the 'second word' is coming out subscript: 'prctms' field =20 I realize this may be a feature and not a bug... but how to turn it off? =20 =20 Thanks! Matt ------_=_NextPart_001_01C8FE72.6A3F1128 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

 

The export to HTML is really great…. =

 

One thing that I’m tripping up on is that = I’m trying to list data base names that have underscores, e.g. prc_tms. =

 

And the ‘second word’ is coming out = subscript: 'prctms' = field

 

I realize this may be a feature and not a bug… = but how to turn it off?

 

 

Thanks!

Matt

------_=_NextPart_001_01C8FE72.6A3F1128-- --===============0623177609== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============0623177609==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Exporting to HTML - underscores cause unwanted sub-script Date: Thu, 14 Aug 2008 21:52:11 -0400 Message-ID: <8678.1218765131@gamaville.dokosmarshall.org> References: <9E067A1AECCB154485D4CF7E4BEF4D8E09484B9D@post07.corp.seic.com> Reply-To: nicholas.dokos@hp.com 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 1KToVY-0007lp-3H for emacs-orgmode@gnu.org; Thu, 14 Aug 2008 21:53:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KToVW-0007kc-Er for emacs-orgmode@gnu.org; Thu, 14 Aug 2008 21:53:39 -0400 Received: from [199.232.76.173] (port=57271 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KToVW-0007kZ-CU for emacs-orgmode@gnu.org; Thu, 14 Aug 2008 21:53:38 -0400 Received: from qmta09.westchester.pa.mail.comcast.net ([76.96.62.96]:51714) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KToVW-0000Hu-5F for emacs-orgmode@gnu.org; Thu, 14 Aug 2008 21:53:38 -0400 In-Reply-To: Message from "Parker\, Matthew" of "Thu\, 14 Aug 2008 21\:01\:13 EDT." <9E067A1AECCB154485D4CF7E4BEF4D8E09484B9D@post07.corp.seic.com> 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: "Parker, Matthew" Cc: Emacs-orgmode@gnu.org Parker, Matthew wrote: >=20 > One thing that I=E2=80=99m tripping up on is that I=E2=80=99m trying to l= ist data base names that have underscores, e.g. prc_tms. >=20 > And the =E2=80=98second word=E2=80=99 is coming out subscript: 'prc[tms']= field >=20 > I realize this may be a feature and not a bug=E2=80=A6 but how to turn it= off? >=20 Escape the underscore with a backslash: prc\_tms. Similarly, ^ produces a superscript whereas \^ produces a caret. And for something completely different, \alpha produces α which is rendered as the first letter of the Greek alphabet etc. This notation is TeX-inspired: Carsten is a scientist, he uses TeX/LaTeX for papers and he uses org-mode for notes, so it was natural for him to adopt the notation. Nick From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Parker, Matthew" Subject: RE: Exporting to HTML - underscores cause unwanted sub-script Date: Thu, 14 Aug 2008 22:05:31 -0400 Message-ID: <9E067A1AECCB154485D4CF7E4BEF4D8E09484BA6@post07.corp.seic.com> References: <8678.1218765131@gamaville.dokosmarshall.org> 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 1KTohA-0001M9-RG for emacs-orgmode@gnu.org; Thu, 14 Aug 2008 22:05:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KToh9-0001Lg-FT for Emacs-orgmode@gnu.org; Thu, 14 Aug 2008 22:05:39 -0400 Received: from [199.232.76.173] (port=58752 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KToh9-0001Lc-94 for Emacs-orgmode@gnu.org; Thu, 14 Aug 2008 22:05:39 -0400 Received: from exprod5og103.obsmtp.com ([64.18.0.145]:37923) by monty-python.gnu.org with smtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KToh8-0003jG-Td for Emacs-orgmode@gnu.org; Thu, 14 Aug 2008 22:05:39 -0400 Content-class: urn:content-classes:message In-Reply-To: <8678.1218765131@gamaville.dokosmarshall.org> 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: nicholas.dokos@hp.com Cc: Emacs-orgmode@gnu.org Perfect. Thanks! -----Original Message----- From: nick@gamaville.dokosmarshall.org [mailto:nick@gamaville.dokosmarshall.org] On Behalf Of Nick Dokos Sent: Thursday, August 14, 2008 9:52 PM To: Parker, Matthew Cc: Emacs-orgmode@gnu.org Subject: Re: [Orgmode] Exporting to HTML - underscores cause unwanted sub-script=20 Parker, Matthew wrote: >=20 > One thing that I'm tripping up on is that I'm trying to list data base names that have underscores, e.g. prc_tms. >=20 > And the 'second word' is coming out subscript: 'prc[tms'] field >=20 > I realize this may be a feature and not a bug... but how to turn it off? >=20 Escape the underscore with a backslash: prc\_tms. Similarly, ^ produces a superscript whereas \^ produces a caret. And for something completely different, \alpha produces α which is rendered as the first letter of the Greek alphabet etc. This notation is TeX-inspired: Carsten is a scientist, he uses TeX/LaTeX for papers and he uses org-mode for notes, so it was natural for him to adopt the notation. Nick From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Daniel J. Sinder" Subject: Re: Exporting to HTML - underscores cause unwanted sub-script Date: Fri, 15 Aug 2008 00:23:28 -0700 Message-ID: <48A52EF0.8030201@sindercity.com> References: <9E067A1AECCB154485D4CF7E4BEF4D8E09484BA6@post07.corp.seic.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KTtem-0007qp-Vc for emacs-orgmode@gnu.org; Fri, 15 Aug 2008 03:23:32 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KTtem-0007qQ-86 for Emacs-orgmode@gnu.org; Fri, 15 Aug 2008 03:23:32 -0400 Received: from [199.232.76.173] (port=51331 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTtem-0007q6-2N for Emacs-orgmode@gnu.org; Fri, 15 Aug 2008 03:23:32 -0400 Received: from mx20.gnu.org ([199.232.41.8]:4154) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KTtel-0005CL-Ib for Emacs-orgmode@gnu.org; Fri, 15 Aug 2008 03:23:31 -0400 Received: from sd-green-bigip-177.dreamhost.com ([208.97.132.177] helo=randymail-a9.g.dreamhost.com) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KTtek-0000XE-Ai for Emacs-orgmode@gnu.org; Fri, 15 Aug 2008 03:23:30 -0400 In-Reply-To: <9E067A1AECCB154485D4CF7E4BEF4D8E09484BA6@post07.corp.seic.com> 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: "Parker, Matthew" Cc: Emacs-orgmode@gnu.org For the record, you can also "fix" this problem using the following file-local customization: #+OPTIONS: ^:{} I'm a regular LaTeX user, but find that escaping underscores (with '\') gets tedious when cutting and pasting multiple file names and/or variable names that include them. With the above option, "before_after" is left as is, while "before_{after}" has "after" set as a subscript. See section 12.2 of the documentation. Dan Parker, Matthew wrote: > Perfect. Thanks! > > -----Original Message----- > From: nick@gamaville.dokosmarshall.org > [mailto:nick@gamaville.dokosmarshall.org] On Behalf Of Nick Dokos > Sent: Thursday, August 14, 2008 9:52 PM > To: Parker, Matthew > Cc: Emacs-orgmode@gnu.org > Subject: Re: [Orgmode] Exporting to HTML - underscores cause unwanted > sub-script > > Parker, Matthew wrote: > > >>One thing that I'm tripping up on is that I'm trying to list data base > > names that have underscores, e.g. prc_tms. > >>And the 'second word' is coming out subscript: 'prc[tms'] field >> >>I realize this may be a feature and not a bug... but how to turn it > > off? > > > Escape the underscore with a backslash: prc\_tms. Similarly, ^ produces > a superscript whereas \^ produces a caret. And for something completely > different, \alpha produces α which is rendered as the first letter > of the Greek alphabet etc. > > This notation is TeX-inspired: Carsten is a scientist, he uses TeX/LaTeX > for papers and he uses org-mode for notes, so it was natural for him to > adopt the notation. > > Nick > > > _______________________________________________ > 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rick Moynihan Subject: Re: Exporting to HTML - underscores cause unwanted sub-script Date: Fri, 15 Aug 2008 09:39:26 +0100 Message-ID: <48A540BE.5010408@calicojack.co.uk> References: <9E067A1AECCB154485D4CF7E4BEF4D8E09484B9D@post07.corp.seic.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KTuqi-0001dK-KU for emacs-orgmode@gnu.org; Fri, 15 Aug 2008 04:39:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KTuqe-0001bd-2T for Emacs-orgmode@gnu.org; Fri, 15 Aug 2008 04:39:55 -0400 Received: from [199.232.76.173] (port=55155 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTuqd-0001bY-Qv for Emacs-orgmode@gnu.org; Fri, 15 Aug 2008 04:39:51 -0400 Received: from storm.bpweb.net ([83.223.106.8]:52571) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KTuqd-0000b1-2z for Emacs-orgmode@gnu.org; Fri, 15 Aug 2008 04:39:51 -0400 In-Reply-To: <9E067A1AECCB154485D4CF7E4BEF4D8E09484B9D@post07.corp.seic.com> 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: "Parker, Matthew" Cc: Emacs-orgmode@gnu.org Parker, Matthew wrote: > Hi, > > The export to HTML is really great.... > > One thing that I'm tripping up on is that I'm trying to list data base > names that have underscores, e.g. prc_tms. > > And the 'second word' is coming out subscript: 'prctms' field I had this same problem and tried to find a way to turn it off, but noticed that whenever I used underscores I was referring to elements of a program, e.g. method_name, variable_name, database_name, or /file/path etc... So my solution was to use the following syntax: =method_name= =/file/path= Surrounding the word in ='s like above causes the font to be exported inside an inline tag, which renders as a fixed width font and ensures it's not confused as something else. It also nicely disables the subscripting. R. From mboxrd@z Thu Jan 1 00:00:00 1970 From: David House Subject: Re: Exporting to HTML - underscores cause unwanted sub-script Date: Wed, 20 Aug 2008 09:03:04 +0000 (UTC) Message-ID: References: <9E067A1AECCB154485D4CF7E4BEF4D8E09484BA6@post07.corp.seic.com> <48A52EF0.8030201@sindercity.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KVjhi-000407-Gx for emacs-orgmode@gnu.org; Wed, 20 Aug 2008 05:10:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KVjhg-0003zv-Rb for emacs-orgmode@gnu.org; Wed, 20 Aug 2008 05:10:10 -0400 Received: from [199.232.76.173] (port=59595 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KVjhg-0003zs-M3 for emacs-orgmode@gnu.org; Wed, 20 Aug 2008 05:10:08 -0400 Received: from main.gmane.org ([80.91.229.2]:35856 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KVjhg-0002Bb-9d for emacs-orgmode@gnu.org; Wed, 20 Aug 2008 05:10:08 -0400 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1KVjha-0001KH-F2 for emacs-orgmode@gnu.org; Wed, 20 Aug 2008 09:10:02 +0000 Received: from 212.155.191.21 ([212.155.191.21]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 20 Aug 2008 09:10:02 +0000 Received: from dmhouse by 212.155.191.21 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 20 Aug 2008 09:10:02 +0000 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 J. Sinder sindercity.com> writes: > > For the record, you can also "fix" this problem using the following > file-local customization: > > #+OPTIONS: ^:{} You can also disable this globally with the following code in your .emacs: ;; Don't convert _ and ^ unless surrounded by braces (setq org-export-with-sub-superscripts '{}) IMO this option isn't flexible enough, though. Typically when I write a^b I nearly always mean b as a subscript. However when I write a_b, I rarely mean b as a subscript. So I would like an option that forces me to use braces for subscript, but accepts superscripts without braces. If I have time tonight I'll try to throw a patch together to do this.