emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: Re: [ox-latex] Bad default value for image width?
Date: Wed, 10 Apr 2013 19:23:14 +0200	[thread overview]
Message-ID: <87ppy2i9kt.fsf@pank.iue.private> (raw)
In-Reply-To: 87k3oasic2.fsf@gmail.com


Nicolas,

Nicolas Goaziou <n.goaziou@gmail.com> writes:

>> It's a bad default for
>>   - Picture smaller than textwidth
>>   - Picture crafted to the document which shouldn't have a width.
>>
>> It's a decent solution for 
>>   - pictures which are unintentionally larger than textwidth.  But IMO
>>     it's my responsibility, and not Org's, to fix these
>>     images/situations.
>
> Exactly.
>
> I'm not selling you the default value as the perfect solution: it isn't,
> obviously. I even agree that in most situations, no default value is
> better.

Agree.

> However, in my experience, the worst situation is the image (much)
> larger than textwidth, which makes it difficult to even read the
> produced document. It isn't as bad for enlarged small pictures.

Perhaps.  I'm not convinced.  If the float width is removed I can
change the default and never be affected by these design choices and
it's all good.

> Now, the ".7\textwidth" for floats is harder to explain. I don't feel
> very strong about it, and I don't mind removing it (meaning
> `org-latex-image-default-width' would also apply
>  to floats).

Using org-latex-image-default-width is more reasonable IMO.  Then at
least there won't be any 'nasty' surprises when adding caption and for
me I can set the default width to "" and be done with it.

For people who use it it might also be reasonable to introduce a
org-latex-wrap-image-default-width or making
org-latex-image-default-width a list ordered by type of element/float
type.

E.g. '((float . ".9\\textwidth") (wrap . ".5\\textwidth")). . . 

>> I like the "" better.  It works better with my "intuitive logic".
>
> I have pushed a patch which should fix your initial problem about :width
> "" not being taken into account.  Could you confirm the new behaviour
> works as expected?

I'll check it out and report back.  I can't access git from this
network (high port numbers are blocked for "security" reasons) so I'll
only try it out later.

Thanks,
Rasmus.

-- 
Hooray!

  reply	other threads:[~2013-04-10 17:23 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
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 [this message]
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=87ppy2i9kt.fsf@pank.iue.private \
    --to=rasmus@gmx.us \
    --cc=emacs-orgmode@gnu.org \
    /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).