4

I use beamer org-mode 8.2.10 to produce presentations.

In the following the width attribute (here 0.45) gets just ignored and replaced by 0.9

#+ATTR_LATEX: :width=0.45\linewidth
 [[file:/osx.png]]                                                         

which produces

\includegraphics[width=.9\linewidth]{osx.png} 

My work around is using this code instead:

#+latex:\includegraphics[width=.45\linewidth]{osx.png}  

which gives

\includegraphics[width=.45\linewidth]{osx.png}

So what went wrong here in the first variation? Is that some bug or am I missing something fundamental?

4

To fix this, use space (' ') instead of '='. For e.g.,

#+ATTR_LATEX: :width 0.45\linewidth
 [[file:/osx.png]]  
  • 1
    Unfortunately did not work! :-( – Tengis May 18 '15 at 10:31
  • Hmmm.. I'm using the latest ELPA version and it works fine there. Maybe [[file:./osx.png]]? – kadal May 19 '15 at 13:41
  • 1
    Works for [[./foo.png]] but not for #+BEGIN_SRC ditaa – Richard Hansen Oct 12 '15 at 7:01
  • 1
    #+ATTR_LATEX: :width 0.45\linewidth [[file:./screen.jpg]] work for me with the version of org mode downloaded today. – Romain Picot Dec 26 '15 at 21:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.