emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: "Clément Pit--Claudel" <clement.pit@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Escaping :: in lists
Date: Mon, 08 Aug 2016 19:00:47 +0200	[thread overview]
Message-ID: <87shuf8abk.fsf@saiph.selenimh> (raw)
In-Reply-To: <ed3c6b13-53b0-51e1-0bb3-9ee43f5e763a@gmail.com> ("Clément Pit--Claudel"'s message of "Mon, 8 Aug 2016 12:09:53 -0400")

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

      reply	other threads:[~2016-08-08 17:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-08 16:09 Escaping :: in lists Clément Pit--Claudel
2016-08-08 17:00 ` Nicolas Goaziou [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87shuf8abk.fsf@saiph.selenimh \
    --to=mail@nicolasgoaziou.fr \
    --cc=clement.pit@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).