emacs-orgmode@gnu.org archives
help / color / mirror / code / Atom feed
* Cannot insert a footnote after certain verbatim text?
@ 2011-10-14 18:48 CS Fuu
2011-10-16  8:15  Nicolas Goaziou
0 siblings, 1 reply; 2+ messages in thread
From: CS Fuu @ 2011-10-14 18:48 UTC (permalink / raw)
To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1171 bytes --]

I am using org to write a document correcting some of my students' more
common LaTeX blunders, and I keep running into places where I am not able to
insert a footnote ("Cannot insert a footnote here."). Some of these problems
I am unable to reproduce consistently, but I think it usually occurs when a
paragraph (or list item) contains verbatim or code text with a backslash
(\), and only after the verbatim text. Here is one such example.  Create an
.org file with the following three "paragraphs" (including the two blank
likes):

Blah, blah, blah.

Woof, woof, =\begin{document}=, woof.

Cry, cry, cry.

If you're me, then you can insert a footnote after any word or punctuation
in the first and third paragraphs, and after the first two words and the
first comma in the second paragraph, but nowhere past the second comma in
the second paragraph.

I'm running the latest org (7.7) from the git repository in GNU emacs
23.1.1.

As long as I'm here, I'll mention one more buglet, or maybe it's a
question:  how can I get something like =\LaTeX\ = to be formatted
correctly?  I'd like the second backslash (and maybe the space as well) to
be visible as verbatim text.

[-- Attachment #2: Type: text/html, Size: 1271 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Cannot insert a footnote after certain verbatim text?
2011-10-14 18:48 Cannot insert a footnote after certain verbatim text? CS Fuu
@ 2011-10-16  8:15  Nicolas Goaziou
0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2011-10-16  8:15 UTC (permalink / raw)
To: CS Fuu; +Cc: emacs-orgmode

Hello,

CS Fuu <csfuu1@gmail.com> writes:

> I am using org to write a document correcting some of my students' more
> common LaTeX blunders, and I keep running into places where I am not able to
> insert a footnote ("Cannot insert a footnote here."). Some of these problems
> I am unable to reproduce consistently, but I think it usually occurs when a
> paragraph (or list item) contains verbatim or code text with a backslash
> (\), and only after the verbatim text. Here is one such example.  Create an
> .org file with the following three "paragraphs" (including the two blank
> likes):
>
>
> Blah, blah, blah.
>
> Woof, woof, =\begin{document}=, woof.
>
> Cry, cry, cry.
>
>
> If you're me, then you can insert a footnote after any word or punctuation
> in the first and third paragraphs, and after the first two words and the
> first comma in the second paragraph, but nowhere past the second comma in
> the second paragraph.
>
> I'm running the latest org (7.7) from the git repository in GNU emacs
> 23.1.1.

For what it's worth, this not directly related to footnotes.  It's
a weakness in org-inside-LaTeX-fragment-p', which returns a non-nil
value after =\begin{document}= instead of nil.  And, obviously, one
cannot add a footnote inside a LaTeX fragment...

Regards,

--
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-10-16  8:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
2011-10-16  8:15  Nicolas Goaziou

Code repositories for project(s) associated with this inbox:
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).