From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Bug: Floating figure inside bullet list generates invalid latex [6.33trans (release_6.33f.19.g4b6d2)] Date: Sun, 22 Nov 2009 23:52:50 +0100 Message-ID: <718EB681-8AF0-4BD4-988A-1202414A3F47@gmail.com> References: <877htilhw3.wl%ucecesf@ucl.ac.uk> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NCLIh-0005Zj-NZ for emacs-orgmode@gnu.org; Sun, 22 Nov 2009 17:52:59 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NCLId-0005VE-LQ for emacs-orgmode@gnu.org; Sun, 22 Nov 2009 17:52:59 -0500 Received: from [199.232.76.173] (port=41605 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NCLId-0005Uy-Dg for emacs-orgmode@gnu.org; Sun, 22 Nov 2009 17:52:55 -0500 Received: from ey-out-1920.google.com ([74.125.78.146]:28310) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NCLIc-0004WB-Nd for emacs-orgmode@gnu.org; Sun, 22 Nov 2009 17:52:55 -0500 Received: by ey-out-1920.google.com with SMTP id 3so1609553eyh.34 for ; Sun, 22 Nov 2009 14:52:54 -0800 (PST) In-Reply-To: <877htilhw3.wl%ucecesf@ucl.ac.uk> 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: Eric S Fraga Cc: emacs-orgmode@gnu.org Hi Eric, I have tried to fix this, please verify, and be on the look-out if this patch breaks something else. Thanks. - Carsten On Nov 22, 2009, at 4:05 PM, Eric S Fraga wrote: > > Remember to cover the basics, that is, what you expected to happen and > what in fact did happen. You don't know how to make a good report? > See > > http://orgmode.org/manual/Feedback.html#Feedback > > Your bug report will be posted to the Org-mode mailing list. > ------------------------------------------------------------------------ > > The attached org-mode file has an image, meant to be exported as a > floating figure, within a list of items. The latex code generated has > the \end{itemize} placed between the \begin{figure} and \end{figure} > statements. I've attached the generated latex file as well. > > One question is whether the itemize environment should be closed or > not but that's not the error in this case in any case. > > thanks, > eric > > > Emacs : GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.16.5) > of 2009-09-14 on raven, modified by Debian > Package: Org-mode version 6.33trans (release_6.33f.19.g4b6d2) > > current state: > ============== > (setq > org-export-html-final-hook '(org-inlinetask-remove-terminator) > org-log-done t > org-file-apps '((auto-mode . emacs) ("\\.x?html?\\'" . default) > ("\\.pdf\\'" . "xpdf %s")) > org-export-with-LaTeX-fragments t > org-todo-keyword-faces '(("TODO" :foreground "red") > ("INPROGRESS" :foreground "forest green") > ("WAITING" :foreground "forest green") > ("DONE" :foreground "forest green" :weight normal) > ("CANCELLED" :foreground "white" :weight normal)) > org-special-ctrl-a/e t > org-agenda-files '("~/git/notes/admin.org" "~/git/notes/cpse.org" > "~/git/notes/diary.org" "~/git/notes/jacaranda.org" > "~/git/notes/nokia.org" "~/git/notes/notes.org" > "~/git/notes/people.org" "~/git/notes/research.org" > "~/git/notes/teaching.org") > org-export-ascii-final-hook '(org-inlinetask-remove-terminator) > org-agenda-window-setup 'other-frame > org-hide-leading-stars t > org-metaup-hook '(org-babel-load-in-session-maybe) > org-after-todo-state-change-hook '(org-clock-out-if-current) > org-read-date-prefer-future 'time > org-babel-interpreters '("python" "ledger" "latex" "jython" "ditaa" > "sh" "emacs-lisp") > org-speed-commands-user '(("," progn (org-cycle-agenda-files) > (when (not (and (bolp) (org-on-heading-p))) > (outline-previous-visible-heading 1) > (or (and (bolp) (org-on-heading-p)) > (outline-next-visible-heading 1)) > ) > ) > ("h" org-speed-move-safe (quote outline-up-heading)) > ("j" org-speed-move-safe (quote outline-forward-same-level)) > ("k" org-speed-move-safe (quote outline-backward-same-level)) > ("l" org-speed-move-safe (quote outline-next-visible-heading))) > org-odd-levels-only t > org-agenda-time-grid '((daily today require-timed) "----------------" > (900 1000 1100 1200 1300 1400 1500 1600 1700 1800)) > org-export-preprocess-hook '(org-export-blocks-preprocess) > org-tags-exclude-from-inheritance '("clocked") > org-agenda-diary-file "~/git/notes/diary.org" > org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-hide- > block-toggle-maybe) > org-src-mode-hook '(org-src-mode-configure-edit-buffer) > org-cycle-global-at-bob t > org-confirm-shell-link-function 'yes-or-no-p > org-src-preserve-indentation t > org-clock-persist t > org-todo-keywords '((sequence "TODO(t)" "INPROGRESS(i@)" > "WAITING(w@)" "|" "DONE(d@)" > "CANCELLED(c@)") > ) > org-agenda-before-write-hook '(org-agenda-add-entry-text) > org-agenda-start-with-follow-mode t > org-default-notes-file "notes.org" > org-directory "~/git/notes" > 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}\n\\usepackage{tikz}" > ("\\section{%s}" . "\\section*{%s}") > ("\\subsection{%s}" . "\\subsection*{%s}") > ("\\subsubsection{%s}" . "\\subsubsection*{%s}") > ("\\paragraph{%s}" . "\\paragraph*{%s}") > ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) > ("beamer" > "\\documentclass[bigger]{beamer}\n\\usepackage[utf8] > {inputenc}\n\\usepackage[T1]{fontenc}\n\\usepackage{hyperref}\n\ > \usepackage{verbatim}\n\n\\definecolor{verylightgray}{rgb} > {0.93,0.93,1.0}\n\\mode{\\usetheme{progressbar}}\n\ > \mode{\\usecolortheme[rgb={0.5,0.5,0.5}]{structure}\ > \usepackage{pgfpages}}\n\\usepackage[absolute,overlay]{textpos}\ > \setlength{\\TPHorizModule}{1mm}\\setlength{\\TPVertModule}{1mm}\ > \newcommand{\\UCL}{\\begin{textblock}{14}(120.0,0.0)\ > \pgfuseimage{ucllogo}\\end{textblock}}\n" > ("\\section{%s}" . "\\section*{%s}") > ("\\begin{frame}\\frametitle{%s}" "\\end{frame}" > "\\begin{frame}\\frametitle{%s}" "\\end{frame}") > ("\\begin{columns} % %s" "\\end{columns}" > "\\begin{columns} % %s" "\\end{columns}") > ("\\begin{column}{%s\\textwidth}" "\\end{column}" > "\\begin{column}{%s\\textwidth}" "\\end{column}") > ) > ("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}")) > ("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}")) > ) > org-publish-project-alist '(("homepages-org" :base-directory "~/hg/ > homepages" :exclude > "level-?.org" :recursive t :publishing-directory > "/ssh:socrates.ucl.ac.uk:html.pub" :preamble > "" :postamble > " > \n\n > \n\n" :author "Professor Eric S > Fraga" :email "e.fraga@ucl.ac.uk") > ("homepages-test" :base-directory "~/hg/homepages" > :recursive t :publishing-directory "~/tmp/homepages" > :exclude "level-?.org" :auto-index t :index-filename > "sitemap.org" :index-title "Site map" :author > "Professor Eric S Fraga" :email "e.fraga@ucl.ac.uk") > ("homepages-supplementary" :base-directory "~/hg/homepages" > :publishing-directory "/ssh:socrates.ucl.ac.uk:html.pub" > :recursive t :base-extension > "gif\\|jpg\\|jpeg\\|png\\|css\\|js" :publishing-function > org-publish-attachment) > ("homepages" :components > ("homepages-org" "homepages-supplementary") :base-directory > "~/hg/homepages" :recursive t :publishing-directory > "/ssh:socrates.ucl.ac.uk:html.pub" :author > "Professor Eric S Fraga" :email "e.fraga@ucl.ac.uk") > ("notes" :base-directory "~/git/notes" :publishing-directory > "~/tmp/notes-web" :exclude ".*private.org" :headline-levels > 3 :section-numbers nil :timestamps t :tags t) > ) > org-use-speed-commands t > org-mode-hook '(org-clock-load > (lambda nil (make-variable-buffer-local (quote yas/trigger-key)) > (setq yas/trigger-key [tab]) > (define-key yas/keymap [tab] (quote yas/next-field-group))) > (lambda nil > (org-add-hook (quote change-major-mode-hook) > (quote org-babel-show-result-all) (quote append) (quote local)) > ) > org-babel-result-hide-spec org-babel-hide-all-hashes > #[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-export-htmlize-output-type 'css > org-agenda-ndays 1 > org-refile-targets '((org-agenda-files :maxlevel . 5)) > org-ctrl-c-ctrl-c-hook '(org-babel-lob-execute-maybe org-babel-hash- > at-point > org-babel-execute-src-block-maybe) > org-agenda-show-all-dates nil > org-confirm-elisp-link-function 'yes-or-no-p > org-refile-use-outline-path 'file > org-log-into-drawer t > 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 "\\" > org-remember-templates '(("todo" 116 "* TODO %^{Task}\n %i\n %?\n > \n %U" nil nil) > ("note" 110 "* %^{Title} %^G\n %i\n %?\n\n %U" nil nil) > ("appointment" 97 "* %^{Appt}\n %t%?" nil bottom nil) > ("diary" 100 "* %^{Entry}%?%i%&" "~/git/notes/diary.org" > esf/return_formated_date nil) > ("uclfinance" 117 "%u %?\n \n\n" > "~/git/notes/finances/ucl.ledger" bottom nil) > ("personalfinance" 112 "%u %?\n \n\n" > "~/git/notes/finances/personal.ledger" bottom nil) > ("expenses" 101 "%u %?\n \n\n" > "~/git/notes/finances/expenses.ledger" bottom nil) > ("org-protocol" 119 > "* %^{Title}\n\n Source: %u, %c\n\n %i\n\n %U" nil nil) > ("test" 84 "* %^{Description} %^G\n %T\n" nil nil)) > 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)) > ) > < > latextest > .org>_______________________________________________ > 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