emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien <bzg@gnu.org>
To: Rasmus <rasmus@gmx.us>
Cc: emacs-orgmode@gnu.org
Subject: Re: [ox-latex] Bad default value for image width?
Date: Mon, 08 Apr 2013 21:35:33 +0200	[thread overview]
Message-ID: <87ehekyfwa.fsf@bzg.ath.cx> (raw)
In-Reply-To: <87haji85a7.fsf@pank.iue.private> (rasmus@gmx.us's message of "Sun, 07 Apr 2013 22:17:04 +0200")

[-- Attachment #1: Type: text/plain, Size: 364 bytes --]

Hi Rasmus,

Rasmus <rasmus@gmx.us> writes:

> And I can't seem to set width to nothing. . .  

The attached patch should fix at least one problem: you should be
able to set the width manually now.

As for the default value of `org-latex-image-default-width' I tend
to agree, but maybe there are side-effects when setting this to nil.

Nicolas, what do you think?


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: ox-latex-tikz-width.patch --]
[-- Type: text/x-patch, Size: 599 bytes --]

diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index 9c04695..b7ed687 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -1812,7 +1812,7 @@ used as a communication channel."
 	 (comment-include (if (plist-get attr :comment-include) "%" ""))
 	 ;; It is possible to specify width and height in the
 	 ;; ATTR_LATEX line, and also via default variables.
-	 (width (cond ((plist-get attr :width))
+	 (width (cond ((plist-get attr :width) (plist-get attr :width))
 		      ((plist-get attr :height) "")
 		      ((eq float 'figure) "0.7\\textwidth")
 		      ((eq float 'wrap) "0.48\\textwidth")

[-- Attachment #3: Type: text/plain, Size: 14 bytes --]


-- 
 Bastien

  parent reply	other threads:[~2013-04-08 19:35 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-07 20:17 [ox-latex] Bad default value for image width? Rasmus
2013-04-07 20:38 ` Rasmus Pank Roulund
2013-04-08 19:35 ` Bastien [this message]
2013-04-09 21:08   ` Nicolas Goaziou
2013-04-09 21:30     ` Bastien
2013-04-09 22:02 ` Nicolas Goaziou
2013-04-10 11:52   ` Rasmus
2013-04-10 16:53     ` Nicolas Goaziou
2013-04-10 17:23       ` Rasmus
2013-04-10 20:13         ` Nicolas Goaziou
2013-04-11 15:36           ` Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ehekyfwa.fsf@bzg.ath.cx \
    --to=bzg@gnu.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=rasmus@gmx.us \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).