Re: [Orgmode] Bug: Floating figure inside bullet list generates invalid latex [6.33trans (release_6.33f.19.g4b6d2)]

2009-11-25 Thread Eric S Fraga
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


___
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


Re: [Orgmode] Bug: Floating figure inside bullet list generates invalid latex [6.33trans (release_6.33f.19.g4b6d2)]

2009-11-24 Thread Carsten Dominik


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



___
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


Re: [Orgmode] Bug: Floating figure inside bullet list generates invalid latex [6.33trans (release_6.33f.19.g4b6d2)]

2009-11-23 Thread Eric S Fraga
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


___
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


[Orgmode] Bug: Floating figure inside bullet list generates invalid latex [6.33trans (release_6.33f.19.g4b6d2)]

2009-11-22 Thread Eric S Fraga

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
 

Re: [Orgmode] Bug: Floating figure inside bullet list generates invalid latex [6.33trans (release_6.33f.19.g4b6d2)]

2009-11-22 Thread Carsten Dominik

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\\modebeamer{\\usetheme{progressbar}}\n\