emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Camille persson <camille.persson@gmail.com>
To: Ken.Williams@thomsonreuters.com
Cc: emacs-orgmode@gnu.org
Subject: Re: How to escape characters in tables
Date: Fri, 4 Mar 2011 18:41:27 +0100	[thread overview]
Message-ID: <AANLkTim5+CLM2NXDY3wBQNAG9BRNwktY-mR-ZZ5tVEAC@mail.gmail.com> (raw)
In-Reply-To: <C9966697.244AD%ken.williams@thomsonreuters.com>

[-- Attachment #1: Type: text/plain, Size: 1475 bytes --]

 Hi Ken,

2011/3/4 <Ken.Williams@thomsonreuters.com>

>
>
>
>
> On 3/3/11 9:07 PM, "Suvayu Ali" <fatkasuvayu+linux@gmail.com> wrote:
>
> >On Wed, 2 Mar 2011 09:25:57 -0600
> ><Ken.Williams@thomsonreuters.com> wrote:
> >
> >> The issue is that I've got tables whose cells contain the '|'
> >> character (it's a table of regular expressions), and I can't seem to
> >> figure out how to escape it so that it doesn't mean a delimiter
> >> between cells.  Anyone have advice or a pointer to the docs I can't
> >> seem to find?
> >>
> >
> >I don't think you can.
>
> I'm making slight progress, actually.
>
> On StackOverflow
> (
> http://stackoverflow.com/questions/5144862/escape-pipe-character-in-org-mo
> de), it was suggested to use the \vert{} character escape, which does
> work.
>
> However, since this is code (a regular expression), I want it to appear
> monospaced, so I'm not out of the woods yet - here's a test case that
> shows my intent:


>  | foo | =m/foo\vert{}foodfight/= |
>
> The \vert{} seems not to work inside a =...= construction.  Furthermore,
> the =...= construction is problematic there because it conflicts with the
> start-of-formula syntax.
>

=...= is used for code so it is printed as it written
You may use \texttt{}
| foo | \texttt{m\/foo\vert{}foodfight\/} |

I don't have emacs right now so I can test it... but it should work

CP


>
>
> --
> Ken Williams
> Senior Research Scientist
> Thomson Reuters
> http://labs.thomsonreuters.com
>
>
>

[-- Attachment #2: Type: text/html, Size: 2663 bytes --]

  reply	other threads:[~2011-03-04 17:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-02 15:25 How to escape characters in tables Ken.Williams
2011-03-03 15:57 ` Eric S Fraga
2011-03-03 16:02   ` Ken.Williams
2011-03-04  3:07 ` Suvayu Ali
2011-03-04 15:58   ` Ken.Williams
2011-03-04 17:41     ` Camille persson [this message]
2011-03-07 17:45       ` Ken.Williams

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=AANLkTim5+CLM2NXDY3wBQNAG9BRNwktY-mR-ZZ5tVEAC@mail.gmail.com \
    --to=camille.persson@gmail.com \
    --cc=Ken.Williams@thomsonreuters.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).