* Underscores again - HTML and LaTeX exporting.
@ 2009-07-08 15:56 Nick Dokos
2009-07-08 19:47 ` Sebastian Rose
2009-07-09 4:46 ` Carsten Dominik
0 siblings, 2 replies; 6+ messages in thread
From: Nick Dokos @ 2009-07-08 15:56 UTC (permalink / raw)
To: emacs-orgmode
I found this by trying to export Bernt Hansen's org-mode tutorial [1] to
HTML and LaTeX. Bernt's IRC nick is Thumper_ and it appears in the
AUTHOR option as follows:
#+AUTHOR: Bernt Hansen (IRC:Thumper_ on freenode)
When exported to HTML, everything is fine. When exported to LaTeX, LaTeX
complains about missing $. The problem does *not* arise if the underscore
is in most other places in the org file, but I found one more place where it
does arise: in a headline, when the underscore begins the word.
Here is a small test file (hi, Sébastien;-) :
--8<---------------cut here---------------start------------->8---
#+AUTHOR: Nick (nick_)
#+OPTIONS: ^:{}
* foo foo_bar foo_ _bar
foo
foo_bar
foo_
_bar
--8<---------------cut here---------------end--------------->8---
Everything works except the nick_ on the AUTHOR line and the _bar in
the headline.
BTW, I also tried the ^:nil option, but it did not make any difference.
Thanks,
Nick
[1] http://doc.norang.ca/org-mode.html - the org file is at http://doc.norang.ca/org-mode.org
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Underscores again - HTML and LaTeX exporting.
2009-07-08 15:56 Underscores again - HTML and LaTeX exporting Nick Dokos
@ 2009-07-08 19:47 ` Sebastian Rose
2009-07-08 21:43 ` Nick Dokos
2009-07-09 4:46 ` Carsten Dominik
1 sibling, 1 reply; 6+ messages in thread
From: Sebastian Rose @ 2009-07-08 19:47 UTC (permalink / raw)
To: nicholas.dokos; +Cc: emacs-orgmode
Nick Dokos <nicholas.dokos@hp.com> writes:
> I found this by trying to export Bernt Hansen's org-mode tutorial [1] to
> HTML and LaTeX. Bernt's IRC nick is Thumper_ and it appears in the
> AUTHOR option as follows:
>
> #+AUTHOR: Bernt Hansen (IRC:Thumper_ on freenode)
>
> When exported to HTML, everything is fine. When exported to LaTeX, LaTeX
> complains about missing $. The problem does *not* arise if the underscore
> is in most other places in the org file, but I found one more place where it
> does arise: in a headline, when the underscore begins the word.
>
> Here is a small test file (hi, Sébastien;-) :
>
>
> #+AUTHOR: Nick (nick_)
> #+OPTIONS: ^:{}
>
>
> * foo foo_bar foo_ _bar
> foo
> foo_bar
> foo_
> _bar
>
> Everything works except the nick_ on the AUTHOR line and the _bar in
> the headline.
Seems part of it happens in a loop with a wrong counter?
This works for the `foo_ _bar' part of it:
* foo foo_bar foo_ _bar
foo
foo_bar
foo_
_bar
Sebastian
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Underscores again - HTML and LaTeX exporting.
2009-07-08 19:47 ` Sebastian Rose
@ 2009-07-08 21:43 ` Nick Dokos
0 siblings, 0 replies; 6+ messages in thread
From: Nick Dokos @ 2009-07-08 21:43 UTC (permalink / raw)
To: Sebastian Rose; +Cc: emacs-orgmode
Sebastian Rose <sebastian_rose@gmx.de> wrote:
> >
> > #+AUTHOR: Nick (nick_)
> > #+OPTIONS: ^:{}
> >
> >
> > * foo foo_bar foo_ _bar
> > foo
> > foo_bar
> > foo_
> > _bar
> >
> > Everything works except the nick_ on the AUTHOR line and the _bar in
> > the headline.
>
>
> Seems part of it happens in a loop with a wrong counter?
>
>
> This works for the `foo_ _bar' part of it:
>
>
>
> * foo foo_bar foo_ _bar
> foo
> foo_bar
> foo_
> _bar
>
Right you are - thanks for testing and finding that!
My suspicion is a not-quire-right regexp in this case (I suspect the
AUTHOR line, as well as other such export options lines, is not
processed at all). But I haven't gone looking yet.
Thanks,
Nick
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Underscores again - HTML and LaTeX exporting.
2009-07-08 15:56 Underscores again - HTML and LaTeX exporting Nick Dokos
2009-07-08 19:47 ` Sebastian Rose
@ 2009-07-09 4:46 ` Carsten Dominik
2009-07-09 5:32 ` Bastien
2009-07-09 14:21 ` Nick Dokos
1 sibling, 2 replies; 6+ messages in thread
From: Carsten Dominik @ 2009-07-09 4:46 UTC (permalink / raw)
To: nicholas.dokos; +Cc: emacs-orgmode
On Jul 8, 2009, at 5:56 PM, Nick Dokos wrote:
> I found this by trying to export Bernt Hansen's org-mode tutorial
> [1] to
> HTML and LaTeX. Bernt's IRC nick is Thumper_ and it appears in the
> AUTHOR option as follows:
>
> #+AUTHOR: Bernt Hansen (IRC:Thumper_ on freenode)
>
> When exported to HTML, everything is fine. When exported to LaTeX,
> LaTeX
> complains about missing $. The problem does *not* arise if the
> underscore
> is in most other places in the org file, but I found one more place
> where it
> does arise: in a headline, when the underscore begins the word.
>
> Here is a small test file (hi, Sébastien;-) :
>
> --8<---------------cut here---------------start------------->8---
> #+AUTHOR: Nick (nick_)
> #+OPTIONS: ^:{}
>
>
> * foo foo_bar foo_ _bar
> foo
> foo_bar
> foo_
> _bar
> --8<---------------cut here---------------end--------------->8---
>
> Everything works except the nick_ on the AUTHOR line and the _bar in
> the headline.
Pretty sick examples ... :-)
I fixed those anyway...
- Carsten
>
> BTW, I also tried the ^:nil option, but it did not make any
> difference.
>
> Thanks,
> Nick
>
> [1] http://doc.norang.ca/org-mode.html - the org file is at http://doc.norang.ca/org-mode.org
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: 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: Underscores again - HTML and LaTeX exporting.
2009-07-09 4:46 ` Carsten Dominik
@ 2009-07-09 5:32 ` Bastien
2009-07-09 14:21 ` Nick Dokos
1 sibling, 0 replies; 6+ messages in thread
From: Bastien @ 2009-07-09 5:32 UTC (permalink / raw)
To: Carsten Dominik; +Cc: emacs-orgmode
Carsten Dominik <carsten.dominik@gmail.com> writes:
> I fixed those anyway...
So now we all know there is truly a AI-Carsten! :)
--
Bastien
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Underscores again - HTML and LaTeX exporting.
2009-07-09 4:46 ` Carsten Dominik
2009-07-09 5:32 ` Bastien
@ 2009-07-09 14:21 ` Nick Dokos
1 sibling, 0 replies; 6+ messages in thread
From: Nick Dokos @ 2009-07-09 14:21 UTC (permalink / raw)
To: Carsten Dominik; +Cc: emacs-orgmode
Carsten Dominik <carsten.dominik@gmail.com> wrote:
>
> Pretty sick examples ... :-)
>
> I fixed those anyway...
>
You can blame me for the headline one, but the AUTHOR one is all Bernt's
fault :-)
In any case, I thought you were on vacation or something: go have some
fun - oh, I forgot: this *is* fun. Or maybe, as Bastien noted, the fix
was done by one instance of a (possibly infinite) number of
AI-Carstens. Or, perhaps, the "falling off the grid" message might have
been sent by one of those instances? How can one tell? How does one
define ``eq'' for Carsten-instances? Does equality imply identity? My
head is spinning...
Cheers,
Nick
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-07-09 14:22 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-08 15:56 Underscores again - HTML and LaTeX exporting Nick Dokos
2009-07-08 19:47 ` Sebastian Rose
2009-07-08 21:43 ` Nick Dokos
2009-07-09 4:46 ` Carsten Dominik
2009-07-09 5:32 ` Bastien
2009-07-09 14:21 ` Nick Dokos
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).