emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-latex-image-default-width ignored
@ 2018-03-24 15:20 Julien Cubizolles
  2018-03-24 17:57 ` Eric S Fraga
  0 siblings, 1 reply; 5+ messages in thread
From: Julien Cubizolles @ 2018-03-24 15:20 UTC (permalink / raw)
  To: emacs-orgmode

I'd like all inline images resized during beamer and latex export. I
tried setting org-latex-image-default-width to ".3\\linewidth" but after
export the latex file still uses the default .9\linewidth default. See
the following examples.

Julien.

orgmode file:
--8<---------------cut here---------------start------------->8---
#+begin_src emacs-lisp :exports none
  (setq org-latex-image-default-width ".3\\linewidth")
#+end_src

#+RESULTS:
: .3\linewidth

* hello
[[file:file:/home/wilk/enseignement/schemas/plickers/mvmt-circ-F-faux.png]]
--8<---------------cut here---------------end--------------->8---

gets exported to:
--8<---------------cut here---------------start------------->8---
% Created 2018-03-24 sam. 16:06
% Intended LaTeX compiler: pdflatex
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{grffile}
\usepackage{longtable}
\usepackage{wrapfig}
\usepackage{rotating}
\usepackage[normalem]{ulem}
\usepackage{amsmath}
\usepackage{textcomp}
\usepackage{amssymb}
\usepackage{capt-of}
\usepackage{hyperref}
\author{Julien Cubizolles}
\date{\today}
\title{}
\hypersetup{
 pdfauthor={Julien Cubizolles},
 pdftitle={},
 pdfkeywords={},
 pdfsubject={},
 pdfcreator={Emacs 27.0.50 (Org mode 9.1.7)}, 
 pdflang={English}}
\begin{document}

\tableofcontents

\section{hello}
\label{sec:org777755b}
\begin{center}
\includegraphics[width=.9\linewidth]{file:/home/wilk/enseignement/schemas/plickers/mvmt-circ-F-faux.png}
\end{center}
\end{document}--8<---------------cut here---------------end--------------->8---

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-03-26  8:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-24 15:20 org-latex-image-default-width ignored Julien Cubizolles
2018-03-24 17:57 ` Eric S Fraga
2018-03-25  7:52   ` Julien Cubizolles
2018-03-25 11:56     ` Eric S Fraga
2018-03-26  8:39       ` Julien Cubizolles

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).