emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <n.goaziou@gmail.com>
To: John Hendy <jw.hendy@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Odd behavior with numbered list, footnotes, and LaTeX
Date: Sat, 09 Apr 2011 13:38:15 +0200	[thread overview]
Message-ID: <877hb34pug.fsf@gmail.com> (raw)
In-Reply-To: <BANLkTikH7sTZAyTo6woR5ZSektfa6MYfaA@mail.gmail.com> (John Hendy's message of "Wed, 6 Apr 2011 23:36:55 -0500")

Hello,

John Hendy <jw.hendy@gmail.com> writes:

> On Wed, Apr 6, 2011 at 1:33 PM, Nicolas Goaziou <n.goaziou@gmail.com> wrote:
>> Hello,
>>
>> John Hendy <jw.hendy@gmail.com> writes:
>>
>>> Just stumbled across something very odd I can't figure out. Here's a sample:
>>> ,-----
>>> | #+OPTIONS:   toc:t TeX:t LaTeX:t H:4 f:t todo:nil num:t tags:nil
>>> | #+latex_class: article
>>> |
>>> | * Section
>>> | 1. *A section*: a bunch of text is here and it seems like the
>>> footnote is doing
>>> |   something odd. [fn:1] More text here.
>>> | 2. *A section*: a bunch of text is here and it seems like the
>>> footnote is doing
>>> |  something odd.
>>> |
>>> | * Footnotes
>>> | [fn:1] www.google.com
>>> `-----
>>>
>>> It seems that the footnote triggers LaTeX to end the enumerate
>>> environment early for some reason. Not only that, but it seems to be
>>> inserting \end{enumerate} *inside* the footnote:
>>> ,-----
>>> | \begin{enumerate}
>>> | \item \textbf{A section}: a bunch of text is here and it seems like
>>> the footnote is doing
>>> |   something odd. \footnote{www.google.com
>>> | \end{enumerate}
>>> | } More text here.
>>> |
>>> | \begin{enumerate}
>>> | \item \textbf{A section}: a bunch of text is here and it seems like
>>> the footnote is doing
>>> |   something odd.
>>> | \end{enumerate}
>>> `-----
>>>
>>> Any suggestions?
>>
>> This has been discussed in a recent thread, and I submitted a patch for
>> that problem. I'm still waiting for feedback before applying it.
>>
>
> Whoops on missing that... though I hope it gets fixed. I hadn't
> updated one of my computers in a few months and know it wasn't giving
> the bad behavior on there, so a change must have goofed something.

I've pushed the patch. I tried it on your example and it seems to behave
correctly. Though, do not hesitate to report back if any problem arises.

Regards,

-- 
Nicolas Goaziou

  reply	other threads:[~2011-04-09 11:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-06 17:48 Odd behavior with numbered list, footnotes, and LaTeX John Hendy
2011-04-06 18:33 ` Nicolas Goaziou
2011-04-07  4:36   ` John Hendy
2011-04-09 11:38     ` Nicolas Goaziou [this message]
2011-04-09 17:08       ` John Hendy

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=877hb34pug.fsf@gmail.com \
    --to=n.goaziou@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jw.hendy@gmail.com \
    /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).