From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Escaping :: in lists Date: Mon, 08 Aug 2016 19:00:47 +0200 Message-ID: <87shuf8abk.fsf@saiph.selenimh> References: 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]:43079) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWnv0-0008JK-AC for emacs-orgmode@gnu.org; Mon, 08 Aug 2016 13:00:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bWnux-00060q-2x for emacs-orgmode@gnu.org; Mon, 08 Aug 2016 13:00:50 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:35605) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWnuw-00060m-RO for emacs-orgmode@gnu.org; Mon, 08 Aug 2016 13:00:46 -0400 In-Reply-To: (=?utf-8?Q?=22Cl=C3=A9ment?= Pit--Claudel"'s message of "Mon, 8 Aug 2016 12:09:53 -0400") 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" To: =?utf-8?Q?Cl=C3=A9ment?= Pit--Claudel Cc: emacs-orgmode@gnu.org Cl=C3=A9ment Pit--Claudel writes: > I'm trying to make a list of code snippets including double colons: > > - ~head :: tail~ > - =3Dhead :: tail=3D > - src_ocaml{head :: tail} > > But exporting to LaTeX fails: > > \item[{\textasciitilde{}head}] tail\textasciitilde{} > \item[{=3Dhead}] tail=3D > \item[{src\(_{\text{ocaml}}\)\{head}] tail\} > > How can I escape the '::'? There is no general way to escape characters in Org. The closest we have is entities (i.e., \colon), but that wouldn't work here. You can trick the parser by putting the colons on another line: - ~head :: tail~ -=20 =3Dhead :: tail=3D - src_emacs-lisp{"head :: tail"} Regards, --=20 Nicolas Goaziou