From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [Bug] ~Verbatim~ in headlines breaks LaTeX Date: Sun, 31 May 2015 10:40:04 +0200 Message-ID: <87r3px5ee3.fsf@nicolasgoaziou.fr> References: <87382eg2f4.fsf@posteo.de> <87617a65y5.fsf@alphaville.usersys.redhat.com> <87vbfa63ud.fsf@posteo.de> <87wpzqxz9m.fsf@nicolasgoaziou.fr> <87twuu5bzv.fsf@posteo.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55997) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YyyxD-00024K-HS for emacs-orgmode@gnu.org; Sun, 31 May 2015 04:50:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yyyx8-0000tp-Ie for emacs-orgmode@gnu.org; Sun, 31 May 2015 04:50:47 -0400 Received: from slow1-d.mail.gandi.net ([217.70.178.86]:43101) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yyyx8-0000th-CX for emacs-orgmode@gnu.org; Sun, 31 May 2015 04:50:42 -0400 Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) by slow1-d.mail.gandi.net (Postfix) with ESMTP id B20BB47F4A6 for ; Sun, 31 May 2015 10:38:37 +0200 (CEST) In-Reply-To: <87twuu5bzv.fsf@posteo.de> (Titus von der Malsburg's message of "Sat, 30 May 2015 08:19:41 -0700") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Titus von der Malsburg Cc: Nick Dokos , emacs-orgmode@gnu.org Titus von der Malsburg writes: > Huh, ~code~ is translated to \verb and =3Dverbatim=3D is translated to > \texttt (plus escaping of some special characters)? Correct. > If \verb is used at all, shouldn=E2=80=99t it be generated by =3Dverbatim= =3D > instead of by ~code~? Why is that? Because \verb reminds =3Dverbatim=3D? Really, both "code" and "verbatim" syntax produces verbatim contents. Therefore both are eligible for "\verb". Anyway, you can customize `org-latex-text-markup-alist' to your liking. >> Note that we could do better anyway and switch command depending on >> context. > > Yes, I suppose anything is better than producing malformed LaTeX. Could you give the list of all contexts requiring such a switch, and what the result should be in each case? Thank you. Regards,