* How to export the ampersand (&) symbol correctly for both LaTeX and HTML documents?
@ 2010-12-23 16:02 Kyeong Soo (Joseph) Kim
2010-12-23 17:35 ` Bernt Hansen
0 siblings, 1 reply; 6+ messages in thread
From: Kyeong Soo (Joseph) Kim @ 2010-12-23 16:02 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 611 bytes --]
Dear All,
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.
Regards,
K. S. (Joseph)
[-- Attachment #1.2: Type: text/html, Size: 841 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: How to export the ampersand (&) symbol correctly for both LaTeX and HTML documents?
2010-12-23 16:02 How to export the ampersand (&) symbol correctly for both LaTeX and HTML documents? Kyeong Soo (Joseph) Kim
@ 2010-12-23 17:35 ` Bernt Hansen
2010-12-23 21:39 ` Kyeong Soo (Joseph) Kim
0 siblings, 1 reply; 6+ messages in thread
From: Bernt Hansen @ 2010-12-23 17:35 UTC (permalink / raw)
To: Kyeong Soo (Joseph) Kim; +Cc: emacs-orgmode
"Kyeong Soo (Joseph) Kim" <kyeongsoo.kim@gmail.com> 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to export the ampersand (&) symbol correctly for both LaTeX and HTML documents?
2010-12-23 17:35 ` Bernt Hansen
@ 2010-12-23 21:39 ` Kyeong Soo (Joseph) Kim
2010-12-24 3:21 ` Bernt Hansen
2010-12-24 3:23 ` Bernt Hansen
0 siblings, 2 replies; 6+ messages in thread
From: Kyeong Soo (Joseph) Kim @ 2010-12-23 21:39 UTC (permalink / raw)
To: Bernt Hansen; +Cc: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 1542 bytes --]
I will try to upgrade and test it soon.
Many thank.
By the way, I wonder whether you have tested it with LaTeX export or not.
The HTML export works perfectly in my case, too, but LaTeX export does not
as said.
Regards,
Joseph
On Thu, Dec 23, 2010 at 5:35 PM, Bernt Hansen <bernt@norang.ca> wrote:
> "Kyeong Soo (Joseph) Kim" <kyeongsoo.kim@gmail.com> 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
>
>
[-- 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: How to export the ampersand (&) symbol correctly for both LaTeX and HTML documents?
2010-12-23 21:39 ` Kyeong Soo (Joseph) Kim
@ 2010-12-24 3:21 ` Bernt Hansen
2010-12-24 3:23 ` Bernt Hansen
1 sibling, 0 replies; 6+ messages in thread
From: Bernt Hansen @ 2010-12-24 3:21 UTC (permalink / raw)
To: Kyeong Soo (Joseph) Kim; +Cc: emacs-orgmode
"Kyeong Soo (Joseph) Kim" <kyeongsoo.kim@gmail.com> writes:
> I will try to upgrade and test it soon.
> Many thank.
>
> By the way, I wonder whether you have tested it with LaTeX export or not.
> The HTML export works perfectly in my case, too, but LaTeX export does not as said.
Sorry I misread your original posting. I get the following in Latex for
the same input source
\title{Export test for ampersand}
\author{Bernt Hansen}
\date{23 December 2010}
\maketitle
\setcounter{tocdepth}{3}
\tableofcontents
\vspace*{1cm}
This \& that is cool.
This \& that.
>
> Regards,
> Joseph
>
> On Thu, Dec 23, 2010 at 5:35 PM, Bernt Hansen <bernt@norang.ca> wrote:
>
> "Kyeong Soo (Joseph) Kim" <kyeongsoo.kim@gmail.com> 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to export the ampersand (&) symbol correctly for both LaTeX and HTML documents?
2010-12-23 21:39 ` Kyeong Soo (Joseph) Kim
2010-12-24 3:21 ` Bernt Hansen
@ 2010-12-24 3:23 ` Bernt Hansen
2010-12-24 10:52 ` Kyeong Soo (Joseph) Kim
1 sibling, 1 reply; 6+ messages in thread
From: Bernt Hansen @ 2010-12-24 3:23 UTC (permalink / raw)
To: Kyeong Soo (Joseph) Kim; +Cc: emacs-orgmode
"Kyeong Soo (Joseph) Kim" <kyeongsoo.kim@gmail.com> writes:
> I will try to upgrade and test it soon.
> Many thank.
>
> By the way, I wonder whether you have tested it with LaTeX export or not.
> The HTML export works perfectly in my case, too, but LaTeX export does not as said.
Sorry I misread your original post.
I get the following for latex export using the same test.org
,----
| ...
| \title{Export test for ampersand}
| \author{Bernt Hansen}
| \date{23 December 2010}
| \maketitle
|
| \setcounter{tocdepth}{3}
| \tableofcontents
| \vspace*{1cm}
| This \& that is cool.
| This \& that.
| ...
`----
-Bernt
>
> Regards,
> Joseph
>
> On Thu, Dec 23, 2010 at 5:35 PM, Bernt Hansen <bernt@norang.ca> wrote:
>
> "Kyeong Soo (Joseph) Kim" <kyeongsoo.kim@gmail.com> 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to export the ampersand (&) symbol correctly for both LaTeX and HTML documents?
2010-12-24 3:23 ` Bernt Hansen
@ 2010-12-24 10:52 ` Kyeong Soo (Joseph) Kim
0 siblings, 0 replies; 6+ messages in thread
From: Kyeong Soo (Joseph) Kim @ 2010-12-24 10:52 UTC (permalink / raw)
To: Bernt Hansen; +Cc: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 2576 bytes --]
That's cool!
The new version automatically converts "\amp" to "\&" for LaTeX, not
"$\amp$" as in my current version (comes with Emacs).
Again, many thanks for your prompt response and I will update it per your
guidance.
Regards,
Joseph
On Fri, Dec 24, 2010 at 3:23 AM, Bernt Hansen <bernt@norang.ca> wrote:
> "Kyeong Soo (Joseph) Kim" <kyeongsoo.kim@gmail.com> writes:
>
> > I will try to upgrade and test it soon.
> > Many thank.
> >
> > By the way, I wonder whether you have tested it with LaTeX export or not.
> > The HTML export works perfectly in my case, too, but LaTeX export does
> not as said.
>
> Sorry I misread your original post.
>
> I get the following for latex export using the same test.org
>
> ,----
> | ...
> | \title{Export test for ampersand}
> | \author{Bernt Hansen}
> | \date{23 December 2010}
> | \maketitle
> |
> | \setcounter{tocdepth}{3}
> | \tableofcontents
> | \vspace*{1cm}
> | This \& that is cool.
> | This \& that.
> | ...
> `----
>
> -Bernt
>
> >
> > Regards,
> > Joseph
> >
> > On Thu, Dec 23, 2010 at 5:35 PM, Bernt Hansen <bernt@norang.ca> wrote:
> >
> > "Kyeong Soo (Joseph) Kim" <kyeongsoo.kim@gmail.com> 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
>
[-- Attachment #1.2: Type: text/html, Size: 3992 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-12-24 10:52 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-23 16:02 How to export the ampersand (&) symbol correctly for both LaTeX and HTML documents? Kyeong Soo (Joseph) Kim
2010-12-23 17:35 ` Bernt Hansen
2010-12-23 21:39 ` Kyeong Soo (Joseph) Kim
2010-12-24 3:21 ` Bernt Hansen
2010-12-24 3:23 ` Bernt Hansen
2010-12-24 10:52 ` Kyeong Soo (Joseph) Kim
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).