From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Pank Roulund Subject: Re: [ox-latex] Bad default value for image width? Date: Sun, 07 Apr 2013 22:38:53 +0200 Message-ID: <87mwta6ppe.fsf@pank.iue.private> References: <87haji85a7.fsf@pank.iue.private> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52271) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOwMm-0003ir-Gi for emacs-orgmode@gnu.org; Sun, 07 Apr 2013 16:39:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UOwMj-00058F-LH for emacs-orgmode@gnu.org; Sun, 07 Apr 2013 16:39:08 -0400 Received: from mout.gmx.net ([212.227.17.20]:52627) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOwMj-00057v-B1 for emacs-orgmode@gnu.org; Sun, 07 Apr 2013 16:39:05 -0400 Received: from mailout-eu.gmx.com ([10.1.101.213]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0MFfRr-1ULNzO0WJR-00Ebl9 for ; Sun, 07 Apr 2013 22:39:03 +0200 In-Reply-To: <87haji85a7.fsf@pank.iue.private> (rasmus@gmx.us's message of "Sun, 07 Apr 2013 22:17:04 +0200") 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: emacs-orgmode@gnu.org In general this auto width code seems super annoying. Consider this >From ox-latex.el: #+BEGIN_SRC emacs-lisp (width (cond ((plist-get attr :width)) ((plist-get attr :height) "") ((eq float 'figure) "0.7\\textwidth") ((eq float 'wrap) "0.48\\textwidth") (t org-latex-image-default-width))) #+END_SRC Consider the following example: #+BEGIN_SRC org #+BEGIN_SRC emacs-lisp (make-local-variable 'org-latex-image-default-width) (setq org-latex-image-default-width "") #+END_SRC #+NAME:firm-ts-fig #+CAPTION: test [[file:figs/test.tikz]] no caption [[file:figs/test.tikz]] #+END_SRC This exports as: #+BEGIN_SRC LATEX \begin{figure}[htb] \centering \resizebox{0.7\textwidth}{!}{\input{figs/test.tikz}} \caption{\label{firm-ts-fig}test} \end{figure} no caption \input{figs/test.tikz} #+END_SRC To me it is not intuitive why a certain width is imposed on me because I add a caption. . . Could we consider removing: #+BEGIN_SRC emacs-lisp ((eq float 'figure) "0.7\\textwidth") ((eq float 'wrap) "0.48\\textwidth") #+END_SRC and maybe changing the default value of org-latex-image-default-width to something non-intruding? -- Powered by magic pixies!