* Issue with multiple references to the same footnote in LaTeX export
@ 2014-07-09 18:07 York Zhao
2014-07-11 13:11 ` York Zhao
0 siblings, 1 reply; 6+ messages in thread
From: York Zhao @ 2014-07-09 18:07 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1127 bytes --]
If I have multiple references to the same footnote, in LaTeX export only the
first reference is a clickable link, the rest are exported as dead number
referring to the footnote definition, but not clickable links. I have
`org-footnote-section' set to `nil' by the way.
Here's ECM:
--8<---------------cut here---------------start------------->8---
#+LaTeX_CLASS: article
* Multiple reference to the same footnote 1
This is footnote reference [fn:1]. This is another reference to the same
footnote [fn:1]
[fn:1] Footnote definition.
* Multiple reference to the same footnote 2
This is footnote reference [fn:myfootnote]. This is another reference to the
same footnote [fn:myfootnote]
[fn:myfootnote] Footnote definition.
* Multiple reference to the same footnote 3
This is footnote reference [fn:myfootnote3: Footnote definition.]. This is
another reference to the same footnote [fn:myfootnote3]
* Local Variables
# Local Variables:
# eval: (add-to-list (make-local-variable
'org-latex-default-packages-alist) '("" "setspace" nil))
# End:
--8<---------------cut here---------------end--------------->8---
Regards,
York
[-- Attachment #2: Type: text/html, Size: 1321 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Issue with multiple references to the same footnote in LaTeX export
2014-07-09 18:07 Issue with multiple references to the same footnote in LaTeX export York Zhao
@ 2014-07-11 13:11 ` York Zhao
2014-07-13 1:08 ` York Zhao
0 siblings, 1 reply; 6+ messages in thread
From: York Zhao @ 2014-07-11 13:11 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1282 bytes --]
Any one?
On Wed, Jul 9, 2014 at 2:07 PM, York Zhao <gtdplatform@gmail.com> wrote:
> If I have multiple references to the same footnote, in LaTeX export only
> the
> first reference is a clickable link, the rest are exported as dead number
> referring to the footnote definition, but not clickable links. I have
> `org-footnote-section' set to `nil' by the way.
>
> Here's ECM:
>
> --8<---------------cut here---------------start------------->8---
> #+LaTeX_CLASS: article
>
> * Multiple reference to the same footnote 1
> This is footnote reference [fn:1]. This is another reference to the same
> footnote [fn:1]
>
> [fn:1] Footnote definition.
>
> * Multiple reference to the same footnote 2
> This is footnote reference [fn:myfootnote]. This is another reference to
> the
> same footnote [fn:myfootnote]
>
> [fn:myfootnote] Footnote definition.
>
> * Multiple reference to the same footnote 3
> This is footnote reference [fn:myfootnote3: Footnote definition.]. This is
> another reference to the same footnote [fn:myfootnote3]
>
> * Local Variables
> # Local Variables:
> # eval: (add-to-list (make-local-variable
> 'org-latex-default-packages-alist) '("" "setspace" nil))
> # End:
> --8<---------------cut here---------------end--------------->8---
>
> Regards,
>
> York
>
>
[-- Attachment #2: Type: text/html, Size: 1721 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Issue with multiple references to the same footnote in LaTeX export
2014-07-11 13:11 ` York Zhao
@ 2014-07-13 1:08 ` York Zhao
[not found] ` <87y4vwwt55.fsf@gmail.com>
2014-07-28 14:36 ` Bastien
0 siblings, 2 replies; 6+ messages in thread
From: York Zhao @ 2014-07-13 1:08 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1121 bytes --]
Hi list,
I'm re-posting this again because I just noticed that I shouldn't have
copied
the "Local Variables". Now it is a smaller ECM.
If I have multiple references to the same footnote, in LaTeX export only the
first reference is a clickable link, the rest are exported as dead number
referring to the footnote definition, but not clickable links. I have
`org-footnote-section' set to `nil' by the way.
Here's ECM:
--8<---------------cut here---------------start------------->8---
#+LaTeX_CLASS: article
* Multiple reference to the same footnote 1
This is footnote reference [fn:1]. This is another reference to the same
footnote [fn:1]
[fn:1] Footnote definition.
* Multiple reference to the same footnote 2
This is footnote reference [fn:myfootnote]. This is another reference to the
same footnote [fn:myfootnote]
[fn:myfootnote] Footnote definition.
* Multiple reference to the same footnote 3
This is footnote reference [fn:myfootnote3: Footnote definition.]. This is
another reference to the same footnote [fn:myfootnote3]
--8<---------------cut here---------------end--------------->8---
Regards,
York
[-- Attachment #2: Type: text/html, Size: 1308 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <87y4vwwt55.fsf@gmail.com>]
* Re: Issue with multiple references to the same footnote in LaTeX export
[not found] ` <87y4vwwt55.fsf@gmail.com>
@ 2014-07-14 3:54 ` Aaron Ecay
2014-08-02 9:39 ` Nicolas Goaziou
0 siblings, 1 reply; 6+ messages in thread
From: Aaron Ecay @ 2014-07-14 3:54 UTC (permalink / raw)
To: emacs-orgmode@gnu.org
Duh, forgot to include the list in this reply.
On Sun, Jul 13, 2014 at 10:50 PM, Aaron Ecay <aaronecay@gmail.com> wrote:
> Hi York,
>
> It’s not a totally trivial problem from the LaTeX side. This stack
> exchange answer outlines what could be a solution:
> <http://tex.stackexchange.com/a/54240>. Inside the
> ‘org-latex-footnote-reference’ function, org should generate a \label
> inside the argument to \footnote, and then use \ref for subsequent
> references.
>
> 2014ko uztailak 12an, York Zhao-ek idatzi zuen:
>>
>> Hi list,
>>
>> I'm re-posting this again because I just noticed that I shouldn't have
>> copied
>> the "Local Variables". Now it is a smaller ECM.
>>
>> If I have multiple references to the same footnote, in LaTeX export only the
>> first reference is a clickable link, the rest are exported as dead number
>> referring to the footnote definition, but not clickable links. I have
>> `org-footnote-section' set to `nil' by the way.
>>
>> Here's ECM:
>>
>> --8<---------------cut here---------------start------------->8---
>> #+LaTeX_CLASS: article
>>
>> * Multiple reference to the same footnote 1
>> This is footnote reference [fn:1]. This is another reference to the same
>> footnote [fn:1]
>>
>> [fn:1] Footnote definition.
>>
>> * Multiple reference to the same footnote 2
>> This is footnote reference [fn:myfootnote]. This is another reference to the
>> same footnote [fn:myfootnote]
>>
>> [fn:myfootnote] Footnote definition.
>>
>> * Multiple reference to the same footnote 3
>> This is footnote reference [fn:myfootnote3: Footnote definition.]. This is
>> another reference to the same footnote [fn:myfootnote3]
>>
>> --8<---------------cut here---------------end--------------->8---
>>
>> Regards,
>>
>> York
>>
> --
> Aaron Ecay
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Issue with multiple references to the same footnote in LaTeX export
2014-07-14 3:54 ` Aaron Ecay
@ 2014-08-02 9:39 ` Nicolas Goaziou
0 siblings, 0 replies; 6+ messages in thread
From: Nicolas Goaziou @ 2014-08-02 9:39 UTC (permalink / raw)
To: Aaron Ecay; +Cc: emacs-orgmode@gnu.org
Hello,
Aaron Ecay <aaronecay@gmail.com> writes:
> Duh, forgot to include the list in this reply.
>
> On Sun, Jul 13, 2014 at 10:50 PM, Aaron Ecay <aaronecay@gmail.com> wrote:
>> Hi York,
>>
>> It’s not a totally trivial problem from the LaTeX side. This stack
>> exchange answer outlines what could be a solution:
>> <http://tex.stackexchange.com/a/54240>. Inside the
>> ‘org-latex-footnote-reference’ function, org should generate a \label
>> inside the argument to \footnote, and then use \ref for subsequent
>> references.
I'm not certain that it would work with, e.g., nested footnotes.
A proof-of-concept would help in this case.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Issue with multiple references to the same footnote in LaTeX export
2014-07-13 1:08 ` York Zhao
[not found] ` <87y4vwwt55.fsf@gmail.com>
@ 2014-07-28 14:36 ` Bastien
1 sibling, 0 replies; 6+ messages in thread
From: Bastien @ 2014-07-28 14:36 UTC (permalink / raw)
To: York Zhao; +Cc: emacs-orgmode
Hi York,
York Zhao <gtdplatform@gmail.com> writes:
> If I have multiple references to the same footnote, in LaTeX export
> only the
> first reference is a clickable link, the rest are exported as dead
> number
> referring to the footnote definition, but not clickable links. I have
> `org-footnote-section' set to `nil' by the way.
I confirm this -- which seems to be intentional:
See `org-latex-footnote-reference' and those lines:
;; Use \footnotemark if the footnote has already been defined.
((not (org-export-footnote-first-reference-p footnote-reference info))
(format "\\footnotemark[%s]{}"
(org-export-get-footnote-number footnote-reference info)))
Nicolas, is there any way to get the footnote clickable here?
The current output is confusing.
Thanks,
--
Bastien
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-08-02 9:38 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-09 18:07 Issue with multiple references to the same footnote in LaTeX export York Zhao
2014-07-11 13:11 ` York Zhao
2014-07-13 1:08 ` York Zhao
[not found] ` <87y4vwwt55.fsf@gmail.com>
2014-07-14 3:54 ` Aaron Ecay
2014-08-02 9:39 ` Nicolas Goaziou
2014-07-28 14:36 ` Bastien
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).