From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: ~verbatim~ and =code= inconsistency exporting to Latex/HTML Date: Tue, 17 Mar 2009 20:16:01 +0100 Message-ID: <78A2A63F-E91F-4498-9F71-49C03CCF74E3@uva.nl> References: <20090312203957.GA22160@t61> <20090314192306.GA18749@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 1Ljeln-0004bc-Dq for emacs-orgmode@gnu.org; Tue, 17 Mar 2009 15:16:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ljelh-0004Vl-Qm for emacs-orgmode@gnu.org; Tue, 17 Mar 2009 15:16:09 -0400 Received: from [199.232.76.173] (port=47807 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ljelh-0004Vi-Jw for emacs-orgmode@gnu.org; Tue, 17 Mar 2009 15:16:05 -0400 Received: from mail-ew0-f160.google.com ([209.85.219.160]:57564) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ljelh-0000RT-2F for emacs-orgmode@gnu.org; Tue, 17 Mar 2009 15:16:05 -0400 Received: by ewy4 with SMTP id 4so235313ewy.42 for ; Tue, 17 Mar 2009 12:16:04 -0700 (PDT) In-Reply-To: <20090314192306.GA18749@t61> 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: Emilio Garcia Cota Cc: emacs-orgmode@gnu.org On Mar 14, 2009, at 8:23 PM, Emilio Garcia Cota wrote: > Carsten Dominik wrote: >> The reason for this is that in LaTeX, inline pieces use >> >> \verb=3D[a-zA-Z_]=3D >> >> 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? > > It works, but it would just move the problem somewhere else instead of > solving it. > > More flexible solutions (yet more involved) could be: > - Escape the characters ourselves (i.e. do not use \verb) > - have a stack of suitable delimiter characters (i.e. any character =20= > except > letters, * or space) and use the first one that's not in the region. This is how it works now. > > A simpler solution would be to stick to '=3D' and '~' as delimiters, > documenting this shortcoming when exporting to LaTeX. > >> Yes, I know this, both constructs use \verb in LateX. I'd say this =20= >> is >> clearly good enough, though. > > Agreed. > >> Is there a non-monospaced, verbatim equivalent for \verb in LaTeX? > > AFAIK there isn't. > >> 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. > > I was expecting it to generate something like this: > \author{my Name $<$\href{mailto:e@ma.il}{e@ma.il}$>$ > Anyway yes, I could do it myself. > > > > By the way, using \verb inside other commands (such as \section) is > forbidden in LaTeX; shall we include a warning in the manual, silently > ignore ~~ and =3D=3D in those places, or maybe just leave as it is = (It'll > break when compiling the.tex) ? I think we can just have it break when compiling TeX. We cannot possibly document TeX in the Org manual. - Carsten