emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Why is an image width restricted to being between 0 and 200% of the text area
@ 2021-11-23  6:16 Matt Huszagh
  2021-11-23  6:17 ` Timothy
  0 siblings, 1 reply; 7+ messages in thread
From: Matt Huszagh @ 2021-11-23  6:16 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: Timothy

Hi,

In org-display-inline-image--width we have the restriction that
percentages and floating point width specifications must be between 0
and 200% (or 0.0 and 2.0) of the text area. Reading the comments, it
sounds like this is done because you might specify something like
1.2\linewidth, but you wouldn't write something like 5.0\linewidth. I
guess that's fair, but I can't say with certainty that there is never
any valid reason to, e.g., specify that you want a width of 500% of the
text area. I'm also not sure that we should prevent people from using
5.0\linewidth, even if it is a bit odd. The intent is clear.

Maybe I'm missing a reason as to why this is done?

Best
Matt


^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: Why is an image width restricted to being between 0 and 200% of the text area
@ 2021-11-23 11:16 autofrettage
  0 siblings, 0 replies; 7+ messages in thread
From: autofrettage @ 2021-11-23 11:16 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

If org mode won't blow up, kick out the restriction.

It is not up to us to decide what users will have use for or not. Besides, if someone specifies an outrageously wide picture by mistake, it's a mistake which is easy to spot and fix.

I finish my argument with a small war story. Many years ago  my colleagues and I tried to create a computational grid around a ship, for flow simulations. However, the grid generation program refused to follow our instructions, no matter what we tried. We reported this to the company behind the grid generation software, and it turned out they had imposed a 1000 m size limit on grids.

It just so happens that many merchant ships are almost 400 m long, and when you extend the computational grid sufficiently up- and downstream, you get a grid well over 1000 m long. Given the magnitude limit for double precision floating point numbers, 1000 m was a ridiculous limit.

yours
Rasmus


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

end of thread, other threads:[~2021-11-23 11:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-23  6:16 Why is an image width restricted to being between 0 and 200% of the text area Matt Huszagh
2021-11-23  6:17 ` Timothy
2021-11-23  7:00   ` Matt Huszagh
2021-11-23  7:01     ` Timothy
2021-11-23  7:21       ` Matt Huszagh
2021-11-23  8:14     ` Tim Cross
2021-11-23 11:16 autofrettage

Code repositories for project(s) associated with this 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).