From: Bernt Hansen <bernt@norang.ca>
To: "Vincent Belaïche" <vincent.b.1@hotmail.fr>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: Verbatim export
Date: Fri, 09 Jul 2010 09:13:09 -0400 [thread overview]
Message-ID: <87aaq0ajdm.fsf@gollum.intra.norang.ca> (raw)
In-Reply-To: <BLU104-W11906E12E5238F51667D2F84B50@phx.gbl> ("Vincent Belaïche"'s message of "Fri\, 9 Jul 2010 05\:34\:53 +0200")
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
next prev parent reply other threads:[~2010-07-09 13:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2010-07-09 18:48 ` Vincent Belaïche
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87aaq0ajdm.fsf@gollum.intra.norang.ca \
--to=bernt@norang.ca \
--cc=emacs-orgmode@gnu.org \
--cc=vincent.b.1@hotmail.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).