From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scot Becker Subject: Re: Bug: Org finds footnotes in LaTeX export where none are intended [6.33trans (release_6.33f.35.g3efe)] Date: Thu, 26 Nov 2009 14:59:37 +0000 Message-ID: References: <0B92941F-0F4A-4F20-BE5B-2E96A485AD01@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NDfpI-0002vt-24 for emacs-orgmode@gnu.org; Thu, 26 Nov 2009 10:00:08 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NDfpD-0002rg-NX for emacs-orgmode@gnu.org; Thu, 26 Nov 2009 10:00:07 -0500 Received: from [199.232.76.173] (port=59870 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDfpD-0002rK-4s for emacs-orgmode@gnu.org; Thu, 26 Nov 2009 10:00:03 -0500 Received: from mail-ew0-f224.google.com ([209.85.219.224]:54458) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NDfpB-0003T5-Dg for emacs-orgmode@gnu.org; Thu, 26 Nov 2009 10:00:02 -0500 Received: by ewy24 with SMTP id 24so882048ewy.26 for ; Thu, 26 Nov 2009 06:59:59 -0800 (PST) In-Reply-To: <0B92941F-0F4A-4F20-BE5B-2E96A485AD01@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: Org-mode ml 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 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. =A0When 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. =A0My settings are below, and >> I've searched pretty hard through them to look for anything that might >> have caused it. =A0Any 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} =A0Duis >> 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} =A0Duis 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 =A0: GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.18.3) >> =A0of 2009-11-10 on vernadsky, modified by Debian >> Package: Org-mode version 6.33trans (release_6.33f.35.g3efe) >> >> current state: >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> (setq >> =A0org-export-html-final-hook '(org-inlinetask-remove-terminator) >> =A0org-export-ascii-final-hook '(org-inlinetask-remove-terminator) >> =A0org-hide-leading-stars t >> =A0org-metaup-hook '(org-babel-load-in-session-maybe) >> =A0org-footnote-section nil >> =A0org-after-todo-state-change-hook '(org-clock-out-if-current) >> =A0org-babel-interpreters '("sh" "emacs-lisp") >> =A0org-export-preprocess-hook '(org-export-blocks-preprocess) >> =A0org-tab-first-hook '(org-hide-block-toggle-maybe) >> =A0org-src-mode-hook '(org-src-mode-configure-edit-buffer) >> =A0org-confirm-shell-link-function 'yes-or-no-p >> =A0org-agenda-before-write-hook '(org-agenda-add-entry-text) >> =A0org-default-notes-file "~/org/notes.org" >> =A0org-cycle-hook '(org-cycle-hide-archived-subtrees >> org-cycle-hide-drawers org-cycle-show-empty-lines >> org-optimize-window-after-visibility-change) >> =A0org-export-latex-classes '(("article" >> >> >> "\\documentclass[11pt]{article}\n\\usepackage[utf8]{inputenc}\n\\usepack= age[T1]{fontenc}\n\\usepackage{graphicx}\n\\usepackage{longtable}\n\\usepac= kage{hyperref}" >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ("\\section{%s}"= . "\\section*{%s}") >> ("\\subsection{%s}" . "\\subsection*{%s}") >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ("\\subsubsectio= n{%s}" . >> "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ("\\subparagraph= {%s}" . >> "\\subparagraph*{%s}")) >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0("xetex-article" >> >> >> "\\documentclass[11pt]{article}\n\\usepackage[utf8]{inputenc}\n\\usepack= age[T1]{fontenc}\n\\usepackage{graphicx}\n\\usepackage{longtable}\n\\usepac= kage{hyperref\\usepackage{fontspec}\n% >> BEGIN My Article Defaults\n\\input{~/org/thesis-header.tex}\n% END My >> Article Defaults}" >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ("\\section{%s}"= . "\\section*{%s}") >> ("\\subsection{%s}" . "\\subsection*{%s}") >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ("\\subsubsectio= n{%s}" . >> "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ("\\subparagraph= {%s}" . >> "\\subparagraph*{%s}")) >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0("report" >> >> >> "\\documentclass[11pt]{report}\n\\usepackage[utf8]{inputenc}\n\\usepacka= ge[T1]{fontenc}\n\\usepackage{graphicx}\n\\usepackage{longtable}\n\\usepack= age{hyperref}" >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ("\\part{%s}" . = "\\part*{%s}") >> ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . >> "\\section*{%s}") >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ("\\subsection{%= s}" . >> "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0("book" >> >> >> "\\documentclass[11pt]{book}\n\\usepackage[utf8]{inputenc}\n\\usepackage= [T1]{fontenc}\n\\usepackage{graphicx}\n\\usepackage{longtable}\n\\usepackag= e{hyperref}" >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ("\\part{%s}" . = "\\part*{%s}") >> ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . >> "\\section*{%s}") >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ("\\subsection{%= s}" . >> "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0("memoir" >> >> >> "\\documentclass[12pt,oneside,a4paper]{memoir}\n\\usepackage{graphicx}\n= \\usepackage{longtable}\n\\usepackage{hyperref}\n\\usepackage{euler}\n\\use= package{fontspec}\n% >> BEGIN My Memoir >> Defaults\n\\input{/home/scot/org/tex/thesis-header.tex}\n% END My >> Memoir Defaults" >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ("\\chapter{%s}"= . "\\chapter*{%s}") >> ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . >> "\\subsection*{%s}") >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ("\\subsubsectio= n{%s}" . >> "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ("\\subparagraph= {%s}" . >> "\\subparagraph*{%s}")) >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0("mythesis" >> >> >> "\\documentclass[12pt,oneside,a4paper]{book}\n\\usepackage{graphicx}\n\\= usepackage{longtable}\n\\usepackage{hyperref}\n\\usepackage{euler}\n\\usepa= ckage{fontspec}\n% >> BEGIN My Thesis >> Defaults\n\\input{/home/scot/org/tex/thesis-header.tex}\n% END My >> Thesis Defaults" >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ("\\chapter{%s}"= . "\\chapter*{%s}") >> ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . >> "\\subsection*{%s}") >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ("\\subsubsectio= n{%s}" . >> "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ("\\subparagraph= {%s}" . >> "\\subparagraph*{%s}")) >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0("mychapter" >> >> >> "\\documentclass[12pt,oneside,a4paper]{book}\n\\usepackage{graphicx}\n\\= usepackage{longtable}\n\\usepackage{hyperref}\n\\usepackage{euler}\n\\usepa= ckage{fontspec}\n% >> BEGIN My Thesis >> Defaults\n\\input{/home/scot/org/tex/thesis-header.tex}\n% END My >> Thesis Defaults" >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ("\\section{%s}"= . "\\section*{%s}") >> ("\\subsection{%s}" . "\\subsection*{%s}") >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ("\\subsubsectio= n{%s}" . >> "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ("\\subparagraph= {%s}" . >> "\\subparagraph*{%s}")) >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0) >> =A0org-mode-hook '((lambda nil (define-key yas/keymap [tab] (quote >> yas/next-field-group))) >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (lambda nil (make-variable-buffer-local = (quote >> yas/trigger-key)) (setq yas/trigger-key [tab])) (lambda nil >> (imenu-add-to-menubar "Imenu")) >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 #[nil "\300\301\302\303\304$\207" [org-a= dd-hook >> change-major-mode-hook org-show-block-all append local] 5]) >> =A0org-font-lock-hook '(org-inlinetask-fontify) >> =A0org-ctrl-c-ctrl-c-hook '(org-babel-lob-execute-maybe >> org-babel-execute-src-block-maybe) >> =A0org-confirm-elisp-link-function 'yes-or-no-p >> =A0org-export-interblocks '((lob org-babel-exp-lob-one-liners) (src >> org-babel-exp-inline-src-blocks)) >> =A0org-occur-hook '(org-first-headline-recenter) >> =A0org-from-is-user-regexp "\\" >> =A0org-remember-templates '(("Todo" 100 "* TODO %?\n =A0%i\n =A0%a" >> "~/org/TODO.org" "Tasks") ("Journal" 106 "* %U %?\n\n =A0%i\n =A0%a" >> "~/wr/personal-org/tag.org") >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0("Idea" 105 "* %^{Tit= le}\n =A0%i\n =A0%a" >> "~/org/Ideas.org" "New Ideas") >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0("Homo Faber" 102 "* = %^{Title}\n =A0%i\n =A0%a" >> "~/org/TODO.org" "Tooling") >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0("Thesis Idea" 116 "*= %^{Title}\n =A0%i\n =A0%a" >> "~/org/Thesis-Ideas.org" "Thesis Ideas") >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0("Thesis ToDo" 104 "*= %^{Title}\n =A0%i\n =A0%a" >> "~/org/TODO.org" "Thesis") >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0("ledger" 108 "" >> "~/wr/personal-org/ledger.dat" bottom nil) (119 "* %^{Title}\n\n >> Source: %u, %c\n\n =A0%i" nil "Thesis-Ideas.org") >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0("Bug" 98 "* BUG %?\n= =A0%i\n =A0%a" >> "~/org/BUGS.org" "Bugs")) >> =A0org-export-preprocess-after-tree-selection-hook >> '(org-inlinetask-export-handler) >> =A0org-export-docbook-final-hook '(org-inlinetask-remove-terminator) >> =A0org-footnote-define-inline t >> =A0org-export-latex-final-hook '(org-inlinetask-remove-terminator) >> =A0org-metadown-hook '(org-babel-pop-to-session-maybe) >> =A0org-export-blocks '((src org-babel-exp-src-blocks nil) (comment >> org-export-blocks-format-comment t) (ditaa >> org-export-blocks-format-ditaa nil) >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (dot org-export-blocks-format-do= t nil)) >> =A0) >> >> >> _______________________________________________ >> 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 > > > >