emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Kitchin <jkitchin@andrew.cmu.edu>
To: Rainer M Krug <Rainer@krugs.de>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: set default width for figure floats?
Date: Fri, 11 Mar 2016 09:48:15 -0500	[thread overview]
Message-ID: <m2shzx3wb4.fsf@Johns-MacBook-Air.local> (raw)
In-Reply-To: <m2egbh6r2p.fsf@krugs.de>


Rainer M Krug writes:

> John Kitchin <jkitchin@andrew.cmu.edu> writes:
>
>> Maybe you want org-image-actual-width
>>
>> This sets teh width in org, if you have a working imagemagick.
>
> No - I don't want any scaling. They are graphs I have created in R and I
> want to conserve the font sizes in the paper.
This is only scaling in the org buffer. I find high resolution (high
dpi) are often too large in my emacs, so I set this to be something like
300 to 600 to keep the figures reasonably sized in the buffer. It has no
effect on the LaTeX export.

>
>>
>> org-latex-image-default-width contains the default latex scaling.
>> Probably you can set this to nil to avoid scaling.
>
> Setting it to "" works perfectly. I have now set:
>
> --8<---------------cut here---------------start------------->8---
> #+BIND: org-latex-image-default-width ""
> --8<---------------cut here---------------end--------------->8---
>
> as well as
>
> --8<---------------cut here---------------start------------->8---
> # Local Variables:
> # eval: (visual-line-mode 1)
> # org-latex-image-default-width: ""
> # End:
> --8<---------------cut here---------------end--------------->8---
>
> I don't know if one is sufficient - I just leave them in and might try
> later.
>
> Thanks a lot,
>
> Rainer
>
>>
>>
>> Rainer M Krug writes:
>>
>>> I think this has been asked before, but I can't find it:
>>>
>>> Is there a way of setting the default width for images included as
>>>
>>> [[file:map-All.png]]
>>>
>>> in org documents? It seems that the default is
>>>
>>> \includegraphics[width=.9\linewidth]{map-All.png}
>>>
>>> and I don't want the images to be scaled, but to let them keep their own
>>> size.
>>>
>>> Is this possible (I'd like to avoid having to use #+ATTR_LATEX :width
>>> before each - and even then I would have no idea to unset the value)
>>>
>>> Thanks,
>>>
>>> Rainer
>>
>>
>> --
>> Professor John Kitchin
>> Doherty Hall A207F
>> Department of Chemical Engineering
>> Carnegie Mellon University
>> Pittsburgh, PA 15213
>> 412-268-7803
>> @johnkitchin
>> http://kitchingroup.cheme.cmu.edu


--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu

  reply	other threads:[~2016-03-11 14:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-11 13:01 set default width for figure floats? Rainer M Krug
2016-03-11 13:31 ` John Kitchin
2016-03-11 14:13   ` Rainer M Krug
2016-03-11 14:48     ` John Kitchin [this message]
2016-03-14  8:07       ` Rainer M Krug
2016-03-11 16:07 ` Rasmus

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=m2shzx3wb4.fsf@Johns-MacBook-Air.local \
    --to=jkitchin@andrew.cmu.edu \
    --cc=Rainer@krugs.de \
    --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).