Clément Pit--Claudel <clement....@gmail.com> 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