[Orgmode] Bug: Org finds footnotes in LaTeX export where none are intended [6.33trans (release_6.33f.35.g3efe)]
I cite my references in org like this.\autocite[231]{bibtexkey_2009}, where '231' is the relevant page number. When exporting to LaTeX, Org thinks that the value in square brackets is a footnote number and produces a document with a footnote definition not found: 231 error message at the bottom of the document. My settings are below, and I've searched pretty hard through them to look for anything that might have caused it. Any ideas? Many thanks. Scot (sample org file, output, and my full org configuration included below) Sample file: #+TITLE: Some Lorem #+LaTeX_CLASS: mychapter * Heading Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enimad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\autocite[51]{Einstein_1950} Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enimad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\autocite[123]{dominik_2010} Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\autocite[xxi]{spacebook_2001} -- output (edited): --- % Created 2009-11-26 Thu 11:22 \documentclass[12pt,oneside,a4paper]{book} \title{Some Lorem} \author{Scot Becker} \date{26 November 2009} \begin{document} \maketitle \setcounter{tocdepth}{3} \tableofcontents \vspace*{1cm} \section{Heading} \label{sec-1} Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enimad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\autocite[1]{Einstein_1950} Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enimad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\autocite[2]{dominik_2010} Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\autocite[xxi]{spacebook_2001} $^{1}$ FOOTNOTE DEFINITION NOT FOUND: 51 $^{2}$ FOOTNOTE DEFINITION NOT FOUND: 123 \end{document} ---Settings--- Emacs : GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.18.3) of 2009-11-10 on vernadsky, modified by Debian Package: Org-mode version 6.33trans (release_6.33f.35.g3efe) current state: == (setq org-export-html-final-hook '(org-inlinetask-remove-terminator) org-export-ascii-final-hook '(org-inlinetask-remove-terminator) org-hide-leading-stars t org-metaup-hook '(org-babel-load-in-session-maybe) org-footnote-section nil org-after-todo-state-change-hook '(org-clock-out-if-current) org-babel-interpreters '(sh emacs-lisp) org-export-preprocess-hook '(org-export-blocks-preprocess) org-tab-first-hook '(org-hide-block-toggle-maybe) org-src-mode-hook '(org-src-mode-configure-edit-buffer) org-confirm-shell-link-function 'yes-or-no-p org-agenda-before-write-hook '(org-agenda-add-entry-text) org-default-notes-file ~/org/notes.org 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-latex-classes '((article \\documentclass[11pt]{article}\n\\usepackage[utf8]{inputenc}\n\\usepackage[T1]{fontenc}\n\\usepackage{graphicx}\n\\usepackage{longtable}\n\\usepackage{hyperref} (\\section{%s} . \\section*{%s}) (\\subsection{%s} . \\subsection*{%s}) (\\subsubsection{%s} . \\subsubsection*{%s}) (\\paragraph{%s} . \\paragraph*{%s}) (\\subparagraph{%s} . \\subparagraph*{%s})) (xetex-article \\documentclass[11pt]{article}\n\\usepackage[utf8]{inputenc}\n\\usepackage[T1]{fontenc}\n\\usepackage{graphicx}\n\\usepackage{longtable}\n\\usepackage{hyperref\\usepackage{fontspec}\n% BEGIN My Article Defaults\n\\input{~/org/thesis-header.tex}\n% END My Article Defaults} (\\section{%s} . \\section*{%s})
Re: [Orgmode] Bug: Org finds footnotes in LaTeX export where none are intended [6.33trans (release_6.33f.35.g3efe)]
Hi Scott, I have fixed this for export - but the string are still highlighted as footnotes by font-lock, this is harder to solve. - Carsten On Nov 26, 2009, at 12:27 PM, Scot Becker wrote: I cite my references in org like this.\autocite[231]{bibtexkey_2009}, where '231' is the relevant page number. When exporting to LaTeX, Org thinks that the value in square brackets is a footnote number and produces a document with a footnote definition not found: 231 error message at the bottom of the document. My settings are below, and I've searched pretty hard through them to look for anything that might have caused it. Any ideas? Many thanks. Scot (sample org file, output, and my full org configuration included below) Sample file: #+TITLE: Some Lorem #+LaTeX_CLASS: mychapter * Heading Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enimad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\autocite[51]{Einstein_1950} Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enimad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\autocite[123]{dominik_2010} Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\autocite[xxi]{spacebook_2001} -- output (edited): --- % Created 2009-11-26 Thu 11:22 \documentclass[12pt,oneside,a4paper]{book} \title{Some Lorem} \author{Scot Becker} \date{26 November 2009} \begin{document} \maketitle \setcounter{tocdepth}{3} \tableofcontents \vspace*{1cm} \section{Heading} \label{sec-1} Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enimad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\autocite[1]{Einstein_1950} Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enimad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\autocite[2]{dominik_2010} Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\autocite[xxi]{spacebook_2001} $^{1}$ FOOTNOTE DEFINITION NOT FOUND: 51 $^{2}$ FOOTNOTE DEFINITION NOT FOUND: 123 \end{document} ---Settings--- Emacs : GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.18.3) of 2009-11-10 on vernadsky, modified by Debian Package: Org-mode version 6.33trans (release_6.33f.35.g3efe) current state: == (setq org-export-html-final-hook '(org-inlinetask-remove-terminator) org-export-ascii-final-hook '(org-inlinetask-remove-terminator) org-hide-leading-stars t org-metaup-hook '(org-babel-load-in-session-maybe) org-footnote-section nil org-after-todo-state-change-hook '(org-clock-out-if-current) org-babel-interpreters '(sh emacs-lisp) org-export-preprocess-hook '(org-export-blocks-preprocess) org-tab-first-hook '(org-hide-block-toggle-maybe) org-src-mode-hook '(org-src-mode-configure-edit-buffer) org-confirm-shell-link-function 'yes-or-no-p org-agenda-before-write-hook '(org-agenda-add-entry-text) org-default-notes-file ~/org/notes.org 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-latex-classes '((article \\documentclass[11pt]{article}\n\\usepackage[utf8]{inputenc}\n\ \usepackage[T1]{fontenc}\n\\usepackage{graphicx}\n\ \usepackage{longtable}\n\\usepackage{hyperref} (\\section{%s} . \\section*{%s}) (\\subsection{%s} . \\subsection*{%s}) (\\subsubsection{%s} . \\subsubsection*{%s}) (\\paragraph{%s} . \\paragraph*{%s}) (\\subparagraph{%s} . \ \subparagraph*{%s})) (xetex-article \\documentclass[11pt]{article}\n\\usepackage[utf8]{inputenc}\n\ \usepackage[T1]{fontenc}\n\\usepackage{graphicx}\n\
Re: [Orgmode] Bug: Org finds footnotes in LaTeX export where none are intended [6.33trans (release_6.33f.35.g3efe)]
Wonderful. I, for one don't mind the font lock problem. You have to leave some problems for your successor, (long may he wait). Gratefully, Scot On Thu, Nov 26, 2009 at 12:51 PM, Carsten Dominik carsten.domi...@gmail.com wrote: Hi Scott, I have fixed this for export - but the string are still highlighted as footnotes by font-lock, this is harder to solve. - Carsten On Nov 26, 2009, at 12:27 PM, Scot Becker wrote: I cite my references in org like this.\autocite[231]{bibtexkey_2009}, where '231' is the relevant page number. When exporting to LaTeX, Org thinks that the value in square brackets is a footnote number and produces a document with a footnote definition not found: 231 error message at the bottom of the document. My settings are below, and I've searched pretty hard through them to look for anything that might have caused it. Any ideas? Many thanks. Scot (sample org file, output, and my full org configuration included below) Sample file: #+TITLE: Some Lorem #+LaTeX_CLASS: mychapter * Heading Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enimad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\autocite[51]{Einstein_1950} Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enimad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\autocite[123]{dominik_2010} Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\autocite[xxi]{spacebook_2001} -- output (edited): --- % Created 2009-11-26 Thu 11:22 \documentclass[12pt,oneside,a4paper]{book} \title{Some Lorem} \author{Scot Becker} \date{26 November 2009} \begin{document} \maketitle \setcounter{tocdepth}{3} \tableofcontents \vspace*{1cm} \section{Heading} \label{sec-1} Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enimad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\autocite[1]{Einstein_1950} Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enimad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\autocite[2]{dominik_2010} Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\autocite[xxi]{spacebook_2001} $^{1}$ FOOTNOTE DEFINITION NOT FOUND: 51 $^{2}$ FOOTNOTE DEFINITION NOT FOUND: 123 \end{document} ---Settings--- Emacs : GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.18.3) of 2009-11-10 on vernadsky, modified by Debian Package: Org-mode version 6.33trans (release_6.33f.35.g3efe) current state: == (setq org-export-html-final-hook '(org-inlinetask-remove-terminator) org-export-ascii-final-hook '(org-inlinetask-remove-terminator) org-hide-leading-stars t org-metaup-hook '(org-babel-load-in-session-maybe) org-footnote-section nil org-after-todo-state-change-hook '(org-clock-out-if-current) org-babel-interpreters '(sh emacs-lisp) org-export-preprocess-hook '(org-export-blocks-preprocess) org-tab-first-hook '(org-hide-block-toggle-maybe) org-src-mode-hook '(org-src-mode-configure-edit-buffer) org-confirm-shell-link-function 'yes-or-no-p org-agenda-before-write-hook '(org-agenda-add-entry-text) org-default-notes-file ~/org/notes.org 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-latex-classes '((article \\documentclass[11pt]{article}\n\\usepackage[utf8]{inputenc}\n\\usepackage[T1]{fontenc}\n\\usepackage{graphicx}\n\\usepackage{longtable}\n\\usepackage{hyperref} (\\section{%s} . \\section*{%s}) (\\subsection{%s} . \\subsection*{%s})