From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Bug: Floating figure inside bullet list generates invalid latex [6.33trans (release_6.33f.19.g4b6d2)] Date: Sun, 22 Nov 2009 15:05:16 +0000 Message-ID: <877htilhw3.wl%ucecesf@ucl.ac.uk> Reply-To: Eric S Fraga Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="Multipart_Sun_Nov_22_15:05:16_2009-1" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NCE0J-0006vk-3M for emacs-orgmode@gnu.org; Sun, 22 Nov 2009 10:05:31 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NCE0E-0006v2-1E for emacs-orgmode@gnu.org; Sun, 22 Nov 2009 10:05:30 -0500 Received: from [199.232.76.173] (port=37466 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NCE0D-0006uz-QS for emacs-orgmode@gnu.org; Sun, 22 Nov 2009 10:05:25 -0500 Received: from vscane-b.ucl.ac.uk ([144.82.108.141]:45713) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NCE0D-0002bj-5f for emacs-orgmode@gnu.org; Sun, 22 Nov 2009 10:05:25 -0500 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: emacs-orgmode@gnu.org --Multipart_Sun_Nov_22_15:05:16_2009-1 Content-Type: text/plain; charset=US-ASCII 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
\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)) ) --Multipart_Sun_Nov_22_15:05:16_2009-1 Content-Type: application/octet-stream Content-Disposition: attachment; filename="latextest.org" Content-Transfer-Encoding: 7bit # -*- coding: utf-8; -*- #+TITLE: latex beamer export test #+AUTHOR: eric #+EMAIL: e.fraga@ucl.ac.uk #+DESCRIPTION: testing various aspects of export to latex beamer #+KEYWORDS: latex beamer org-mode #+LANGUAGE: en #+OPTIONS: H:4 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t #+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc #+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:http://orgmode.org/org-info.js #+EXPORT_SELECT_TAGS: export #+EXPORT_EXCLUDE_TAGS: noexport #+LINK_UP: #+LINK_HOME: #+LaTeX_CLASS: beamer * Test *** A slide - This slide consists of a bullet point #+label: A mixed integer programming model [[file:mip.png]] - a figure (above this point) - and a couple of other points --Multipart_Sun_Nov_22_15:05:16_2009-1 Content-Type: application/octet-stream Content-Disposition: attachment; filename="latextest.tex" Content-Transfer-Encoding: 7bit % Created 2009-11-22 Sun 15:02 \documentclass[bigger]{beamer} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{hyperref} \usepackage{verbatim} \definecolor{verylightgray}{rgb}{0.93,0.93,1.0} \mode{\usetheme{progressbar}} \mode{\usecolortheme[rgb={0.5,0.5,0.5}]{structure}\usepackage{pgfpages}} \usepackage[absolute,overlay]{textpos}\setlength{\TPHorizModule}{1mm}\setlength{\TPVertModule}{1mm}\newcommand{\UCL}{\begin{textblock}{14}(120.0,0.0)\pgfuseimage{ucllogo}\end{textblock}} \title{latex beamer export test} \author{eric} \date{22 November 2009} \begin{document} \maketitle \setcounter{tocdepth}{4} \tableofcontents \vspace*{1cm} \section{Test} \label{sec-1} \begin{frame}\frametitle{A slide} \label{sec-1.1} \begin{itemize} \item This slide consists of a bullet point \begin{figure}[htb] \end{itemize} \centering \includegraphics[width=10em]{mip.png} \caption{\label{A mixed integer programming model}} \end{figure} \begin{itemize} \item a figure (above this point) \item and a couple of other points \end{itemize} \end{frame} \end{document} --Multipart_Sun_Nov_22_15:05:16_2009-1 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --Multipart_Sun_Nov_22_15:05:16_2009-1--