From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michel Schinz Subject: Re: including the | character in a table Date: Wed, 25 Jul 2018 12:21:19 +0200 Message-ID: <1532514079.1723507.1452263448.11595CD6@webmail.messagingengine.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42461) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fiGv7-0007DE-Rp for emacs-orgmode@gnu.org; Wed, 25 Jul 2018 06:21:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fiGv4-0003ES-RQ for emacs-orgmode@gnu.org; Wed, 25 Jul 2018 06:21:25 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:51459) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fiGv4-0003CI-HZ for emacs-orgmode@gnu.org; Wed, 25 Jul 2018 06:21:22 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 2AF662104C for ; Wed, 25 Jul 2018 06:21:20 -0400 (EDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org 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.