From mboxrd@z Thu Jan 1 00:00:00 1970 From: Titus von der Malsburg Subject: [Bug] ~Verbatim~ in headlines breaks LaTeX Date: Fri, 29 May 2015 20:38:39 -0700 Message-ID: <87382eg2f4.fsf@posteo.de> 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]:51957) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YyXbm-0005Bi-Li for emacs-orgmode@gnu.org; Fri, 29 May 2015 23:38:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YyXbj-0005SC-GK for emacs-orgmode@gnu.org; Fri, 29 May 2015 23:38:50 -0400 Received: from mx02.posteo.de ([89.146.194.165]:40326) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YyXbj-0005S8-A3 for emacs-orgmode@gnu.org; Fri, 29 May 2015 23:38:47 -0400 Received: from dovecot03.posteo.de (unknown [185.67.36.28]) by mx02.posteo.de (Postfix) with ESMTPS id 3BCAB22B47C0 for ; Sat, 30 May 2015 05:38:46 +0200 (CEST) Received: from mail.posteo.de (localhost [127.0.0.1]) by dovecot03.posteo.de (Postfix) with ESMTPSA id 3lz7ln41dtz5vN0 for ; Sat, 30 May 2015 05:38:45 +0200 (CEST) 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: Org Mode --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable #+BEGIN_EXAMPLE * The variable ~JAVA_HOME~ =E2=80=A6 #+END_EXAMPLE Exporting this to LaTeX and then compiling to PDF, produces the following error: ! Missing $ inserted. =20 $ l.35 \section{The variable \verb~JAVA_HOME~} Apparently, \verb is not allow in command arguments: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=3Dverbwithin One solution is uses \cprotect: \cprotect\section{The variable \verb~JAVA_HOME~} I don=E2=80=99t know how the exporter works but I wouldn=E2=80=99t be surpr= ised if it wasn=E2=80=99t entirely trivial to implement this. The problem also exists in other situations where ~verbatim~ is used in embedded contexts, for example when used in link descriptions: [[https://encrypted.google.com/search?q=3DJAVA_HOME][Google ~JAVA_HOME~]] Is there anything that speaks against using \texttt for ~verbatim~? The HTML exporter uses the code tag for ~verbatim~ and =3Dcode=3D. Titus --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVaTDAAAoJEK40WfPGE2idcEcIALd9vWQv8SzyqztMuZYYN+p0 3x8vnBbmETLQ40OUjDvgNDF3s78F0YUJYXWJsye4UehhAz1bLveyCMIENrDyeApN UVKWtTOmqH2UcLicqfmOd5pLdCtp/KLJ+Wixc/ymYgGQXL4lDeydMdAiQLZzMipE HkqVyA261J8gIOdd2+NUvu5y5buXbRvDnfn0ZHo0WVEZ26K7DPaXQEHRPvW0HfiF ZAmaG50X+gCoC+xvrIf1d7aDk4MOYyorUibAhA0DCkIKawwGZkPGK+XZ5vYV/4B/ kZ/HDLJhOhu8kAZlOPHhTtv5BuZXuRhU8YqwXWJv76Ujm674Tr0c3qxgig+qK8M= =to98 -----END PGP SIGNATURE----- --=-=-=--