emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Bug: Org finds footnotes in LaTeX export where none are in


From: Scot Becker
Subject: Re: [Orgmode] 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

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
<address@hidden> 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}")
>>                             ("\\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}")
>> ("\\subsection{%s}" . "\\subsection*{%s}")
>>                             ("\\subsubsection{%s}" .
>> "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}")
>>                             ("\\subparagraph{%s}" .
>> "\\subparagraph*{%s}"))
>>                            ("report"
>>
>>
>> "\\documentclass[11pt]{report}\n\\usepackage[utf8]{inputenc}\n\\usepackage[T1]{fontenc}\n\\usepackage{graphicx}\n\\usepackage{longtable}\n\\usepackage{hyperref}"
>>                             ("\\part{%s}" . "\\part*{%s}")
>> ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" .
>> "\\section*{%s}")
>>                             ("\\subsection{%s}" .
>> "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
>>                            ("book"
>>
>>
>> "\\documentclass[11pt]{book}\n\\usepackage[utf8]{inputenc}\n\\usepackage[T1]{fontenc}\n\\usepackage{graphicx}\n\\usepackage{longtable}\n\\usepackage{hyperref}"
>>                             ("\\part{%s}" . "\\part*{%s}")
>> ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" .
>> "\\section*{%s}")
>>                             ("\\subsection{%s}" .
>> "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
>>                            ("memoir"
>>
>>
>> "\\documentclass[12pt,oneside,a4paper]{memoir}\n\\usepackage{graphicx}\n\\usepackage{longtable}\n\\usepackage{hyperref}\n\\usepackage{euler}\n\\usepackage{fontspec}\n%
>> BEGIN My Memoir
>> Defaults\n\\input{/home/scot/org/tex/thesis-header.tex}\n% END My
>> Memoir Defaults"
>>                             ("\\chapter{%s}" . "\\chapter*{%s}")
>> ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" .
>> "\\subsection*{%s}")
>>                             ("\\subsubsection{%s}" .
>> "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}")
>>                             ("\\subparagraph{%s}" .
>> "\\subparagraph*{%s}"))
>>                            ("mythesis"
>>
>>
>> "\\documentclass[12pt,oneside,a4paper]{book}\n\\usepackage{graphicx}\n\\usepackage{longtable}\n\\usepackage{hyperref}\n\\usepackage{euler}\n\\usepackage{fontspec}\n%
>> BEGIN My Thesis
>> Defaults\n\\input{/home/scot/org/tex/thesis-header.tex}\n% END My
>> Thesis Defaults"
>>                             ("\\chapter{%s}" . "\\chapter*{%s}")
>> ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" .
>> "\\subsection*{%s}")
>>                             ("\\subsubsection{%s}" .
>> "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}")
>>                             ("\\subparagraph{%s}" .
>> "\\subparagraph*{%s}"))
>>                            ("mychapter"
>>
>>
>> "\\documentclass[12pt,oneside,a4paper]{book}\n\\usepackage{graphicx}\n\\usepackage{longtable}\n\\usepackage{hyperref}\n\\usepackage{euler}\n\\usepackage{fontspec}\n%
>> BEGIN My Thesis
>> Defaults\n\\input{/home/scot/org/tex/thesis-header.tex}\n% END My
>> Thesis Defaults"
>>                             ("\\section{%s}" . "\\section*{%s}")
>> ("\\subsection{%s}" . "\\subsection*{%s}")
>>                             ("\\subsubsection{%s}" .
>> "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}")
>>                             ("\\subparagraph{%s}" .
>> "\\subparagraph*{%s}"))
>>                            )
>>  org-mode-hook '((lambda nil (define-key yas/keymap [tab] (quote
>> yas/next-field-group)))
>>                 (lambda nil (make-variable-buffer-local (quote
>> yas/trigger-key)) (setq yas/trigger-key [tab])) (lambda nil
>> (imenu-add-to-menubar "Imenu"))
>>                 #[nil "\300\301\302\303\304$\207" [org-add-hook
>> change-major-mode-hook org-show-block-all append local] 5])
>>  org-font-lock-hook '(org-inlinetask-fontify)
>>  org-ctrl-c-ctrl-c-hook '(org-babel-lob-execute-maybe
>> org-babel-execute-src-block-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-from-is-user-regexp "\\<Scot Becker\\>"
>>  org-remember-templates '(("Todo" 100 "* TODO %?\n  %i\n  %a"
>> "~/org/TODO.org" "Tasks") ("Journal" 106 "* %U %?\n\n  %i\n  %a"
>> "~/wr/personal-org/tag.org")
>>                          ("Idea" 105 "* %^{Title}\n  %i\n  %a"
>> "~/org/Ideas.org" "New Ideas")
>>                          ("Homo Faber" 102 "* %^{Title}\n  %i\n  %a"
>> "~/org/TODO.org" "Tooling")
>>                          ("Thesis Idea" 116 "* %^{Title}\n  %i\n  %a"
>> "~/org/Thesis-Ideas.org" "Thesis Ideas")
>>                          ("Thesis ToDo" 104 "* %^{Title}\n  %i\n  %a"
>> "~/org/TODO.org" "Thesis")
>>                          ("ledger" 108 ""
>> "~/wr/personal-org/ledger.dat" bottom nil) (119 "* %^{Title}\n\n
>> Source: %u, %c\n\n  %i" nil "Thesis-Ideas.org")
>>                          ("Bug" 98 "* BUG %?\n  %i\n  %a"
>> "~/org/BUGS.org" "Bugs"))
>>  org-export-preprocess-after-tree-selection-hook
>> '(org-inlinetask-export-handler)
>>  org-export-docbook-final-hook '(org-inlinetask-remove-terminator)
>>  org-footnote-define-inline t
>>  org-export-latex-final-hook '(org-inlinetask-remove-terminator)
>>  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.
>> address@hidden
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
> - Carsten
>
>
>
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]