From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: ~verbatim~ and =code= inconsistency exporting to Latex/HTML Date: Sat, 14 Mar 2009 08:37:15 +0100 Message-ID: References: <20090312203957.GA22160@t61> Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LiOQv-0000xA-H2 for emacs-orgmode@gnu.org; Sat, 14 Mar 2009 03:37:25 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LiOQq-0000wU-20 for emacs-orgmode@gnu.org; Sat, 14 Mar 2009 03:37:24 -0400 Received: from [199.232.76.173] (port=59215 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LiOQp-0000wP-UB for emacs-orgmode@gnu.org; Sat, 14 Mar 2009 03:37:19 -0400 Received: from mail-ew0-f179.google.com ([209.85.219.179]:33855) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LiOQp-0007Hd-Ev for emacs-orgmode@gnu.org; Sat, 14 Mar 2009 03:37:19 -0400 Received: by ewy27 with SMTP id 27so3817693ewy.42 for ; Sat, 14 Mar 2009 00:37:17 -0700 (PDT) In-Reply-To: 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: Baoqiu Cui Cc: emacs-orgmode@gnu.org Yes, this is the right idea, I have implemented this, thanks. - Carsten On Mar 14, 2009, at 3:23 AM, Baoqiu Cui wrote: > Carsten Dominik writes: > >> On Mar 12, 2009, at 9:39 PM, Emilio Garcia Cota wrote: >> >>> #+TITLE: (bug|feature)? report -- exporting ~verbatim~ and =3Dcode=3D >>> 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 =3Dcode=3D---inconsistency exporting to Latex and = HTML >>> >>> #+BEGIN_EXAMPLE >>> [a-zA-Z_] >>> [!#&*+-/:;<=3D>?] >>> [\t\n\r ,] >>> This works OK >>> #+END_EXAMPLE >>> >>> However if I want to randomly inline any of those in a paragraph, >>> =3D[!#&*+-/:;<=3D>?]=3D they're not properly escaped =3D[a-zA-Z_]=3D = for Latex >>> ---while for HTML =3D[\t\n\r ,]=3D org-mode does the Right = Thing(tm). >> >> The reason for this is that in LaTeX, inline pieces use >> >> \verb=3D[a-zA-Z_]=3D > > 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 =20 > spend > some extra CPU cycles to scan the string, which can be assumed short?? > >> If "=3D" is part of the string, this construct fails. Whatever =20 >> character >> I choose, it will fail for someone. I guess I could use the >> paragraph symbol =A7, 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=A7bladibla=A7 >> >> 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.=A7 > bladibla.=A7 > --- HELP --- > =46rom 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 =3Dmonospaced=3D in Latex >>> while >>> it is not in HTML. >> >> Yes, I know this, both constructs use \verb in LateX. I'd say this =20= >> 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 =20= >>> it >>> in >>> the exported HTML. Is that a feature, a bug, or both? >> >> What should it influence? The standard LaTeX header we use =20 >> (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 > > > > _______________________________________________ > 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