* bug: footnotes do not export to HTML
@ 2011-07-04 23:25 Samuel Wales
2011-07-05 12:05 ` Nicolas Goaziou
0 siblings, 1 reply; 12+ messages in thread
From: Samuel Wales @ 2011-07-04 23:25 UTC (permalink / raw)
To: emacs-orgmode
I find that in recent git org, footnotes do not export to HTML. The
calls export, but the footnotes do not.
So far I have been able to determine that e01e160 works (.el). It is
before the recent footnote fixes, but I don't know yet whether they
are related.
Samuel
--
The Kafka Pandemic: http://thekafkapandemic.blogspot.com
I support the Whittemore-Peterson Institute (WPI)
===
Bigotry against people with serious diseases is still bigotry.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: bug: footnotes do not export to HTML
2011-07-04 23:25 bug: footnotes do not export to HTML Samuel Wales
@ 2011-07-05 12:05 ` Nicolas Goaziou
2011-07-05 13:55 ` Giovanni Ridolfi
2011-07-05 17:40 ` Samuel Wales
0 siblings, 2 replies; 12+ messages in thread
From: Nicolas Goaziou @ 2011-07-05 12:05 UTC (permalink / raw)
To: Samuel Wales; +Cc: emacs-orgmode
Hello,
Samuel Wales <samologist@gmail.com> writes:
> I find that in recent git org, footnotes do not export to HTML. The
> calls export, but the footnotes do not.
As I cannot reproduce this on my test files, I will need an ECM to debug
this.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: bug: footnotes do not export to HTML
2011-07-05 12:05 ` Nicolas Goaziou
@ 2011-07-05 13:55 ` Giovanni Ridolfi
2011-07-05 17:40 ` Samuel Wales
1 sibling, 0 replies; 12+ messages in thread
From: Giovanni Ridolfi @ 2011-07-05 13:55 UTC (permalink / raw)
To: Nicolas Goaziou; +Cc: emacs-orgmode
Nicolas Goaziou <n.goaziou@gmail.com> writes:
> Hello,
>
> Samuel Wales <samologist@gmail.com> writes:
>
>> I find that in recent git org, footnotes do not export to HTML. The
>> calls export, but the footnotes do not.
>
> As I cannot reproduce this on my test files, I will need an ECM to debug
> this.
could it be an Emacs 22 specific issue?
Giovanni
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: bug: footnotes do not export to HTML
2011-07-05 12:05 ` Nicolas Goaziou
2011-07-05 13:55 ` Giovanni Ridolfi
@ 2011-07-05 17:40 ` Samuel Wales
2011-07-05 18:45 ` Nicolas Goaziou
1 sibling, 1 reply; 12+ messages in thread
From: Samuel Wales @ 2011-07-05 17:40 UTC (permalink / raw)
To: Nicolas Goaziou; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 473 bytes --]
Hi Nicolas,
On 2011-07-05, Nicolas Goaziou <n.goaziou@gmail.com> wrote:
> As I cannot reproduce this on my test files, I will need an ECM to debug
> this.
Included.
The bug occurs in ASCII export also.
Try exporting with and without tasks (see end of minimal code).
Hope it helps.
Samuel
--
The Kafka Pandemic: http://thekafkapandemic.blogspot.com
I support the Whittemore-Peterson Institute (WPI)
===
Bigotry against people with serious diseases is still bigotry.
[-- Attachment #2: alpha-org-testcase.el --]
[-- Type: application/octet-stream, Size: 4494 bytes --]
;;;
;;;alpha-org-testcase.el
;;;
;;;minimal testcase for org
;;;
;;;how to use:
;;;
;;;1) put this file in your shell's current directory.
;;;2) put any testcase org files in your shell's current directory.
;;;3) comment out the set-frame-font line if it doesn't default
;;; nicely for you
;;;4) call like this.
;;;
;;; delorgsrc=your-org-src-dir emacs22 -Q -l alpha-org-testcase.el
;;;
;;;
;;;for my use i do this:
;;;
"
mep=t emacs22 -Q -l $del/tests-and-publish/alpha-org-testcase.el \
--geometry +0+0 \
--geometry 60x15 \
$dorg/tests--org/export-corruption.org
"
;;;
(require 'cl)
;;my org files use these
(setq org-odd-levels-only t)
(setf org-export-initial-scope 'subtree)
;;fix abominations
(blink-cursor-mode 0)
(setf visible-bell 'top-bottom)
(defvar alpha-mac-font
"-apple-courier-medium-r-normal--24-240-72-72-m-240-iso10646-1")
;;;'(progn
;;; (progn
;;; (defconst alpha-mac-font-2
;;; "-apple-courier-medium-r-normal--*-*-*-*-*-240-*")
;;; (set-frame-font alpha-mac-font-2))
;;; )
(set-frame-font alpha-mac-font)
;;; (setq mac-pass-control-to-system nil)
;;; (setq mac-command-modifier 'hyper)
;;; (setq mac-option-modifier 'meta)
;;basics
(defun alpha-add-path (p) (setq load-path (cons p load-path)))
(alpha-add-path (concat (getenv "delorgsrc") "/lisp"))
(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
(require 'org-install)
;;;
;;;stuff make things easier
;;;
(setq org-completion-use-ido t)
(setf org-outline-path-complete-in-steps nil)
;;;
;;;compatibility fixes
;;;
;;fix compatibility bug in org [2011-05-25 Wed 08:59]
(when (= emacs-major-version 22)
(defun activate-mark ()
"Activate the mark."
(when (mark t)
(setq mark-active t)
(unless transient-mark-mode
(setq transient-mark-mode 'lambda))
(when (and select-active-regions
(display-selections-p))
(x-set-selection 'PRIMARY (current-buffer))))))
;;[2011-05-25 Wed 09:23] fix compatibility bug in Org.
;;this is redefinition. it is for 22 for export.
(defcustom select-active-regions nil
"If non-nil, an active region automatically becomes the window selection."
:type 'boolean
:group 'killing
:version "23.1")
;;;
;;;accessibility fixes
;;;
;;;you have to enable these to get them to work
;;;
(defun p ()
(interactive)
(message "fixing pop-up-windows")
;;i have /pop-up-windows/ set to nil, which works for most of
;;emacs. for org, i do the following. i need all of this just
;;as i need the large font above for accessibility reasons.
;;
;;(setf (cdr (assoc* 'file org-link-frame-setup)) 'find-file)
(pushnew '(file . find-file) org-link-frame-setup :test #'equal)
;;it might be nice to have a 'dedicated-buffer option
(setf org-indirect-buffer-display 'current-window)
;;could make pop kill the buffer
;;;(setf org-display-internal-link-with-indirect-buffer t)
(setf org-src-window-setup 'current-window)
(add-hook 'org-capture-mode-hook 'delete-other-windows)
(defadvice org-agenda-set-tags (around fix-windows activate compile)
"Restore windows."
(save-window-excursion
ad-do-it))
(defadvice org-export (after fix-windows activate compile)
"Delete other windows after every export."
(delete-other-windows))
(setf pop-up-windows nil)
;;for emacs i do this
(add-to-list 'same-window-regexps "\\*Customize.*") ;notwork?
(setf Man-notify-method 'pushy)
(add-to-list 'same-window-regexps "\\*Man .*") ;notwork
(add-to-list 'same-window-regexps "\\*.*\\*")
(add-to-list 'same-window-buffer-names "*Remember*")
(add-to-list 'same-window-buffer-names "*Help*")
(add-to-list 'same-window-buffer-names "*Apropos*")
(add-to-list 'same-window-buffer-names "*Summary*")
(add-to-list 'same-window-buffer-names "*Compile-Log*")
(add-to-list 'same-window-buffer-names "*Ibuffer*")
(add-to-list 'same-window-buffer-names " *Ibuffer*")
(message "done fixing pop-up-windows"))
(when (getenv "mep") (require 'org) (p))
;;;
;;;basic org features likely to affect many bug reports
;;;
(setq org-todo-keywords
'((type "NAKA(i)" "TODO(T)" "MAYBE(y)" "DOUBTFUL(l)"
"|"
"MOOT(m)")))
;;does this need loading after org-exp?
(setf org-export-initial-scope 'subtree)
(setq org-export-email-info nil)
(setq org-export-author-info nil)
(setq org-export-creator-info nil)
(setq org-export-html-preamble nil)
(setq org-export-html-postamble nil)
;;;
;;;bug-related stuff
;;;
(setf org-export-with-tasks nil)
[-- Attachment #3: footnotes-export.org --]
[-- Type: application/octet-stream, Size: 241 bytes --]
* org does not export footnotes
To reproduce, put point above. c-c c-e A
*** There are great reasons to make a claw
It will be ten times more fun than even this.[fn::Eek!]
*** MAYBE For logic buffs
You know what a contrapositive is, right?
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: bug: footnotes do not export to HTML
2011-07-05 17:40 ` Samuel Wales
@ 2011-07-05 18:45 ` Nicolas Goaziou
2011-07-07 21:08 ` Bernt Hansen
0 siblings, 1 reply; 12+ messages in thread
From: Nicolas Goaziou @ 2011-07-05 18:45 UTC (permalink / raw)
To: Samuel Wales; +Cc: emacs-orgmode
Samuel Wales <samologist@gmail.com> writes:
> On 2011-07-05, Nicolas Goaziou <n.goaziou@gmail.com> wrote:
>> As I cannot reproduce this on my test files, I will need an ECM to debug
>> this.
>
> Included.
>
> The bug occurs in ASCII export also.
Thank you ! I have (hopefully) fixed it in master.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: bug: footnotes do not export to HTML
2011-07-05 18:45 ` Nicolas Goaziou
@ 2011-07-07 21:08 ` Bernt Hansen
2011-07-08 12:53 ` Nicolas Goaziou
0 siblings, 1 reply; 12+ messages in thread
From: Bernt Hansen @ 2011-07-07 21:08 UTC (permalink / raw)
To: Nicolas Goaziou; +Cc: emacs-orgmode
Nicolas Goaziou <n.goaziou@gmail.com> writes:
> Samuel Wales <samologist@gmail.com> writes:
>
>> On 2011-07-05, Nicolas Goaziou <n.goaziou@gmail.com> wrote:
>>> As I cannot reproduce this on my test files, I will need an ECM to debug
>>> this.
>>
>> Included.
>>
>> The bug occurs in ASCII export also.
>
> Thank you ! I have (hopefully) fixed it in master.
>
> Regards,
Hi Nicolas,
I'm not sure if this is related or not but now I'm getting footnotes in
my HTML exports where I'm not expecting any. I think this might already
have been reported but I can't find the previous post anymore.
Sample org file
--8<---------------cut here---------------start------------->8---
* Using the clock history to clock in old tasks
*Clock history selection buffer for C-u C-c C-x C-i*
#+begin_example
Default Task
[d] norang Organization <-- Task B
The task interrupted by starting the last one
[i] norang Organization <-- Task B
Current Clocking Task
[c] org NEXT Document my use of org-mode <-- Task A
Recent Tasks
[1] org NEXT Document my use of org-mode <-- Task A
[2] norang Organization <-- Task B
...
[Z] org DONE Fix default section links <-- 35 clock task entries ago
#+end_example
--8<---------------cut here---------------end--------------->8---
Exporting with Org-mode version 7.6 (release_7.6) gives:
(note the Footnotes section at the bottom)
--8<---------------cut here---------------start------------->8---
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
lang="en" xml:lang="en">
<head>
...
<pre class="example">Default Task
[d] norang Organization <-- Task B
The task interrupted by starting the last one
[i] norang Organization <-- Task B
Current Clocking Task
[c] org NEXT Document my use of org-mode <-- Task A
Recent Tasks
[1] org NEXT Document my use of org-mode <-- Task A
[2] norang Organization <-- Task B
...
[Z] org DONE Fix default section links <-- 35 clock task entries ago
</pre>
<div id="footnotes">
<h2 class="footnotes">Footnotes: </h2>
<div id="text-footnotes">
<p class="footnote"><sup><a class="footnum" name="fn.1" href="#fnr.1">1</a></sup> DEFINITION NOT FOUND: 1
</p>
<p class="footnote"><sup><a class="footnum" name="fn.2" href="#fnr.2">2</a></sup> DEFINITION NOT FOUND: 2
</p>
</div>
</div>
</div>
</div>
<div id="postamble">
...
</html>
--8<---------------cut here---------------end--------------->8---
I noticed this after trying to export an update for
http://doc.norang.ca/org-mode.html after the 7.6 release.
Regards,
--
Bernt
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: bug: footnotes do not export to HTML
2011-07-07 21:08 ` Bernt Hansen
@ 2011-07-08 12:53 ` Nicolas Goaziou
2011-07-08 13:24 ` Bernt Hansen
2011-07-08 13:44 ` Bastien
0 siblings, 2 replies; 12+ messages in thread
From: Nicolas Goaziou @ 2011-07-08 12:53 UTC (permalink / raw)
To: Bernt Hansen; +Cc: emacs-orgmode
Hello,
Bernt Hansen <bernt@norang.ca> writes:
> Nicolas Goaziou <n.goaziou@gmail.com> writes:
>
>> Samuel Wales <samologist@gmail.com> writes:
>>
>>> On 2011-07-05, Nicolas Goaziou <n.goaziou@gmail.com> wrote:
>>>> As I cannot reproduce this on my test files, I will need an ECM to debug
>>>> this.
>>>
>>> Included.
>>>
>>> The bug occurs in ASCII export also.
>>
>> Thank you ! I have (hopefully) fixed it in master.
>>
>> Regards,
> Hi Nicolas,
>
> I'm not sure if this is related or not but now I'm getting footnotes in
> my HTML exports where I'm not expecting any. I think this might already
> have been reported but I can't find the previous post anymore.
>
> Sample org file
> * Using the clock history to clock in old tasks
> *Clock history selection buffer for C-u C-c C-x C-i*
> #+begin_example
> Default Task
> [d] norang Organization <-- Task B
> The task interrupted by starting the last one
> [i] norang Organization <-- Task B
> Current Clocking Task
> [c] org NEXT Document my use of org-mode <-- Task A
> Recent Tasks
> [1] org NEXT Document my use of org-mode <-- Task A
> [2] norang Organization <-- Task B
> ...
> [Z] org DONE Fix default section links <-- 35 clock task entries ago
> #+end_example
This isn't related. Obviously, "[1] org" and "[2] norang" are recognized
as footnotes.
I will remove the opportunity to have footnotes in some specific
contexts, like example blocks.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: bug: footnotes do not export to HTML
2011-07-08 12:53 ` Nicolas Goaziou
@ 2011-07-08 13:24 ` Bernt Hansen
2011-07-08 13:44 ` Bastien
1 sibling, 0 replies; 12+ messages in thread
From: Bernt Hansen @ 2011-07-08 13:24 UTC (permalink / raw)
To: Nicolas Goaziou; +Cc: emacs-orgmode
Nicolas Goaziou <n.goaziou@gmail.com> writes:
> Hello,
>
> Bernt Hansen <bernt@norang.ca> writes:
>
>> Sample org file
>> * Using the clock history to clock in old tasks
>> *Clock history selection buffer for C-u C-c C-x C-i*
>> #+begin_example
>> Default Task
>> [d] norang Organization <-- Task B
>> The task interrupted by starting the last one
>> [i] norang Organization <-- Task B
>> Current Clocking Task
>> [c] org NEXT Document my use of org-mode <-- Task A
>> Recent Tasks
>> [1] org NEXT Document my use of org-mode <-- Task A
>> [2] norang Organization <-- Task B
>> ...
>> [Z] org DONE Fix default section links <-- 35 clock task entries ago
>> #+end_example
>
> This isn't related. Obviously, "[1] org" and "[2] norang" are recognized
> as footnotes.
>
> I will remove the opportunity to have footnotes in some specific
> contexts, like example blocks.
Thanks!
--
Bernt
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: bug: footnotes do not export to HTML
2011-07-08 12:53 ` Nicolas Goaziou
2011-07-08 13:24 ` Bernt Hansen
@ 2011-07-08 13:44 ` Bastien
2011-07-08 16:48 ` Nicolas Goaziou
1 sibling, 1 reply; 12+ messages in thread
From: Bastien @ 2011-07-08 13:44 UTC (permalink / raw)
To: Nicolas Goaziou; +Cc: Bernt Hansen, emacs-orgmode
Hi Nicolas,
Nicolas Goaziou <n.goaziou@gmail.com> writes:
> I will remove the opportunity to have footnotes in some specific
> contexts, like example blocks.
Wise decision -- the less feet we have, less shoots in the feet
we may have.
--
Bastien
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: bug: footnotes do not export to HTML
2011-07-08 13:44 ` Bastien
@ 2011-07-08 16:48 ` Nicolas Goaziou
2011-07-08 17:47 ` Jambunathan K
0 siblings, 1 reply; 12+ messages in thread
From: Nicolas Goaziou @ 2011-07-08 16:48 UTC (permalink / raw)
To: Bastien; +Cc: Bernt Hansen, emacs-orgmode
Hello,
Bastien <bzg@altern.org> writes:
> Nicolas Goaziou <n.goaziou@gmail.com> writes:
>
>> I will remove the opportunity to have footnotes in some specific
>> contexts, like example blocks.
>
> Wise decision -- the less feet we have, less shoots in the feet
> we may have.
Done.
Footnotes cannot live anymore in example, src, verse, latex, html and
docbook blocks.
Wherever we were, we're now six feet under, I guess.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: bug: footnotes do not export to HTML
2011-07-08 16:48 ` Nicolas Goaziou
@ 2011-07-08 17:47 ` Jambunathan K
2011-07-08 20:08 ` Nicolas Goaziou
0 siblings, 1 reply; 12+ messages in thread
From: Jambunathan K @ 2011-07-08 17:47 UTC (permalink / raw)
To: Nicolas Goaziou; +Cc: Bastien, emacs-orgmode
Nicolas
> Footnotes cannot live anymore in example, src, verse, latex, html and
> docbook blocks.
In org-footnote-forbidden-blocks
'("example" "verse" "src" "latex" "html" "docbook")
should we make use of org-export-backends.
I introduced the above variable as part of org-odt compatibility
changes.
,----[ C-h v org-export-backends RET ]
| org-export-backends is a variable defined in `org-exp.el'.
| Its value is (odt docbook html beamer ascii latex)
|
|
| Documentation:
| List of Org supported export backends.
|
| [back]
`----
> Wherever we were, we're now six feet under, I guess.
> Regards,
--
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: bug: footnotes do not export to HTML
2011-07-08 17:47 ` Jambunathan K
@ 2011-07-08 20:08 ` Nicolas Goaziou
0 siblings, 0 replies; 12+ messages in thread
From: Nicolas Goaziou @ 2011-07-08 20:08 UTC (permalink / raw)
To: Jambunathan K; +Cc: Bastien, emacs-orgmode
Jambunathan K <kjambunathan@gmail.com> writes:
> In org-footnote-forbidden-blocks
>
> '("example" "verse" "src" "latex" "html" "docbook")
>
> should we make use of org-export-backends.
>
> I introduced the above variable as part of org-odt compatibility
> changes.
>
>
> ,----[ C-h v org-export-backends RET ]
> | org-export-backends is a variable defined in `org-exp.el'.
> | Its value is (odt docbook html beamer ascii latex)
> |
> |
> | Documentation:
> | List of Org supported export backends.
> |
> | [back]
> `----
Indeed, I am going to make use of it. I will also change
`org-footnote-forbidden-blocks' and `org-list-forbidden-blocks' into
defconsts as they are not meant to be modified anyway.
Thanks for notifying me about this variable.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2011-07-08 20:09 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-04 23:25 bug: footnotes do not export to HTML Samuel Wales
2011-07-05 12:05 ` Nicolas Goaziou
2011-07-05 13:55 ` Giovanni Ridolfi
2011-07-05 17:40 ` Samuel Wales
2011-07-05 18:45 ` Nicolas Goaziou
2011-07-07 21:08 ` Bernt Hansen
2011-07-08 12:53 ` Nicolas Goaziou
2011-07-08 13:24 ` Bernt Hansen
2011-07-08 13:44 ` Bastien
2011-07-08 16:48 ` Nicolas Goaziou
2011-07-08 17:47 ` Jambunathan K
2011-07-08 20:08 ` Nicolas Goaziou
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).