[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] Re: How to export the ampersand (&) symbol correctly for both
From: |
Bernt Hansen |
Subject: |
[Orgmode] Re: How to export the ampersand (&) symbol correctly for both LaTeX and HTML documents? |
Date: |
Thu, 23 Dec 2010 12:35:43 -0500 |
"Kyeong Soo (Joseph) Kim" <address@hidden> writes:
> This may be a FAQ, but I couldn't find it mentioned either in the Manual or
> in the mailing list.
>
> To use the ampersand symbol ('&') in HTML export, I use "\amp" per the manual
> and the "Publishing
> Org-mode files to HTML" tutorial at Worg site. Later, however, I found that
> the "\amp" is exported
> to "$\amp$" in LaTeX, which causes a compile error (i.e., "undefined control
> sequence"); it should
> be "\&" in a normal TeX/LaTeX document.
>
> I'm currently using 6.33x version of Org-mode with GNU Emacs 23.2.1 on
> Windows 7.
>
> Any guidance on this issue would be greatly appreciated.
Guidance: Upgrade your version of org-mode.
Exporting the following subtree to HTML works for me
,----[ test.org ]
| * Export test for ampersand
| This & that is cool.
| This \amp that.
`----
,----[ test.html ]
| ...
| <h1 class="title">Export test for ampersand</h1>
|
| <p>This & that is cool.
| This & that.
| </p><div id="postamble">
| <p class="author"> Author: Bernt Hansen
| </p>
| ...
`----
My version of org-mode is Org-mode version 7.4
(release_7.4.89.g4ed00.dirty)
HTH,
Bernt