Hello Nicolas,

I've noticed that exporting a presentation such as:

--8<---------------cut here---------------start------------->8---
#+TITLE:     Org code blocks
#+AUTHOR:    Sebastien Vauban
#+LANGUAGE:  en_US

#+startup: beamer
#+LaTeX_CLASS: beamer
#+LaTeX_CLASS_OPTIONS: [presentation,t]

#+OPTIONS:   H:1 toc:nil

* How to center pictures horizontally?

- Add a caption:

#+begin_src org
,#+CAPTION: Dock
,#+ATTR_LaTeX: width=0.5\linewidth
[[~/Pictures/Dock.jpg]]
#+end_src

- Results:

#+CAPTION: Dock
#+ATTR_LaTeX: width=0.5\linewidth
[[~/Pictures/Dock.jpg]]
--8<---------------cut here---------------end--------------->8---

gives the following with the new exporter:

--8<---------------cut here---------------start------------->8---
% Created 2012-10-22 Mon 14:08
\documentclass[presentation,t]{beamer}
% ...

\begin{frame}[fragile,label=sec-1]{How to center pictures horizontally?}
 \begin{itemize}
\item Add a caption:
\end{itemize}

\begin{verbatim}
#+CAPTION: Dock
#+ATTR_LaTeX: width=0.5\linewidth
,[[~/Pictures/Dock.jpg]]
\end{verbatim}

% ...
--8<---------------cut here---------------end--------------->8---

That is, there is a *wrong comma* in front of the link. It should not be
outputted, isn't it?

Best regards,
  Seb

-- 
Sebastien Vauban


Reply via email to