From mboxrd@z Thu Jan 1 00:00:00 1970 From: Titus von der Malsburg Subject: Re: [Bug] ~Verbatim~ in headlines breaks LaTeX Date: Fri, 05 Jun 2015 12:28:20 -0700 Message-ID: <877fri6jl7.fsf@posteo.de> References: <87382eg2f4.fsf@posteo.de> <87617a65y5.fsf@alphaville.usersys.redhat.com> <87vbfa63ud.fsf@posteo.de> <87wpzqxz9m.fsf@nicolasgoaziou.fr> <87twuu5bzv.fsf@posteo.de> <87r3px5ee3.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50569) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0xIX-0003SI-50 for emacs-orgmode@gnu.org; Fri, 05 Jun 2015 15:29:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z0xIT-0004t6-SL for emacs-orgmode@gnu.org; Fri, 05 Jun 2015 15:28:57 -0400 Received: from mx02.posteo.de ([89.146.194.165]:39354) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0xIT-0004t0-Ln for emacs-orgmode@gnu.org; Fri, 05 Jun 2015 15:28:53 -0400 In-reply-to: <87r3px5ee3.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: Nick Dokos , emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2015-05-31 Sun 01:40, Nicolas Goaziou wrote: > 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 =3Dverbati= m=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". Well, \verb is short for verbatim. So, yeah, it is pretty unexpected that =3Dverbatim=3D is translated to testtt and ~code~ to \verb. >>> 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? Below is a list of things that I tested. This list of test cases is probably not exhaustive. Things that don't work with \verb (produce malformed LaTeX): #+TITLE: ~test~ #+CAPTION: ~test~ [[/tmp/img.png]] * ~test~ ** ~test~ =E2=80=A6 These two did not produce the intended results (sub and super script don=E2=80=99t work) but the LaTeX is not malformed: test^~test~ test_~test~ Things that did work as expected with \verb: ~test~ | ~test~ | [[http://www.fsf.org/][~test~]] - ~test~ :: this is a ~test~ [fn:1] [fn:1] ~test~ *~test~* =3D~test~=3D /~test~/ +~test~+ _~test~_ =2D-=20 Dr Titus von der Malsburg Feodor Lynen Research Fellow Dept. Psychology & Dept. Linguistics University of California, San Diego http://pages.ucsd.edu/~tvondermalsburg/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVcfhUAAoJEK40WfPGE2idPwIH/RIdIn5SBNEaOMQ6BQHOQ7Nx GOncS9hk4a6n1CArQiBzXc0HTMFhBe4sQiLX6NMJnDGwH3X2601EF04+BVY4LgB6 FuT14sujandKoUAGdWPU1NmpA8b20cMxsvtpb6qal0KFHLluNwbWN+4rpmMu926c GrJGLike1r6cLdUB7PMO0ngwIMOJPzwn9k0grOsyQ7QFtFiSINAFpRfmCPOCaL8L kDmbzSHi64dIT8GInLziFxPadFdk2Mb/37F8cxPrq4Vrs8Gun5EziBZUm5Cx+PgD KPdvgbDHRG5zk73sdpiGd5DO4/XEqQjYC4Wms8ixbidJb83XrCxfGWVnwyTdg1w= =uCq3 -----END PGP SIGNATURE----- --=-=-=--