* Verbatim export
@ 2010-07-08 18:35 Vincent Belaïche
2010-07-08 19:26 ` Christian Moe
2010-07-08 20:42 ` Bernt Hansen
0 siblings, 2 replies; 6+ messages in thread
From: Vincent Belaïche @ 2010-07-08 18:35 UTC (permalink / raw)
To: Org mode; +Cc: Vincent Belaïche
Hello,
I would like to know how to make some sequence of characters to be
verbatim, ie that special characters lose their special meaning.
For instance in the following quote the first `-' will be interpreted as
a bullet point when exporting to HTML
#+begin_quote
- this -
#+end_quote
So I tried this:
#+begin_quote
~-~ this -
#+end_quote
but then the first `-' is not in the same font as the second one, it
looks exaclty the same as if I had used the code =xxx= font
specfication.
I also tried this:
#+begin_quote
\- this -
#+end_quote
I does not work (the first dash is not exported at all).
The same problem is for `[0]', how can you get this string not to be
interpreted as a footnote reference.
It should be possible to make the following type of things:
#+begin_verbatim
[0]
#+end_verbatim
or \verbatim{EOF}Hello - EOF
where EOF can be any string that is not found in the verbatim string. so
\verbatim{.}Hello - .
would to the same as \verbatim{xxx}Hello - xxx.
In the same vein, it would be useful to have some \relax{} macro not
expanding to anything, this way _\relax{} some underlining with
underlined leading spaces_ would work.
BR,
Vincent.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Verbatim export
2010-07-08 18:35 Verbatim export Vincent Belaïche
@ 2010-07-08 19:26 ` Christian Moe
2010-07-08 20:42 ` Bernt Hansen
1 sibling, 0 replies; 6+ messages in thread
From: Christian Moe @ 2010-07-08 19:26 UTC (permalink / raw)
Cc: Org mode
Hi,
Typographically, isn't what you want here an *en dash*, rather than a
hyphen? When the dash is set off by a space, that is usually the case.
Try:
#+begin_quote
-- this --
#+end_quote
(don't forget to add a space after the last double hyphen, or it will
not be converted)
Cheers,
CM
Vincent Belaïche wrote:
> Hello,
>
> I would like to know how to make some sequence of characters to be
> verbatim, ie that special characters lose their special meaning.
>
> For instance in the following quote the first `-' will be interpreted as
> a bullet point when exporting to HTML
>
> #+begin_quote
> - this -
> #+end_quote
>
> So I tried this:
>
> #+begin_quote
> ~-~ this -
> #+end_quote
>
> but then the first `-' is not in the same font as the second one, it
> looks exaclty the same as if I had used the code =xxx= font
> specfication.
>
>
> I also tried this:
>
> #+begin_quote
> \- this -
> #+end_quote
>
> I does not work (the first dash is not exported at all).
>
> The same problem is for `[0]', how can you get this string not to be
> interpreted as a footnote reference.
>
> It should be possible to make the following type of things:
>
> #+begin_verbatim
> [0]
> #+end_verbatim
>
> or \verbatim{EOF}Hello - EOF
>
> where EOF can be any string that is not found in the verbatim string. so
>
> \verbatim{.}Hello - .
>
> would to the same as \verbatim{xxx}Hello - xxx.
>
>
> In the same vein, it would be useful to have some \relax{} macro not
> expanding to anything, this way _\relax{} some underlining with
> underlined leading spaces_ would work.
>
> BR,
> Vincent.
>
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
--
Christian Moe
E-mail: mail@christianmoe.com
Website: http://christianmoe.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Verbatim export
2010-07-08 18:35 Verbatim export Vincent Belaïche
2010-07-08 19:26 ` Christian Moe
@ 2010-07-08 20:42 ` Bernt Hansen
2010-07-09 3:34 ` Vincent Belaïche
1 sibling, 1 reply; 6+ messages in thread
From: Bernt Hansen @ 2010-07-08 20:42 UTC (permalink / raw)
To: Vincent Belaïche; +Cc: Org mode
Vincent Belaïche <vincent.b.1@hotmail.fr> writes:
> I would like to know how to make some sequence of characters to be
> verbatim, ie that special characters lose their special meaning.
>
> For instance in the following quote the first `-' will be interpreted as
> a bullet point when exporting to HTML
>
> #+begin_quote
> - this -
> #+end_quote
>
> So I tried this:
>
> #+begin_quote
> ~-~ this -
> #+end_quote
>
> but then the first `-' is not in the same font as the second one, it
> looks exaclty the same as if I had used the code =xxx= font
> specfication.
>
>
> I also tried this:
>
> #+begin_quote
> \- this -
> #+end_quote
>
> I does not work (the first dash is not exported at all).
>
> The same problem is for `[0]', how can you get this string not to be
> interpreted as a footnote reference.
>
> It should be possible to make the following type of things:
>
> #+begin_verbatim
> [0]
> #+end_verbatim
#+begin_example
- this -
#+end_example
: - this one too
: - and that one -
HTH,
Bernt
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: Re: Verbatim export
2010-07-08 20:42 ` Bernt Hansen
@ 2010-07-09 3:34 ` Vincent Belaïche
2010-07-09 13:13 ` Bernt Hansen
0 siblings, 1 reply; 6+ messages in thread
From: Vincent Belaïche @ 2010-07-09 3:34 UTC (permalink / raw)
To: bernt; +Cc: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 1992 bytes --]
[...]
>
>
> #+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
<pre class="example" > </pre> 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.
Vincent
> HTH,
> Bernt
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
_________________________________________________________________
Découvrez Microsoft Security Essentials, l'antivirus gratuit par Microsoft
http://clk.atdmt.com/FRM/go/212688364/direct/01/
[-- Attachment #1.2: Type: text/html, Size: 2357 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Re: Verbatim export
2010-07-09 3:34 ` Vincent Belaïche
@ 2010-07-09 13:13 ` Bernt Hansen
2010-07-09 18:48 ` Vincent Belaïche
0 siblings, 1 reply; 6+ messages in thread
From: Bernt Hansen @ 2010-07-09 13:13 UTC (permalink / raw)
To: Vincent Belaïche; +Cc: emacs-orgmode
Vincent Belaïche <vincent.b.1@hotmail.fr> 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
> <pre class="example" > </pre> 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 =[0]= but this also probably doesn't do
exactly what you want for both LaTeX and HTML export. This uses \texttt
in LaTeX and <code>...</code> in HTML.
In HTML you're free to defined CSS for the <code> 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: Re: Verbatim export
2010-07-09 13:13 ` Bernt Hansen
@ 2010-07-09 18:48 ` Vincent Belaïche
0 siblings, 0 replies; 6+ messages in thread
From: Vincent Belaïche @ 2010-07-09 18:48 UTC (permalink / raw)
To: bernt; +Cc: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 3065 bytes --]
Thanks for the feedback.
BR,
Vincent.
> To: vincent.b.1@hotmail.fr
> Subject: Re: [Orgmode] Re: Verbatim export
> From: bernt@norang.ca
> Date: Fri, 9 Jul 2010 09:13:09 -0400
> CC: emacs-orgmode@gnu.org
>
> Vincent Belaïche <vincent.b.1@hotmail.fr> 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
> > <pre class="example" > </pre> 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 =[0]= but this also probably doesn't do
> exactly what you want for both LaTeX and HTML export. This uses \texttt
> in LaTeX and <code>...</code> in HTML.
>
> In HTML you're free to defined CSS for the <code> 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
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
_________________________________________________________________
Découvrez Microsoft Security Essentials, l'antivirus gratuit par Microsoft
http://clk.atdmt.com/FRM/go/212688364/direct/01/
[-- Attachment #1.2: Type: text/html, Size: 3860 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-07-09 18:48 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-08 18:35 Verbatim export Vincent Belaïche
2010-07-08 19:26 ` Christian Moe
2010-07-08 20:42 ` Bernt Hansen
2010-07-09 3:34 ` Vincent Belaïche
2010-07-09 13:13 ` Bernt Hansen
2010-07-09 18:48 ` Vincent Belaïche
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).