From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Re: Verbatim export Date: Fri, 09 Jul 2010 09:13:09 -0400 Message-ID: <87aaq0ajdm.fsf@gollum.intra.norang.ca> References: <80zky1n7o0.fsf@gmail.com> <87d3uxiu2k.fsf@gollum.intra.norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=59832 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OXDOK-0004jb-W1 for emacs-orgmode@gnu.org; Fri, 09 Jul 2010 09:13:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OXDOJ-0004Pz-G5 for emacs-orgmode@gnu.org; Fri, 09 Jul 2010 09:13:20 -0400 Received: from mho-01-ewr.mailhop.org ([204.13.248.71]:62766) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OXDOJ-0004Pn-ER for emacs-orgmode@gnu.org; Fri, 09 Jul 2010 09:13:19 -0400 In-Reply-To: ("Vincent =?utf-8?Q?Bela=C3=AFche=22's?= message of "Fri\, 9 Jul 2010 05\:34\:53 +0200") 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: Vincent =?utf-8?Q?Bela=C3=AFche?= Cc: emacs-orgmode@gnu.org Vincent Bela=C3=AFche writes: > [...] > >> >> >> #+begin_example >> - this - >> #+end_example >> >> : - this one too >> : - and that one - >> >> > > Thank you for your quick reply, this is not exactly what I was looking > for. What you propose will encapsulate all the text into a >
 
block. This means that the font and > background color are changed. I would not like this to happen, just the > characters to lose their special meaning. > > Probably my initial email was confusing because I used the term > "verbatim" which in LaTeX changes the font. What I am looking for is to > make some text to be interpreted litterally, without having all the > surrounding formatters to be overloaded. > > The dash is not a very good example because most of the time the > solution is just not to place any dash at the beginning of a line. > However I had the following issue: I wanted to quote some text (so using > #+begin/end_quote), and this text was beginning with a dash, then I > didn't know how to escape the dash. > > The issue which I meet more often is when there are some `[0]' which I > don't want to be interpreted as footnotes, so I was proposing some > general solution like > > \verbatim{EOF}In reference [0] EOF. > > Another solution would be to have a \relax{} macro, then the following > would also work > > In reference [\relax{}0] > > \relax would also make it for like for dashes: > > #+begin_quote > \relax{}- this dash is not a bullet mark > #+end_quote > > Well, there are several ways to solve the issue. I am not sure which is > better. The only other thing that works today that I'm aware of is you surround your text with equal signs as in =3D[0]=3D but this also probably doesn't do exactly what you want for both LaTeX and HTML export. This uses \texttt in LaTeX and ... in HTML. In HTML you're free to defined CSS for the block but you won't end up with a verbatim block in LaTeX. I proposed the two previous examples because preceeding the text with ': ' creates a \begin{verbatim} block in LaTeX. If you document is targeted only for LaTeX export then you can use LaTeX macros directly in the source. Regards, Bernt