[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Escaping :: in lists
From: |
Nicolas Goaziou |
Subject: |
Re: [O] Escaping :: in lists |
Date: |
Mon, 08 Aug 2016 19:00:47 +0200 |
Clément Pit--Claudel <address@hidden> writes:
> I'm trying to make a list of code snippets including double colons:
>
> - ~head :: tail~
> - =head :: tail=
> - src_ocaml{head :: tail}
>
> But exporting to LaTeX fails:
>
> \item[{\textasciitilde{}head}] tail\textasciitilde{}
> \item[{=head}] tail=
> \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~
-
=head :: tail=
-
src_emacs-lisp{"head :: tail"}
Regards,
--
Nicolas Goaziou