From mboxrd@z Thu Jan 1 00:00:00 1970 From: Emilio Garcia Cota Subject: Re: ~verbatim~ and =code= inconsistency exporting to Latex/HTML Date: Sat, 14 Mar 2009 20:23:06 +0100 Message-ID: <20090314192306.GA18749@t61> 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 1LiZRW-0001WY-5K for emacs-orgmode@gnu.org; Sat, 14 Mar 2009 15:22:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LiZRR-0001VE-53 for emacs-orgmode@gnu.org; Sat, 14 Mar 2009 15:22:45 -0400 Received: from [199.232.76.173] (port=54819 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LiZRQ-0001VB-WC for emacs-orgmode@gnu.org; Sat, 14 Mar 2009 15:22:41 -0400 Received: from mail-fx0-f176.google.com ([209.85.220.176]:60782) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LiZRQ-0008UG-Ht for emacs-orgmode@gnu.org; Sat, 14 Mar 2009 15:22:40 -0400 Received: by fxm24 with SMTP id 24so3185294fxm.42 for ; Sat, 14 Mar 2009 12:22:39 -0700 (PDT) Content-Disposition: inline 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: Carsten Dominik Cc: emacs-orgmode@gnu.org Carsten Dominik wrote: > The reason for this is that in LaTeX, inline pieces use > > \verb=[a-zA-Z_]= > > 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? 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 except letters, * or space) and use the first one that's not in the region. A simpler solution would be to stick to '=' and '~' as delimiters, documenting this shortcoming when exporting to LaTeX. > Yes, I know this, both constructs use \verb in LateX. I'd say this 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 (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 == in those places, or maybe just leave as it is (It'll break when compiling the.tex) ?