From mboxrd@z Thu Jan 1 00:00:00 1970 From: Baoqiu Cui Subject: Re: ~verbatim~ and =code= inconsistency exporting to Latex/HTML Date: Fri, 13 Mar 2009 19:23:09 -0700 Message-ID: References: <20090312203957.GA22160@t61> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LiJX8-0007hD-SG for emacs-orgmode@gnu.org; Fri, 13 Mar 2009 22:23:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LiJX4-0007h1-Db for emacs-orgmode@gnu.org; Fri, 13 Mar 2009 22:23:30 -0400 Received: from [199.232.76.173] (port=44287 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LiJX4-0007gy-8H for emacs-orgmode@gnu.org; Fri, 13 Mar 2009 22:23:26 -0400 Received: from main.gmane.org ([80.91.229.2]:52487 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 1LiJX3-0007OM-QV for emacs-orgmode@gnu.org; Fri, 13 Mar 2009 22:23:26 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LiJX1-0001vX-3f for emacs-orgmode@gnu.org; Sat, 14 Mar 2009 02:23:23 +0000 Received: from nat-dip6.cfw-a-gci.corp.yahoo.com ([209.131.62.115]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 14 Mar 2009 02:23:23 +0000 Received: from cbaoqiu by nat-dip6.cfw-a-gci.corp.yahoo.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 14 Mar 2009 02:23:23 +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 Carsten Dominik writes: > On Mar 12, 2009, at 9:39 PM, Emilio Garcia Cota wrote: > >> #+TITLE: (bug|feature)? report -- exporting ~verbatim~ and =code= >> into Latex >> #+AUTHOR: me >> #+EMAIL: e@ma.il >> # I use latest Git (that's 1 commit ahead of 6.24c) on Emacs 22.3.1 >> >> * ~verbatim~ and =code=---inconsistency exporting to Latex and HTML >> >> #+BEGIN_EXAMPLE >> [a-zA-Z_] >> [!#&*+-/:;<=>?] >> [\t\n\r ,] >> This works OK >> #+END_EXAMPLE >> >> However if I want to randomly inline any of those in a paragraph, >> =[!#&*+-/:;<=>?]= they're not properly escaped =[a-zA-Z_]= for Latex >> ---while for HTML =[\t\n\r ,]= org-mode does the Right Thing(tm). > > The reason for this is that in LaTeX, inline pieces use > > \verb=[a-zA-Z_]= Don't know if this is a good idea, but can we scan the text string and dynamically choose a delimiter that does not appear in the string? We need to have some delimiter candidates to choose from, and have to spend some extra CPU cycles to scan the string, which can be assumed short?? > If "=" is part of the string, this construct fails. Whatever character > I choose, it will fail for someone. I guess I could use the > paragraph symbol §, maybe this is the least likely one of them all? > it works in my LaTeX installation - could a few more people try this > on their systems? > > does > > \verb§bladibla§ > > work in LaTeX? I got the following error on my MacBook: ------------------------------------------------------------------------ ERROR: Package inputenc Error: Keyboard character used is undefined --- TeX said --- (inputenc) in inputencoding `utf8'. See the inputenc package documentation for explanation. Type H for immediate help. ... l.43 \verb.§ bladibla.§ --- HELP --- >From the .log file... You need to provide a definition with \DeclareInputText or \DeclareInputMath before using this key. ------------------------------------------------------------------------ Baoqiu > >> I also find odd that ~verbatim~'ed text is =monospaced= in Latex >> while >> it is not in HTML. > > Yes, I know this, both constructs use \verb in LateX. I'd say this is > clearly good enough, though. > > Is there a non-monospaced, verbatim equivalent for \verb in LaTeX? > >> >> * Another little thing---EMAIL option for Latex seems to have no >> effect >> The +EMAIL option below is not shown in Latex---whereas I can see it >> in >> the exported HTML. Is that a feature, a bug, or both? > > What should it influence? The standard LaTeX header we use (maketitle) > does not list the email. You can build your own title, using > {{{email}}} > as a place holder. > > - Carsten > > >> >> * Thanks! >> >> >> _______________________________________________ >> 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 > > > > _______________________________________________ > 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