Re: [O] including the | character in a table

2018-07-25 Thread Kevin Foley
No problem, I actually just ran into the need to do this yesterday so your
question was very timely.

Kevin


Re: [O] including the | character in a table

2018-07-25 Thread Alan Schmitt
On 2018-07-25 07:43, Kevin Foley  writes:

> You can use \vert to insert pipes in exported tables.

Thank you Michel and Kevin for these proposals. \vert works great (as
long as it's outside ~~, but I can deal with it).

Thanks!

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂, Mauna Loa Obs. 2018-06: 410.79, 2017-06: 408.84


signature.asc
Description: PGP signature


Re: [O] including the | character in a table

2018-07-25 Thread Kevin Foley
You can use \vert to insert pipes in exported tables.


Kevin


On Wed, Jul 25, 2018, 6:21 AM Michel Schinz  wrote:

> Hello,
>
> On Wed, Jul 25, 2018, at 11:22, Alan Schmitt wrote:
> > I'm writing a cheat sheet for a programming language, and I'm having
> > trouble with operators that use |. For instance:
> >
> > | match expr with   | pattern matching |
> > | | pattern -> expr | action   |
> >
> > How can I escape the |? I tried putting a \ before but it does not work.
>
> I've used macros in the past for such a case. Quite heavyweight, but I
> didn't find anything better. Here is an example (which you could augment if
> you wanted to export to LaTeX too):
>
> #+MACRO: I @@html:|@@
>
> | match expr with| pattern matching |
> | {{{I}}}pattern -> expr | action   |
>
> Michel.
>
>


Re: [O] including the | character in a table

2018-07-25 Thread Michel Schinz
Hello,

On Wed, Jul 25, 2018, at 11:22, Alan Schmitt wrote:
> I'm writing a cheat sheet for a programming language, and I'm having
> trouble with operators that use |. For instance:
> 
> | match expr with   | pattern matching |
> | | pattern -> expr | action   |
> 
> How can I escape the |? I tried putting a \ before but it does not work.

I've used macros in the past for such a case. Quite heavyweight, but I didn't 
find anything better. Here is an example (which you could augment if you wanted 
to export to LaTeX too):

#+MACRO: I @@html:|@@

| match expr with| pattern matching |
| {{{I}}}pattern -> expr | action   |

Michel.



[O] including the | character in a table

2018-07-25 Thread Alan Schmitt
Hello,

I'm writing a cheat sheet for a programming language, and I'm having
trouble with operators that use |. For instance:

| match expr with   | pattern matching |
| | pattern -> expr | action   |

How can I escape the |? I tried putting a \ before but it does not work.

Thanks,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂, Mauna Loa Obs. 2018-06: 410.79, 2017-06: 408.84


signature.asc
Description: PGP signature