emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Scot Becker <scot.becker@gmail.com>
To: Carsten Dominik <carsten.dominik@gmail.com>
Cc: Org-mode ml <emacs-orgmode@gnu.org>
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	[thread overview]
Message-ID: <e0e1fe620911260659n3cdc8e8an902c200e6fa9c82d@mail.gmail.com> (raw)
In-Reply-To: <0B92941F-0F4A-4F20-BE5B-2E96A485AD01@gmail.com>

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.dominik@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}")
>>                             ("\\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.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
> - Carsten
>
>
>
>

      reply	other threads:[~2009-11-26 15:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-26 11:27 Bug: Org finds footnotes in LaTeX export where none are intended [6.33trans (release_6.33f.35.g3efe)] Scot Becker
2009-11-26 12:51 ` Carsten Dominik
2009-11-26 14:59   ` Scot Becker [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e0e1fe620911260659n3cdc8e8an902c200e6fa9c82d@mail.gmail.com \
    --to=scot.becker@gmail.com \
    --cc=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).