emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: Floating figure inside bullet list generates invalid latex [6.33trans (release_6.33f.19.g4b6d2)]
@ 2009-11-22 15:05 Eric S Fraga
  2009-11-22 22:52 ` Carsten Dominik
  0 siblings, 1 reply; 5+ messages in thread
From: Eric S Fraga @ 2009-11-22 15:05 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 10338 bytes --]


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))
 )

[-- Attachment #2: latextest.org --]
[-- Type: application/octet-stream, Size: 786 bytes --]

# -*- 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

[-- Attachment #3: latextest.tex --]
[-- Type: application/octet-stream, Size: 1100 bytes --]

% 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<beamer>{\usetheme{progressbar}}
\mode<handout>{\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}

[-- Attachment #4: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Bug: Floating figure inside bullet list generates invalid latex [6.33trans (release_6.33f.19.g4b6d2)]
  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
  2009-11-23 10:15   ` Eric S Fraga
  0 siblings, 1 reply; 5+ messages in thread
From: Carsten Dominik @ 2009-11-22 22:52 UTC (permalink / raw)
  To: Eric S Fraga; +Cc: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Bug: Floating figure inside bullet list generates invalid latex [6.33trans (release_6.33f.19.g4b6d2)]
  2009-11-22 22:52 ` Carsten Dominik
@ 2009-11-23 10:15   ` Eric S Fraga
  2009-11-24 19:43     ` Carsten Dominik
  0 siblings, 1 reply; 5+ messages in thread
From: Eric S Fraga @ 2009-11-23 10:15 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

At Sun, 22 Nov 2009 23:52:50 +0100,
Carsten Dominik wrote:
> 
> Hi Eric,
> 
> I have tried to fix this, please verify, and be on the look-out
> if this patch breaks something else.

This is indeed working now!  Thanks.

However, a similar layout (using Matt's recent suggestion of enclosing
the image in a center block):

--8<---------------cut here---------------start------------->8---
    - This slide consists of a bullet point

      #+begin_center
      [[file:mip.png]]
      #+end_center

    - a figure (above this point)
--8<---------------cut here---------------end--------------->8---

doesn't work.  The same problem arises: the \end{itemize} falls
between the \begin{center} and \end{center} statements.

Thanks again,
eric

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Bug: Floating figure inside bullet list generates invalid latex [6.33trans (release_6.33f.19.g4b6d2)]
  2009-11-23 10:15   ` Eric S Fraga
@ 2009-11-24 19:43     ` Carsten Dominik
  2009-11-25  8:14       ` Eric S Fraga
  0 siblings, 1 reply; 5+ messages in thread
From: Carsten Dominik @ 2009-11-24 19:43 UTC (permalink / raw)
  To: e.fraga; +Cc: emacs-orgmode


On Nov 23, 2009, at 11:15 AM, Eric S Fraga wrote:

> At Sun, 22 Nov 2009 23:52:50 +0100,
> Carsten Dominik wrote:
>>
>> Hi Eric,
>>
>> I have tried to fix this, please verify, and be on the look-out
>> if this patch breaks something else.
>
> This is indeed working now!  Thanks.
>
> However, a similar layout (using Matt's recent suggestion of enclosing
> the image in a center block):
>
> --8<---------------cut here---------------start------------->8---
>    - This slide consists of a bullet point
>
>      #+begin_center
>      [[file:mip.png]]
>      #+end_center
>
>    - a figure (above this point)
> --8<---------------cut here---------------end--------------->8---
>
> doesn't work.  The same problem arises: the \end{itemize} falls
> between the \begin{center} and \end{center} statements.

This does now work, I think, please verify.

- Carsten

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Bug: Floating figure inside bullet list generates invalid latex [6.33trans (release_6.33f.19.g4b6d2)]
  2009-11-24 19:43     ` Carsten Dominik
@ 2009-11-25  8:14       ` Eric S Fraga
  0 siblings, 0 replies; 5+ messages in thread
From: Eric S Fraga @ 2009-11-25  8:14 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

At Tue, 24 Nov 2009 20:43:12 +0100,
Carsten Dominik wrote:
> 
> 
> On Nov 23, 2009, at 11:15 AM, Eric S Fraga wrote:
> 
> > At Sun, 22 Nov 2009 23:52:50 +0100,
> > Carsten Dominik wrote:
> >>
> >> Hi Eric,
> >>
> >> I have tried to fix this, please verify, and be on the look-out
> >> if this patch breaks something else.
> >
> > This is indeed working now!  Thanks.
> >
> > However, a similar layout (using Matt's recent suggestion of enclosing
> > the image in a center block):
> >
> > --8<---------------cut here---------------start------------->8---
> >    - This slide consists of a bullet point
> >
> >      #+begin_center
> >      [[file:mip.png]]
> >      #+end_center
> >
> >    - a figure (above this point)
> > --8<---------------cut here---------------end--------------->8---
> >
> > doesn't work.  The same problem arises: the \end{itemize} falls
> > between the \begin{center} and \end{center} statements.
> 
> This does now work, I think, please verify.
> 
> - Carsten
> 

Seems to be working just fine!  I've used the lecture notes that I
have just sent you (off-list) to test this and the centring works both
within an item (i.e. indented begin_center directives) and outside the
list but surrounded by lists.

Thanks,
eric

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-11-25  8:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2009-11-23 10:15   ` Eric S Fraga
2009-11-24 19:43     ` Carsten Dominik
2009-11-25  8:14       ` Eric S Fraga

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).