From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Belohrad Subject: beamer export and links with spaces Date: Fri, 12 Feb 2016 09:57:18 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48043) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aU9ar-0002D6-S0 for emacs-orgmode@gnu.org; Fri, 12 Feb 2016 04:00:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aU9ao-0001Ww-MV for emacs-orgmode@gnu.org; Fri, 12 Feb 2016 04:00:49 -0500 Received: from beesknees.cern.ch ([137.138.197.99]:38962) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aU9ao-0001Wl-GE for emacs-orgmode@gnu.org; Fri, 12 Feb 2016 04:00:46 -0500 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: org-mode Dear All, i'm using org documents export to beamer. Recently I've changed my directory structures for the screenshots such, that they are located under date subdirectories, e.g.: screenshots/22 January 2016/140808_21161vUU.png If I'm going org-type beamer document, I was always using this type of declaration to export the figure: ** Summary from previous session #+BEGIN_CENTER #+ATTR_LaTeX: :width 0.8\linewidth [[file:screenshots/22%20January%202016/140808_21161vUU.png]] #+END_CENTER as you can see, the spaces are replaced by %20, which is perfectly fine if browsing the file in emacs and clicking on the link. The image is correctly opened. This however does not work when beamer/latex is exported, as the org snippet gets translated into: \section{Summary from previous session} \label{sec:orgheadline2} \begin{frame}[label={sec:orgheadline1}]{Summary from previous session} \begin{center} \includegraphics[width=0.8\linewidth]{screenshots/22%20January%202016/140808_21161vUU.png} \end{center} \end{frame} hence the includegraphics does not contain space, but contains %20. Such file cannot be found. What is the way to make it working? It seems that includegraphics generally does not like spaces inside unless one uses e.g. grffile, so the problem could be resolved just by replacing %20 in the latex output by an ordinary space and including \usepackage[space]{grffile}. any hint? thanks .d.