* Escaping :: in lists
@ 2016-08-08 16:09 Clément Pit--Claudel
2016-08-08 17:00 ` Nicolas Goaziou
0 siblings, 1 reply; 2+ messages in thread
From: Clément Pit--Claudel @ 2016-08-08 16:09 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 359 bytes --]
Hi emacs-orgmode,
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 '::'?
Thanks!
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Escaping :: in lists
2016-08-08 16:09 Escaping :: in lists Clément Pit--Claudel
@ 2016-08-08 17:00 ` Nicolas Goaziou
0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2016-08-08 17:00 UTC (permalink / raw)
To: Clément Pit--Claudel; +Cc: emacs-orgmode
Clément Pit--Claudel <clement.pit@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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-08-08 17:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-08 16:09 Escaping :: in lists Clément Pit--Claudel
2016-08-08 17:00 ` Nicolas Goaziou
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).