Re: [NTG-context] When newsizing an external figure by [width=], what will be its height in pt and viceversa?

2019-02-27 Thread Rudolf Bahr
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. > >

Re: [NTG-context] When newsizing an external figure by [width=], what will be its height in pt and viceversa?

2019-02-27 Thread Henning Hraban Ramm
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

Re: [NTG-context] When newsizing an external figure by [width=], what will be its height in pt and viceversa?

2019-02-24 Thread Jeong Dal
Dear Rudolf, > 2019. 2. 24. 오후 7:17, ntg-context-requ...@ntg.nl 작성: > > 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 >

Re: [NTG-context] When newsizing an external figure by [width=], what will be its height in pt and viceversa?

2019-02-24 Thread Rudolf Bahr
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

Re: [NTG-context] When newsizing an external figure bei [width=], what will be its height in pt and viceversa?

2019-02-23 Thread Jeong Dal
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-requ...@ntg.nl 작성: > > I fear it doesn't work. I

Re: [NTG-context] When newsizing an external figure bei [width=], what will be its height in pt and viceversa?

2019-02-23 Thread Hans Hagen
On 2/23/2019 12:37 PM, Rudolf Bahr wrote: On Sat, Feb 23, 2019 at 11:56:32AM +0100, Hans Hagen wrote: On 2/23/2019 11:08 AM, Rudolf Bahr wrote: On Fri, Feb 22, 2019 at 12:59:55PM +0100, Peter Münster wrote: On Fri, Feb 22 2019, Rudolf Bahr wrote: The picture sizes in px One gets by invoking

Re: [NTG-context] When newsizing an external figure bei [width=], what will be its height in pt and viceversa?

2019-02-23 Thread Rudolf Bahr
On Sat, Feb 23, 2019 at 11:56:32AM +0100, Hans Hagen wrote: > On 2/23/2019 11:08 AM, Rudolf Bahr wrote: > > On Fri, Feb 22, 2019 at 12:59:55PM +0100, Peter Münster wrote: > > > On Fri, Feb 22 2019, Rudolf Bahr wrote: > > > > > > > The picture sizes in px One gets by invoking for instance graphics

Re: [NTG-context] When newsizing an external figure bei [width=], what will be its height in pt and viceversa?

2019-02-23 Thread Hans Hagen
On 2/23/2019 11:08 AM, Rudolf Bahr wrote: On Fri, Feb 22, 2019 at 12:59:55PM +0100, Peter Münster wrote: On Fri, Feb 22 2019, Rudolf Bahr wrote: The picture sizes in px One gets by invoking for instance graphics Magick's identify in a lua program: Or just img.scan(): \startluacode

Re: [NTG-context] When newsizing an external figure bei [width=], what will be its height in pt and viceversa?

2019-02-23 Thread Rudolf Bahr
On Fri, Feb 22, 2019 at 12:59:55PM +0100, Peter Münster wrote: > On Fri, Feb 22 2019, Rudolf Bahr wrote: > > > The picture sizes in px One gets by invoking for instance graphics Magick's > > identify > > in a lua program: > > Or just img.scan(): > > \startluacode > local image =

Re: [NTG-context] When newsizing an external figure bei [width=], what will be its height in pt and viceversa?

2019-02-22 Thread Peter Münster
On Fri, Feb 22 2019, Rudolf Bahr wrote: > The picture sizes in px One gets by invoking for instance graphics Magick's > identify > in a lua program: Or just img.scan(): \startluacode local image = img.scan{filename = "my-image.jpg"} logs.report("xsize", image.xsize) logs.report("ysize",

Re: [NTG-context] When newsizing an external figure bei [width=], what will be its height in pt and viceversa?

2019-02-22 Thread Rudolf Bahr
On Tue, Feb 19, 2019 at 10:48:38AM +0100, Bahr Rudolf wrote: > Hi All, > > from an external figure I normally know its width and height in px. > But I don't know its exact sizes in pt. When newsizing the figure > in a document (by the same width-to-height-ratio), I'll do that as > some part of

[NTG-context] When newsizing an external figure bei [width=], what will be its height in pt and viceversa?

2019-02-19 Thread Rudolf Bahr
Hi All, from an external figure I normally know its width and height in px. But I don't know its exact sizes in pt. When newsizing the figure in a document (by the same width-to-height-ratio), I'll do that as some part of textwidth or textheight, in pt or mm, but not in px, i.e. by means of