Re: [O] [beamer] Code blocks in lists?

2012-02-09 Thread Nicolas Goaziou


Hello,

Sebastien Vauban
wxhgmqzgwmuf-genee64ty+gs+fvcfc7...@public.gmane.org writes:

 Nicolas Goaziou wrote:

 I can't reproduce any list break ...

 Does that mean that you consider the following as normal?

No, it just means that I cannot reproduce it, notwithstanding how
abnormal your LaTeX output is.

 IIUC, every code block, inside lists or not, must be located at column
 0?

No, but last code block boundaries in your example are at column 0, so
list above ends there. Lists don't care about code's indentation. What
really matters is indentation of the #+begin_src line.


Regards,

-- 
Nicolas Goaziou




Re: [O] [beamer] Code blocks in lists?

2012-02-07 Thread Nicolas Goaziou


Sebastien Vauban
wxhgmqzgwmuf-genee64ty+gs+fvcfc7...@public.gmane.org writes:

 Nicolas Goaziou wrote:
 Sebastien Vauban writes:

 I've identified a couple of troubles related to code blocks inside lists (in
 Beamer):

 - code blocks break the list

 - relative indentation of the code inside its frame is wrong except when
   code begins at column 0: is this a requirement?

 - sometimes, ORG-LIST-END-MARKER is exported in PDF and in HTML.

 Could you try with a more recent Org? I think I have fixed this
 recently.

 I confirm that those 3 bugs (?) are there in the release of this
 hour:

I can't reproduce any list break, except the last one, which is on
purpose (block at column 0).

 Org-mode version 7.8.03 (release_7.8.03.356.gfe2e)

Strange. This version doesn't exist yet. As the time of writing, we're
at release: Org-mode version 7.8.03 (release_7.8.03.321.gaac1c).


Regards,

-- 
Nicolas Goaziou




Re: [O] [beamer] Code blocks in lists?

2012-02-07 Thread Sebastien Vauban
Hi Nicolas,

Nicolas Goaziou wrote:
 Sebastien Vauban
 wxhgmqzgw...@spammotel.com writes:

 Nicolas Goaziou wrote:
 Sebastien Vauban writes:

 I've identified a couple of troubles related to code blocks inside lists 
 (in
 Beamer):

 - code blocks break the list

 - relative indentation of the code inside its frame is wrong except when
   code begins at column 0: is this a requirement?

 - sometimes, ORG-LIST-END-MARKER is exported in PDF and in HTML.

 Could you try with a more recent Org? I think I have fixed this
 recently.

 I confirm that those 3 bugs (?) are there in the release of this
 hour:

 I can't reproduce any list break ...

Does that mean that you consider the following as normal?

#+begin_src latex
\begin{frame}[fragile]
\frametitle{Code in lists}
\framesubtitle{Correct Org syntax}
\label{sec-1}


\begin{itemize}
\item This is an item

  This is some text to show how it's aligned\ldots{}

  This is some extra text\ldots{}
\item This code block is properly indented in Org
\end{itemize}


\lstset{language=java}
\begin{lstlisting}
  if (test)
  {
  doit
  }
\end{lstlisting}

  but \textbf{no correct relative indentation} in both PDF and HTML: see the 
code
  within its frame. There is a \emph{left margin} appended, not intended. Do I 
have
  to begin \textbf{all code blocks in column 0}?
ORG-LIST-END-MARKER
\end{frame}
#+end_src

You see that there are 2 items in the list, which is ended, then there is the
code, then some volatile paragraph.

In the PDF, the paragraph but ... is not indented properly, as it would have
been if the code wasn't there, in the middle.

 ... except the last one, which is on purpose (block at column 0).

IIUC, every code block, inside lists or not, must be located at column 0?

 Org-mode version 7.8.03 (release_7.8.03.356.gfe2e)

 Strange. This version doesn't exist yet. As the time of writing, we're
 at release: Org-mode version 7.8.03 (release_7.8.03.321.gaac1c).

I have no idea why it's the case: I don't have any pending modification or
whatsoever, and simply git pull every day or so. Though, my Git experience is
still limited...

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] [beamer] Code blocks in lists?

2012-02-07 Thread Nick Dokos
Sebastien Vauban wxhgmqzgw...@spammotel.com wrote:


  Org-mode version 7.8.03 (release_7.8.03.356.gfe2e)
 
  Strange. This version doesn't exist yet. As the time of writing, we're
  at release: Org-mode version 7.8.03 (release_7.8.03.321.gaac1c).
 
 I have no idea why it's the case: I don't have any pending modification or
 whatsoever, and simply git pull every day or so. Though, my Git experience is
 still limited...
 

Maybe there are spurious merge commits because of some unintentional
change you made?  In any case, try doing a ``git log -N'' and 
``git log -N origin/master'' for various values of N and see where
yours differs from origin/master.

If you really have nothing in your tree that is worth saving, then
the simplest way to get back in sync is to delete the whole org-mode
directory and clone it again - but you'd better double check!

Nick



Re: [O] [beamer] Code blocks in lists?

2012-02-06 Thread Nicolas Goaziou


Hello,

Sebastien Vauban
wxhgmqzgwmuf-genee64ty+gs+fvcfc7...@public.gmane.org writes:

 I've identified a couple of troubles related to code blocks inside lists (in
 Beamer):

 - code blocks break the list

 - relative indentation of the code inside its frame is wrong except when
   code begins at column 0: is this a requirement?

 - sometimes, ORG-LIST-END-MARKER is exported in PDF and in HTML.

Could you try with a more recent Org? I think I have fixed this
recently.


Regards,

-- 
Nicolas Goaziou




Re: [O] [beamer] Code blocks in lists?

2012-02-06 Thread Sebastien Vauban
Hi Nicolas,

Nicolas Goaziou wrote:
 Sebastien Vauban writes:

 I've identified a couple of troubles related to code blocks inside lists (in
 Beamer):

 - code blocks break the list

 - relative indentation of the code inside its frame is wrong except when
   code begins at column 0: is this a requirement?

 - sometimes, ORG-LIST-END-MARKER is exported in PDF and in HTML.

 Could you try with a more recent Org? I think I have fixed this
 recently.

I confirm that those 3 bugs (?) are there in the release of this hour:

Org-mode version 7.8.03 (release_7.8.03.356.gfe2e)
GNU Emacs 24.0.92.1 (i386-mingw-nt5.1.2600) of 2011-12-07 on MARVIN

Best regards,
  Seb

-- 
Sebastien Vauban