emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Eric S Fraga <e.fraga@ucl.ac.uk>
Cc: emacs-orgmode@gnu.org
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	[thread overview]
Message-ID: <718EB681-8AF0-4BD4-988A-1202414A3F47@gmail.com> (raw)
In-Reply-To: <877htilhw3.wl%ucecesf@ucl.ac.uk>

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<beamer>{\\usetheme{progressbar}}\n\ 
> \mode<handout>{\\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
> 			      "<!-- the preamble goes here -->" :postamble
> 			      "<!-- the postamble --><!-- Start of StatCounter Code --> 
> \n<script type=\"text/javascript\">\nvar sc_project=3834723; \nvar  
> sc_invisible=0; \nvar sc_partition=34; \nvar sc_click_stat=1; \nvar  
> sc_security=\"223fe869\"; \nvar sc_text=3; \n</script>\n<div id= 
> \"statcounter\">\n<script type=\"text/javascript\" src=\"http://www.statcounter.com/counter/counter_xhtml.js 
> \"></script><noscript><div class=\"statcounter\"><a href=\"http://www.statcounter.com/free_hit_counter.html 
> \" target=\"_blank\"><img class=\"statcounter\" src=\"http://c.statcounter.com/3834723/0/223fe869/0/ 
> \" alt=\"free website hit counter\" ></a></div></noscript>\n</div> 
> \n<!-- End of StatCounter Code -->\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 "\\<Eric S Fraga\\>"
> 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><latextest.tex>_______________________________________________
> 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-22 22:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-22 15:05 Bug: Floating figure inside bullet list generates invalid latex [6.33trans (release_6.33f.19.g4b6d2)] Eric S Fraga
2009-11-22 22:52 ` Carsten Dominik [this message]
2009-11-23 10:15   ` Eric S Fraga
2009-11-24 19:43     ` Carsten Dominik
2009-11-25  8:14       ` Eric S Fraga

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=718EB681-8AF0-4BD4-988A-1202414A3F47@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=e.fraga@ucl.ac.uk \
    --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).