Re: [Orgmode] Bug: Impossible to have right bracket in footnotes [7.01trans]
On Sep 1, 2010, at 12:19 AM, Alan L Tyree wrote: On Tue, 31 Aug 2010 14:09:58 +0200 Carsten Dominik carsten.domi...@gmail.com wrote: Hi Aidan, unfortunately this is difficult to fix in a good way. I do want to go back to footnotes, because I think there are many things that do not yet work satisfactorily. And then I also hope to address the issue you raised. For the time being, unfortunately, I do not have a solution for you. I also have problems with footnotes. Jan Boecker kindly devised a work-around using non-printing spaces which is OK, but what I would like is: Disable footnotes like [2010], but keep footnotes like [fn:2010] Also on my list of things to fix when I get there - Carsten The reason is that I write legal texts that have references to case law that look like: Marreco v Richardson [1908] 2 KB 584. The dates in square brackets are an essential part of the reference. f:nil in the Options seems to disable all footnotes rather than just the [2010] type. The documentation is slightly misleading on this. Under Export options it says: f: turn on/off footnotes like this[1]. I seem to be living more and more in org-mode. Thanks for such great software! Alan - Carsten On Aug 31, 2010, at 10:38 AM, Aidan Gauland wrote: It is impossible to have closing brackets in a footnote, because they are treated as the closing bracket for the foot note. Example... * A heading This is a broken footnote.[fn:: Some book at [42-24].] This will export to (as ASCII, for example)... org-fn-bug-example == Author: Aidan Gauland Date: 2010-08-31 20:33:14 NZST Table of Contents = 1 A heading 1 A heading This is a broken footnote.[1].] This will export to (as ASCII, for example)... [1] Some book at [42-24 This is how I am required to cite books for my academic essays, so this is a pretty serious bug for me (and no doubt other students, as well). Regards, Aidan Gauland Emacs : GNU Emacs 24.0.50.6 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1) of 2010-08-29 on dimension8 Package: Org-mode version 7.01trans current state: == (setq org-export-latex-after-initial-vars-hook '(org-beamer-after-initial- vars) org-agenda-files '(~/uc-files/uc-work.org) org-agenda-include-diary t org-completion-use-iswitchb t org-completion-use-ido t org-metaup-hook '(org-babel-load-in-session-maybe) org-after-todo-state-change-hook '(org-clock-out-if-current) org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup) org-export-latex-format-toc-function 'org-export-latex-format-toc- default org-export-preprocess-hook '(org-export-blocks-preprocess) org-tab-first-hook '(org-hide-block-toggle-maybe org-babel-hide-result-toggle-maybe) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-confirm-shell-link-function 'yes-or-no-p org-export-first-hook '(org-beamer-initialize-open-trackers) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide- drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link-modifiers) org-mode-hook '(#[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-show-block-all append local] 5] #[nil #\300 #\301 #\302 #\303 #\304 #$ #\207 [org-add-hook change-major-mode-hook org-babel-show-result- all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute- safely-maybe) org-confirm-elisp-link-function 'yes-or-no-p org-export-interblocks '((lob org-babel-exp-lob-one-liners) (src org-babel-exp-inline-src-blocks)) org-occur-hook '(org-first-headline-recenter) org-outline-path-complete-in-steps nil org-export-preprocess-before-selecting-backend-code-hook '(org-beamer-select-beamer-code) org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix- toc org-beamer-auto-fragile-frames
Re: [Orgmode] Bug: Impossible to have right bracket in footnotes [7.01trans]
On Thu, Sep 2, 2010 at 6:15 PM, Carsten Dominik carsten.domi...@gmail.comwrote: On Sep 1, 2010, at 12:19 AM, Alan L Tyree wrote: On Tue, 31 Aug 2010 14:09:58 +0200 Carsten Dominik carsten.domi...@gmail.com wrote: Hi Aidan, unfortunately this is difficult to fix in a good way. I do want to go back to footnotes, because I think there are many things that do not yet work satisfactorily. And then I also hope to address the issue you raised. For the time being, unfortunately, I do not have a solution for you. I also have problems with footnotes. Jan Boecker kindly devised a work-around using non-printing spaces which is OK, but what I would like is: Disable footnotes like [2010], but keep footnotes like [fn:2010] Also on my list of things to fix when I get there Carsten, Very low priority as far as I am concerned. Be nice, but it is hardly a deal breaker. Thanks for great software! Cheers, Alan - Carsten The reason is that I write legal texts that have references to case law that look like: Marreco v Richardson [1908] 2 KB 584. The dates in square brackets are an essential part of the reference. f:nil in the Options seems to disable all footnotes rather than just the [2010] type. The documentation is slightly misleading on this. Under Export options it says: f: turn on/off footnotes like this[1]. I seem to be living more and more in org-mode. Thanks for such great software! Alan - Carsten On Aug 31, 2010, at 10:38 AM, Aidan Gauland wrote: It is impossible to have closing brackets in a footnote, because they are treated as the closing bracket for the foot note. Example... * A heading This is a broken footnote.[fn:: Some book at [42-24].] This will export to (as ASCII, for example)... org-fn-bug-example == Author: Aidan Gauland Date: 2010-08-31 20:33:14 NZST Table of Contents = 1 A heading 1 A heading This is a broken footnote.[1].] This will export to (as ASCII, for example)... [1] Some book at [42-24 This is how I am required to cite books for my academic essays, so this is a pretty serious bug for me (and no doubt other students, as well). Regards, Aidan Gauland Emacs : GNU Emacs 24.0.50.6 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1) of 2010-08-29 on dimension8 Package: Org-mode version 7.01trans current state: == (setq org-export-latex-after-initial-vars-hook '(org-beamer-after-initial- vars) org-agenda-files '(~/uc-files/uc-work.org) org-agenda-include-diary t org-completion-use-iswitchb t org-completion-use-ido t org-metaup-hook '(org-babel-load-in-session-maybe) org-after-todo-state-change-hook '(org-clock-out-if-current) org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup) org-export-latex-format-toc-function 'org-export-latex-format-toc- default org-export-preprocess-hook '(org-export-blocks-preprocess) org-tab-first-hook '(org-hide-block-toggle-maybe org-babel-hide-result-toggle-maybe) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-confirm-shell-link-function 'yes-or-no-p org-export-first-hook '(org-beamer-initialize-open-trackers) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide- drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link-modifiers) org-mode-hook '(#[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-show-block-all append local] 5] #[nil #\300 #\301 #\302 #\303 #\304 #$ #\207 [org-add-hook change-major-mode-hook org-babel-show-result- all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute- safely-maybe) org-confirm-elisp-link-function 'yes-or-no-p org-export-interblocks '((lob org-babel-exp-lob-one-liners) (src org-babel-exp-inline-src-blocks)) org-occur-hook '(org-first-headline-recenter) org-outline-path-complete-in-steps nil org-export-preprocess-before-selecting-backend-code-hook '(org-beamer-select-beamer-code) org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix- toc org-beamer-auto-fragile-frames org-beamer-place-default-actions-for-lists)
Re: [Orgmode] Bug: Impossible to have right bracket in footnotes [7.01trans]
One possibility for difficult cases such as these might be extensible syntax (which is designed for parsing risk). The idea would be to allow, for footnotes, an alternate syntax using extensible syntax. Then it could handle anything. Also, it would not be necessary to hack on the footnote code quite that hard. With the $[ syntax, things might be a little easier and the parsing code potentially factored in a decent way. Dunno if this is the easiest first use for ES, but it might be worth considering. On 2010-08-31, Carsten Dominik carsten.domi...@gmail.com wrote: Hi Aidan, unfortunately this is difficult to fix in a good way. I do want to go back to footnotes, because I think there are many things that do not yet work satisfactorily. And then I also hope to address the issue you raised. For the time being, unfortunately, I do not have a solution for you. - Carsten On Aug 31, 2010, at 10:38 AM, Aidan Gauland wrote: It is impossible to have closing brackets in a footnote, because they are treated as the closing bracket for the foot note. Example... * A heading This is a broken footnote.[fn:: Some book at [42-24].] This will export to (as ASCII, for example)... org-fn-bug-example == Author: Aidan Gauland Date: 2010-08-31 20:33:14 NZST Table of Contents = 1 A heading 1 A heading This is a broken footnote.[1].] This will export to (as ASCII, for example)... [1] Some book at [42-24 This is how I am required to cite books for my academic essays, so this is a pretty serious bug for me (and no doubt other students, as well). Regards, Aidan Gauland Emacs : GNU Emacs 24.0.50.6 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1) of 2010-08-29 on dimension8 Package: Org-mode version 7.01trans current state: == (setq org-export-latex-after-initial-vars-hook '(org-beamer-after-initial- vars) org-agenda-files '(~/uc-files/uc-work.org) org-agenda-include-diary t org-completion-use-iswitchb t org-completion-use-ido t org-metaup-hook '(org-babel-load-in-session-maybe) org-after-todo-state-change-hook '(org-clock-out-if-current) org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup) org-export-latex-format-toc-function 'org-export-latex-format-toc- default org-export-preprocess-hook '(org-export-blocks-preprocess) org-tab-first-hook '(org-hide-block-toggle-maybe org-babel-hide-result-toggle-maybe) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-confirm-shell-link-function 'yes-or-no-p org-export-first-hook '(org-beamer-initialize-open-trackers) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide- drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link-modifiers) org-mode-hook '(#[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-show-block-all append local] 5] #[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-babel-show-result- all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute- safely-maybe) org-confirm-elisp-link-function 'yes-or-no-p org-export-interblocks '((lob org-babel-exp-lob-one-liners) (src org-babel-exp-inline-src-blocks)) org-occur-hook '(org-first-headline-recenter) org-outline-path-complete-in-steps nil org-export-preprocess-before-selecting-backend-code-hook '(org-beamer-select-beamer-code) org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix- toc org-beamer-auto-fragile-frames org-beamer-place-default-actions-for-lists) org-metadown-hook '(org-babel-pop-to-session-maybe) org-export-blocks '((src org-babel-exp-src-blocks nil) (comment org-export-blocks-format-comment t) (ditaa org-export-blocks-format-ditaa nil) (dot org-export-blocks-format-dot nil)) ) ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to
Re: [Orgmode] Bug: Impossible to have right bracket in footnotes [7.01trans]
Well I use biblatex to produce the chicago citations, used pretty widely in the humanities in N. America, and the LaTeX \cite{} commands under that setup take their optional arguments in square brackets. The most frequent optional argument is a page number for the citation, but I also use them for prefixes to the citation, e.g. a footnote which reads See also Becker, 59 would be generated like this \autocite[59][See also](Becker2010). Scot On Wed, Sep 1, 2010 at 1:29 AM, Aidan Gauland aidal...@no8wireless.co.nzwrote: Alan L Tyree wrote: Disable footnotes like [2010], but keep footnotes like [fn:2010] The reason is that I write legal texts that have references to case law that look like: Marreco v Richardson [1908] 2 KB 584. The dates in square brackets are an essential part of the reference. Perhaps it would be best to determine for what type of writing the current way Org handles footnotes is lacking. Is it just academic writing in general, of mostly only certain fields? Both Alan and I have needed to use a workaround for legal writing (I'm a first-year student; don't know about Alan). What have other people had trouble footnoting/citing in Org? --Aidan ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Bug: Impossible to have right bracket in footnotes [7.01trans]
On Tue, 31 Aug 2010 14:09:58 +0200 Carsten Dominik carsten.domi...@gmail.com wrote: Hi Aidan, unfortunately this is difficult to fix in a good way. I do want to go back to footnotes, because I think there are many things that do not yet work satisfactorily. And then I also hope to address the issue you raised. For the time being, unfortunately, I do not have a solution for you. I also have problems with footnotes. Jan Boecker kindly devised a work-around using non-printing spaces which is OK, but what I would like is: Disable footnotes like [2010], but keep footnotes like [fn:2010] The reason is that I write legal texts that have references to case law that look like: Marreco v Richardson [1908] 2 KB 584. The dates in square brackets are an essential part of the reference. f:nil in the Options seems to disable all footnotes rather than just the [2010] type. The documentation is slightly misleading on this. Under Export options it says: f: turn on/off footnotes like this[1]. I seem to be living more and more in org-mode. Thanks for such great software! Alan - Carsten On Aug 31, 2010, at 10:38 AM, Aidan Gauland wrote: It is impossible to have closing brackets in a footnote, because they are treated as the closing bracket for the foot note. Example... * A heading This is a broken footnote.[fn:: Some book at [42-24].] This will export to (as ASCII, for example)... org-fn-bug-example == Author: Aidan Gauland Date: 2010-08-31 20:33:14 NZST Table of Contents = 1 A heading 1 A heading This is a broken footnote.[1].] This will export to (as ASCII, for example)... [1] Some book at [42-24 This is how I am required to cite books for my academic essays, so this is a pretty serious bug for me (and no doubt other students, as well). Regards, Aidan Gauland Emacs : GNU Emacs 24.0.50.6 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1) of 2010-08-29 on dimension8 Package: Org-mode version 7.01trans current state: == (setq org-export-latex-after-initial-vars-hook '(org-beamer-after-initial- vars) org-agenda-files '(~/uc-files/uc-work.org) org-agenda-include-diary t org-completion-use-iswitchb t org-completion-use-ido t org-metaup-hook '(org-babel-load-in-session-maybe) org-after-todo-state-change-hook '(org-clock-out-if-current) org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup) org-export-latex-format-toc-function 'org-export-latex-format-toc- default org-export-preprocess-hook '(org-export-blocks-preprocess) org-tab-first-hook '(org-hide-block-toggle-maybe org-babel-hide-result-toggle-maybe) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-confirm-shell-link-function 'yes-or-no-p org-export-first-hook '(org-beamer-initialize-open-trackers) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide- drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link-modifiers) org-mode-hook '(#[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-show-block-all append local] 5] #[nil #\300 #\301 #\302 #\303 #\304 #$ #\207 [org-add-hook change-major-mode-hook org-babel-show-result- all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute- safely-maybe) org-confirm-elisp-link-function 'yes-or-no-p org-export-interblocks '((lob org-babel-exp-lob-one-liners) (src org-babel-exp-inline-src-blocks)) org-occur-hook '(org-first-headline-recenter) org-outline-path-complete-in-steps nil org-export-preprocess-before-selecting-backend-code-hook '(org-beamer-select-beamer-code) org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix- toc org-beamer-auto-fragile-frames
Re: [Orgmode] Bug: Impossible to have right bracket in footnotes [7.01trans]
Aidan Gauland aidal...@no8wireless.co.nz writes: Emacs : GNU Emacs 24.0.50.6 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1) of 2010-08-29 on dimension8 Package: Org-mode version 7.01trans It is impossible to have closing brackets in a footnote, because they are treated as the closing bracket for the foot note. Example... * A heading This is a broken footnote.[fn:: Some book at [42-24].] This will export to (as ASCII, for example)... 1 A heading This is a broken footnote.[1].] This will export to (as ASCII, for example)... [1] Some book at [42-24 This is how I am required to cite books for my academic essays, so this is a pretty serious bug for me (and no doubt other students, as well). GNU Emacs 23.2.1 (i386-mingw-nt5.1.2600) of 2010-05-08 on G41R2F1 Org-mode version 7.01trans-commit-1d1439f91e63e71f39e93622a0af439762522c00 Also escaping the brackets does not work Example: ** A heading This is a broken footnote.[fn:: Some book at \[42-24\].] Exports to: 1 A heading This is a broken footnote.[1].] [1] Some book at \[42-24\ Giovanni ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Bug: Impossible to have right bracket in footnotes [7.01trans]
Am 31.08.2010 12:43, schrieb Giovanni Ridolfi: Aidan Gaulandaidal...@no8wireless.co.nz writes: Emacs : GNU Emacs 24.0.50.6 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1) of 2010-08-29 on dimension8 Package: Org-mode version 7.01trans It is impossible to have closing brackets in a footnote, because they are treated as the closing bracket for the foot note. Example... * A heading This is a broken footnote.[fn:: Some book at [42-24].] This will export to (as ASCII, for example)... 1 A heading This is a broken footnote.[1].] This will export to (as ASCII, for example)... [1] Some book at [42-24 This is how I am required to cite books for my academic essays, so this is a pretty serious bug for me (and no doubt other students, as well). GNU Emacs 23.2.1 (i386-mingw-nt5.1.2600) of 2010-05-08 on G41R2F1 Org-mode version 7.01trans-commit-1d1439f91e63e71f39e93622a0af439762522c00 Also escaping the brackets does not work Example: ** A heading This is a broken footnote.[fn:: Some book at \[42-24\].] Exports to: 1 A heading This is a broken footnote.[1].] [1] Some book at \[42-24\ Giovanni Should be a way to change footnote-style, so it doesn't use brackets. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Bug: Impossible to have right bracket in footnotes [7.01trans]
Hi Aidan, unfortunately this is difficult to fix in a good way. I do want to go back to footnotes, because I think there are many things that do not yet work satisfactorily. And then I also hope to address the issue you raised. For the time being, unfortunately, I do not have a solution for you. - Carsten On Aug 31, 2010, at 10:38 AM, Aidan Gauland wrote: It is impossible to have closing brackets in a footnote, because they are treated as the closing bracket for the foot note. Example... * A heading This is a broken footnote.[fn:: Some book at [42-24].] This will export to (as ASCII, for example)... org-fn-bug-example == Author: Aidan Gauland Date: 2010-08-31 20:33:14 NZST Table of Contents = 1 A heading 1 A heading This is a broken footnote.[1].] This will export to (as ASCII, for example)... [1] Some book at [42-24 This is how I am required to cite books for my academic essays, so this is a pretty serious bug for me (and no doubt other students, as well). Regards, Aidan Gauland Emacs : GNU Emacs 24.0.50.6 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1) of 2010-08-29 on dimension8 Package: Org-mode version 7.01trans current state: == (setq org-export-latex-after-initial-vars-hook '(org-beamer-after-initial- vars) org-agenda-files '(~/uc-files/uc-work.org) org-agenda-include-diary t org-completion-use-iswitchb t org-completion-use-ido t org-metaup-hook '(org-babel-load-in-session-maybe) org-after-todo-state-change-hook '(org-clock-out-if-current) org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup) org-export-latex-format-toc-function 'org-export-latex-format-toc- default org-export-preprocess-hook '(org-export-blocks-preprocess) org-tab-first-hook '(org-hide-block-toggle-maybe org-babel-hide-result-toggle-maybe) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-confirm-shell-link-function 'yes-or-no-p org-export-first-hook '(org-beamer-initialize-open-trackers) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide- drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link-modifiers) org-mode-hook '(#[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-show-block-all append local] 5] #[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-babel-show-result- all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute- safely-maybe) org-confirm-elisp-link-function 'yes-or-no-p org-export-interblocks '((lob org-babel-exp-lob-one-liners) (src org-babel-exp-inline-src-blocks)) org-occur-hook '(org-first-headline-recenter) org-outline-path-complete-in-steps nil org-export-preprocess-before-selecting-backend-code-hook '(org-beamer-select-beamer-code) org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix- toc org-beamer-auto-fragile-frames org-beamer-place-default-actions-for-lists) org-metadown-hook '(org-babel-pop-to-session-maybe) org-export-blocks '((src org-babel-exp-src-blocks nil) (comment org-export-blocks-format-comment t) (ditaa org-export-blocks-format-ditaa nil) (dot org-export-blocks-format-dot nil)) ) ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Bug: Impossible to have right bracket in footnotes [7.01trans]
This is a two-part problem. 1. Right square bracket in inline footnote prematurely terminates the footnote. IMO this is not a bug, it's an inherent and quite reasonable limitation on the inline footnote format, and is easily solved by falling back on the block footnote syntax. #+BEGIN_EXAMPLE ** A heading This is a broken footnote.[fn:somebook] [fn:somebook] Some book at [42-24]. #+END_EXAMPLE 2. A number in square brackets is interpreted as a footnote marker (even inside another footnote). In ASCII export, as in Aidan's example, this doesn't matter because footnote markers are exported in ... square brackets. But in other export formats it's an occasional pain. Some workarounds for this problem, involving =fn:nil= or invisible zero-space characters, were recently posted on the list: http://comments.gmane.org/gmane.emacs.orgmode/28191 Cheers, Christian Giovanni Ridolfi wrote: Aidan Gauland aidal...@no8wireless.co.nz writes: Emacs : GNU Emacs 24.0.50.6 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1) of 2010-08-29 on dimension8 Package: Org-mode version 7.01trans It is impossible to have closing brackets in a footnote, because they are treated as the closing bracket for the foot note. Example... * A heading This is a broken footnote.[fn:: Some book at [42-24].] This will export to (as ASCII, for example)... 1 A heading This is a broken footnote.[1].] This will export to (as ASCII, for example)... [1] Some book at [42-24 This is how I am required to cite books for my academic essays, so this is a pretty serious bug for me (and no doubt other students, as well). GNU Emacs 23.2.1 (i386-mingw-nt5.1.2600) of 2010-05-08 on G41R2F1 Org-mode version 7.01trans-commit-1d1439f91e63e71f39e93622a0af439762522c00 Also escaping the brackets does not work Example: ** A heading This is a broken footnote.[fn:: Some book at \[42-24\].] Exports to: 1 A heading This is a broken footnote.[1].] [1] Some book at \[42-24\ Giovanni ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode -- Christian Moe E-mail: m...@christianmoe.com Website: http://christianmoe.com ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Bug: Impossible to have right bracket in footnotes [7.01trans]
Carsten Dominik carsten.domi...@gmail.com writes: unfortunately this is difficult to fix in a good way. I do want to go back to footnotes, because I think there are many things that do not yet work satisfactorily. And then I also hope to address the issue you raised. For the time being, unfortunately, I do not have a solution for you. I have a workaround. If the author uses the a special code for [ and ], e.g. #91; and #93; then the note is exported correctly. ** example This is not anymore a broken footnote.[fn:: Some book at #91; 42-24 #93;.] Exports to: This is not anymore broken footnote.[1] [1] Some book at #91; 42-24 #93;. -- But then the file have to be post-processed to substitute #91; and #93; Place these lines in .emacs, or evaluate them (goto the last ) and hit C-x C-e) for the current session : -- (add-hook 'org-export-html-final-hook 'gio/replace-square-brackets) (add-hook 'org-export-ascii-final-hook 'gio/replace-square-brackets) (defun gio/replace-square-brackets () Replace #91; with [ and #93; with ] (interactive) (setq a #91;) ; use \[ for LaTeX export (setq a1 [) (setq b #93;) ; use \] for LaTeX export (setq b1 ]) (ignore-errors (goto-char 1) (setq p (point)) (while ( p (point-max)) (re-search-forward a nil nil) (replace-match a1) (setq p (point)) ) ) ;; (ignore-errors (goto-char 1) (setq p (point)) (while ( p (point-max)) (re-search-forward b nil nil) (replace-match b1) (setq p (point)) ) ) (save-buffer) ) -- Tested for HTML, ASCII. For the LaTeX export the line: This is not anymore a broken footnote.[fn:: Some book at #91; 42-24#93;.] exports to: This is not anymore a broken footnote.\footnote{Some book at \[ 42-24 \]. } So the LaTeX seems to convert directly the #9?; character. Not tested for docbook. HTH Giovanni ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Bug: Impossible to have right bracket in footnotes [7.01trans]
Giovanni, Thanks for that. I have the same problem, since I put citations in my footnotes in the format \cite[50]{Ridolfi_2011_Autobiography}. This is great. It's also a nice model for a few other petty troubles I want to postprocess away. Scot On Tue, Aug 31, 2010 at 3:13 PM, Giovanni Ridolfi giovanni.rido...@yahoo.it wrote: Carsten Dominik carsten.domi...@gmail.com writes: unfortunately this is difficult to fix in a good way. I do want to go back to footnotes, because I think there are many things that do not yet work satisfactorily. And then I also hope to address the issue you raised. For the time being, unfortunately, I do not have a solution for you. I have a workaround. If the author uses the a special code for [ and ], e.g. #91; and #93; then the note is exported correctly. ** example This is not anymore a broken footnote.[fn:: Some book at #91; 42-24 #93;.] Exports to: This is not anymore broken footnote.[1] [1] Some book at #91; 42-24 #93;. -- But then the file have to be post-processed to substitute #91; and #93; Place these lines in .emacs, or evaluate them (goto the last ) and hit C-x C-e) for the current session : -- (add-hook 'org-export-html-final-hook 'gio/replace-square-brackets) (add-hook 'org-export-ascii-final-hook 'gio/replace-square-brackets) (defun gio/replace-square-brackets () Replace #91; with [ and #93; with ] (interactive) (setq a #91;) ; use \[ for LaTeX export (setq a1 [) (setq b #93;) ; use \] for LaTeX export (setq b1 ]) (ignore-errors (goto-char 1) (setq p (point)) (while ( p (point-max)) (re-search-forward a nil nil) (replace-match a1) (setq p (point)) ) ) ;; (ignore-errors (goto-char 1) (setq p (point)) (while ( p (point-max)) (re-search-forward b nil nil) (replace-match b1) (setq p (point)) ) ) (save-buffer) ) -- Tested for HTML, ASCII. For the LaTeX export the line: This is not anymore a broken footnote.[fn:: Some book at #91; 42-24#93;.] exports to: This is not anymore a broken footnote.\footnote{Some book at \[ 42-24 \]. } So the LaTeX seems to convert directly the #9?; character. Not tested for docbook. HTH Giovanni ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Bug: Impossible to have right bracket in footnotes [7.01trans]
Thanks! That works fine. I suppose I should point out that I only used = an ASCII export for the example situation, but I ran into this problem expor= ting to HTML. --Aidan Gauland signature.asc Description: OpenPGP digital signature ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Bug: Impossible to have right bracket in footnotes [7.01trans]
Alan L Tyree wrote: Disable footnotes like [2010], but keep footnotes like [fn:2010] The reason is that I write legal texts that have references to case law that look like: Marreco v Richardson [1908] 2 KB 584. The dates in square brackets are an essential part of the reference. Perhaps it would be best to determine for what type of writing the current way Org handles footnotes is lacking. Is it just academic writing in general, of mostly only certain fields? Both Alan and I have needed to use a workaround for legal writing (I'm a first-year student; don't know about Alan). What have other people had trouble footnoting/citing in Org? --Aidan signature.asc Description: OpenPGP digital signature ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode