From mboxrd@z Thu Jan 1 00:00:00 1970 From: Camille persson Subject: Re: How to escape characters in tables Date: Fri, 4 Mar 2011 18:41:27 +0100 Message-ID: References: <20110303190707.06e8567c@bhishma.homelinux.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0016e6470eda977bc8049daba9d7 Return-path: Received: from [140.186.70.92] (port=37368 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PvZ0r-0006ax-8V for emacs-orgmode@gnu.org; Fri, 04 Mar 2011 12:42:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PvZ0p-0004Yp-L8 for emacs-orgmode@gnu.org; Fri, 04 Mar 2011 12:42:01 -0500 Received: from mail-vw0-f41.google.com ([209.85.212.41]:34601) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PvZ0p-0004YO-Hm for emacs-orgmode@gnu.org; Fri, 04 Mar 2011 12:41:59 -0500 Received: by vws13 with SMTP id 13so2742590vws.0 for ; Fri, 04 Mar 2011 09:41:58 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Ken.Williams@thomsonreuters.com Cc: emacs-orgmode@gnu.org --0016e6470eda977bc8049daba9d7 Content-Type: text/plain; charset=ISO-8859-1 Hi Ken, 2011/3/4 > > > > > On 3/3/11 9:07 PM, "Suvayu Ali" wrote: > > >On Wed, 2 Mar 2011 09:25:57 -0600 > > 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 > > > --0016e6470eda977bc8049daba9d7 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Ken,

2011/3/4 <<= a href=3D"mailto:Ken.Williams@thomsonreuters.com">Ken.Williams@thomsonreute= rs.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@tho= msonreuters.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 delimite= r
>> between cells. =A0Anyone have advice or a pointer to the docs I ca= n't
>> seem to find?
>>
>
>I don't think you can.

I'm making slight progress, actually.

On StackOverflow
(http://stackoverflow.com/questions/5144862/e= scape-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 th= at
shows my intent:=A0

=A0| foo | =3Dm/foo\vert{}foodfight/=3D |

The \vert{} seems not to work inside a =3D...=3D construction. =A0Furthermo= re,
the =3D...=3D construction is problematic there because it conflicts with t= he
start-of-formula syntax.

=3D...=3D is used for cod= e so it is printed as it written
You may use \texttt{}
| foo | \textt= t{m\/foo\vert{}foodfight\/} |

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

CP
=A0


--
Ken Williams
Senior Research Scientist
Thomson Reuters
http://labs.th= omsonreuters.com



--0016e6470eda977bc8049daba9d7--