Re: [NTG-context] When newsizing an external figure bei [width=<some pt>], what will be its height in pt and viceversa?
Dear Rudolf, It is working for me. Using my figure, I got (45126287sp,31048991sp) (1372,944) As Hans said, either change ~ to some path or set the directory of externalfigure. Best regards, Dalyoung
2019. 2. 24. 오전 5:58, ntg-context-request@ntg.nl 작성:
I fear it doesn't work. I used the above code with a test-picture of mine (in .png and .jpg version) and got:
(0sp,0sp) (0,0)
Now I'm baffled what the explanation could be. Are "mill" or "cow" somehow specially prepared? I used:
ConTeXt ver: 2018.03.16 22:20 MKIV beta fmt: 2018.3.21 and getfiguredimensions[~/my-test-picture.png]
Rudolf
On Sun, Feb 24, 2019 at 07:38:42AM +0900, Jeong Dal wrote:
Dear Rudolf,
It is working for me. Using my figure, I got (45126287sp,31048991sp)
(1372,944)
As Hans said, either change ~ to some path or set the directory of externalfigure.
Best regards,
Dalyoung
Hello Dalyoung, thank you for your message! Yes, "~" was the reason for my failure. Its use seems to be linux specific only. If you convert your sp-sizes into pt-sizes (1pt = 65536sp) you will get: (45126287sp,31048991sp) = (688.5725pt,473.7700pt) What do you think, are these pt-values ok to you? In my opinion they seem to be too small. How are they calculated? Cheers, Rudolf
Am 2019-02-24 um 09:11 schrieb Rudolf Bahr
Yes, "~" was the reason for my failure. Its use seems to be linux specific only.
No, it’s not Linux specific, but ConTeXt doesn’t expand shell variables. Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD
On Wed, Feb 27, 2019 at 09:55:07AM +0100, Henning Hraban Ramm wrote:
Am 2019-02-24 um 09:11 schrieb Rudolf Bahr
: Yes, "~" was the reason for my failure. Its use seems to be linux specific only.
No, it’s not Linux specific, but ConTeXt doesn’t expand shell variables.
Greetlings, Hraban
Aha! Thank you. Cheers, Rudolf
participants (3)
-
Henning Hraban Ramm
-
Jeong Dal
-
Rudolf Bahr