Re: [NTG-context] issues with rotated paper size

2019-05-14 Thread Wolfgang Schuster

Pablo Rodriguez schrieb am 14.05.2019 um 18:51:

On 5/14/19 4:53 PM, Hans Hagen wrote:

i have no clue what you want to achieve

Hans and Wolfgang,

I think I have found a weird behaviour in ConTeXt (latest beta from
2019.05.12 19:05).

This is a sample of what I want to achieve (thanks to Wolfgang’s help):

 \setuppapersize [A4,landscape,90] [A4]
 \setupinteractionscreen[option={none, max}]
 \showframe
 \starttext
 \showlayout
 \stoptext

If I set "option=max" (instead of "option={none, max}", I get a square
paper of 210x210mm.

These are the right page dimensions in PDF with the sample above:

   /MediaBox [ 0 0 595.2756 841.8898 ]
   /CropBox [ 0 0 595.2756 841.8898 ]
   /TrimBox [ 0 0 595.2756 841.8898 ]

These are the dimensions with "\setupinteractionscreen[option=max]":

   /MediaBox [ 0 0 841.8898 595.2756 ]
   /CropBox [ 0 -246.61417 595.2756 595.2756 ]
   /TrimBox [ 0 -246.61417 595.2756 595.2756 ]

I think it might be a bug.
When you add \setupinteractionscreen to your document ConTeXt uses a 
more complex method to save the page size which includes calculations 
for the different box types. Part of these calculations are the width 
and height of the document and paper but when you rotate one of them you 
get unexpected values for them.


\setuppapersize [A4,landscape,90] [A4]

\starttext

\starttabulate
\NC Printpaperwidth  \EQ \the\printpaperwidth  \NC\NR
\NC Paperwidth   \EQ \the\paperwidth   \NC\NR
\TB
\NC Printpaperheight \EQ \the\printpaperheight \NC\NR
\NC Paperheight  \EQ \the\paperheight  \NC\NR
\stoptabulate

\stoptext

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] issues with rotated paper size

2019-05-14 Thread Pablo Rodriguez
On 5/14/19 4:53 PM, Hans Hagen wrote:
> i have no clue what you want to achieve

Hans and Wolfgang,

I think I have found a weird behaviour in ConTeXt (latest beta from
2019.05.12 19:05).

This is a sample of what I want to achieve (thanks to Wolfgang’s help):

\setuppapersize [A4,landscape,90] [A4]
\setupinteractionscreen[option={none, max}]
\showframe
\starttext
\showlayout
\stoptext

If I set "option=max" (instead of "option={none, max}", I get a square
paper of 210x210mm.

These are the right page dimensions in PDF with the sample above:

  /MediaBox [ 0 0 595.2756 841.8898 ]
  /CropBox [ 0 0 595.2756 841.8898 ]
  /TrimBox [ 0 0 595.2756 841.8898 ]

These are the dimensions with "\setupinteractionscreen[option=max]":

  /MediaBox [ 0 0 841.8898 595.2756 ]
  /CropBox [ 0 -246.61417 595.2756 595.2756 ]
  /TrimBox [ 0 -246.61417 595.2756 595.2756 ]

I think it might be a bug.

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] context standalone installation broken

2019-05-14 Thread Mojca Miklavec
Hi,

Massimiliano, thanks for confirming that it works again and I'm sorry
for the inconvenience.

For a strange/unknown reason the SVN checkout got into an inconsistent
state (claiming checksum mismatch), so I started doing some magic to
get it back to a consistent state. In the meantime some files were
removed and the minimals sync (done every 15 minutes or so) was
triggered in the meantime.

(I have never seen a similar error in the past, and git seems to work
more reliably in such cases.)

If anything still sounds abnormal, please let me know.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] issues with rotated paper size

2019-05-14 Thread Pablo Rodriguez
On 5/14/19 8:05 PM, Wolfgang Schuster wrote:
> Pablo Rodriguez schrieb am 14.05.2019 um 18:51:
>> [...]
>> I think it might be a bug.
>
> When you add \setupinteractionscreen to your document ConTeXt uses a
> more complex method to save the page size which includes calculations
> for the different box types. Part of these calculations are the width
> and height of the document and paper but when you rotate one of them you
> get unexpected values for them.

Many thanks for your reply, Wolfgang.

I see that a more complex method is deployed to get the box sizes.

I simply thought that this could be a bug.

Many thanks four your help,

Pablo


> \setuppapersize [A4,landscape,90] [A4]
>
> \starttext
>
> \starttabulate
> \NC Printpaperwidth  \EQ \the\printpaperwidth  \NC\NR
> \NC Paperwidth   \EQ \the\paperwidth   \NC\NR
> \TB
> \NC Printpaperheight \EQ \the\printpaperheight \NC\NR
> \NC Paperheight  \EQ \the\paperheight  \NC\NR
> \stoptabulate
>
> \stoptext
>
> Wolfgang
>
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___
>


--
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Questions on columnsetspan (and grids and backgrounds)

2019-05-14 Thread Hans Hagen

On 5/13/2019 5:59 PM, Mikael P. Sundqvist wrote:
Den lör 11 maj 2019 10:28Mikael P. Sundqvist > skrev:


Hi,

I have for some hours tried to understand how to work with
columnsetspans (I'm trying with an updated lmtx), and have some
questions.

1) Is it only the floats that has the long list of placement options
(given on p. 18 in the columnsets manual), or should they also apply
to columnsetspans and columnsetareas? (I cannot get it to work with
"default=fxtb:2*10" and similar options for other elements than
floats). It would be useful to have it for other type of elements as
well.

2) What is the current correct way to get back on grid after formulas?
The only key that had lead me to something that seems to work in
\setupformulas is "option=depth". Is that the way to go?

3) This is a bit unrelated, but is it possible to set page backgrounds
on specific page. Something like \setupbackgrounds[page][page=3, ...]
(I cannot find any keys for this in setup-en.pdf). Right now I can set
it for an odd and an even page, but then if I want a background on the
page after that, I have to put that code at the place where it will be
used. (I got an error with \startpostponing[+1] ... \stoppostponing)

4) To be a bit more concrete on the first issue: In the example below,
how can I place the columnsetspan at the bottom right? Second and
third column, 10 lines down? I attach the result of running this file.

/Mikael

\setuplayout[grid=yes]
\showgrid
\definecolumnset[three][n=3]

\definecolumnsetspan[two][
n=2,
background=color,
backgroundcolor=lightgray,
]

\starttext
\startcolumnset[three]
\samplefile{knuth}

\startcolumnsetspan[two][default=btrl]
\samplefile{ward}
\stopcolumnsetspan

\dorecurse{5}{\samplefile{knuth}\par}
\stopcolumnset
\stoptext


Hi!

I have looked more carefully at the columnsets manual, and it looks like 
(parts of) the columnsets mechanism is somehow broken at the moment, 
since some of the examples there are not showing what they are supposed to.


the mkii mechanism has been replaced by a new one but it's not 
completely compatible (these placements are actually for floats and 
spans were just a special kind abusing that mechanism)



Can this be confirmed? Is there a plan to get it to work soon again?

i'll put it on the todo list

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Questions on columnsetspan (and grids and backgrounds)

2019-05-14 Thread Floris van Manen
is this related?

\setuplayout[grid=yes]
\showgrid
\definecolumnset[three][n=3]
\starttext
\samplefile{knuth}
\startcolumns[n=3]
\dorecurse{4}{\samplefile{knuth}\par}
\stopcolumns
\page
\samplefile{knuth}
\startcolumnset[three]
\dorecurse{4}{\samplefile{knuth}\par}
\stopcolumnset
\stoptext


Using the \startcolumnset instead of \startcolumns will overwrite the first 
paragraph at the top of the page
in its second and third column

.F


signature.asc
Description: Message signed with OpenPGP using GPGMail
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] context standalone installation broken

2019-05-14 Thread mf

find tex -name plain.tex

finds nothing; there's no "plain" dir under ./tex/texmf/tex/

Massimiliano

Il 14/05/19 11:39, Henning Hraban Ramm ha scritto:

Am 2019-05-14 um 11:34 schrieb mf :


./first-setup.sh --engine=luatex --modules=all

downloads ok, but then

.../tex/setuptex gives this error:

"/home/massi/context/latest/tex" is not a valid TEXROOT path.
(There is no file 
"/home/massi/context/latest/tex/texmf/tex/plain/base/plain.tex")
provide a proper tex root (like '. setuptex /something/tex')


You must call setuptex with a path (or . if you’re in the right directory)-


Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] context standalone installation broken

2019-05-14 Thread mf

./first-setup.sh --engine=luatex --modules=all

downloads ok, but then

.../tex/setuptex gives this error:

"/home/massi/context/latest/tex" is not a valid TEXROOT path.
(There is no file 
"/home/massi/context/latest/tex/texmf/tex/plain/base/plain.tex")

provide a proper tex root (like '. setuptex /something/tex')

Massimiliano
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] context standalone installation broken

2019-05-14 Thread Henning Hraban Ramm
Am 2019-05-14 um 11:34 schrieb mf :

> ./first-setup.sh --engine=luatex --modules=all
> 
> downloads ok, but then
> 
> .../tex/setuptex gives this error:
> 
> "/home/massi/context/latest/tex" is not a valid TEXROOT path.
> (There is no file 
> "/home/massi/context/latest/tex/texmf/tex/plain/base/plain.tex")
> provide a proper tex root (like '. setuptex /something/tex')

You must call setuptex with a path (or . if you’re in the right directory)-


Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] context standalone installation broken

2019-05-14 Thread Mojca Miklavec
Something broke with svn updates of TeX Live.

I'm looking into it.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Questions on columnsetspan (and grids and backgrounds)

2019-05-14 Thread Mikael P. Sundqvist
On Tue, May 14, 2019 at 10:39 AM Hans Hagen  wrote:
>
> On 5/13/2019 5:59 PM, Mikael P. Sundqvist wrote:
> > Den lör 11 maj 2019 10:28Mikael P. Sundqvist  > > skrev:
> >
> > Hi,
> >
> > I have for some hours tried to understand how to work with
> > columnsetspans (I'm trying with an updated lmtx), and have some
> > questions.
> >
> > 1) Is it only the floats that has the long list of placement options
> > (given on p. 18 in the columnsets manual), or should they also apply
> > to columnsetspans and columnsetareas? (I cannot get it to work with
> > "default=fxtb:2*10" and similar options for other elements than
> > floats). It would be useful to have it for other type of elements as
> > well.
> >
> > 2) What is the current correct way to get back on grid after formulas?
> > The only key that had lead me to something that seems to work in
> > \setupformulas is "option=depth". Is that the way to go?
> >
> > 3) This is a bit unrelated, but is it possible to set page backgrounds
> > on specific page. Something like \setupbackgrounds[page][page=3, ...]
> > (I cannot find any keys for this in setup-en.pdf). Right now I can set
> > it for an odd and an even page, but then if I want a background on the
> > page after that, I have to put that code at the place where it will be
> > used. (I got an error with \startpostponing[+1] ... \stoppostponing)
> >
> > 4) To be a bit more concrete on the first issue: In the example below,
> > how can I place the columnsetspan at the bottom right? Second and
> > third column, 10 lines down? I attach the result of running this file.
> >
> > /Mikael
> >
> > \setuplayout[grid=yes]
> > \showgrid
> > \definecolumnset[three][n=3]
> >
> > \definecolumnsetspan[two][
> > n=2,
> > background=color,
> > backgroundcolor=lightgray,
> > ]
> >
> > \starttext
> > \startcolumnset[three]
> > \samplefile{knuth}
> >
> > \startcolumnsetspan[two][default=btrl]
> > \samplefile{ward}
> > \stopcolumnsetspan
> >
> > \dorecurse{5}{\samplefile{knuth}\par}
> > \stopcolumnset
> > \stoptext
> >
> >
> > Hi!
> >
> > I have looked more carefully at the columnsets manual, and it looks like
> > (parts of) the columnsets mechanism is somehow broken at the moment,
> > since some of the examples there are not showing what they are supposed to.
>
> the mkii mechanism has been replaced by a new one but it's not
> completely compatible (these placements are actually for floats and
> spans were just a special kind abusing that mechanism)
>
> > Can this be confirmed? Is there a plan to get it to work soon again?
> i'll put it on the todo list
>
> -
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -

Hi!

Many thanks for your reply! Then I stop my playing with it now
(several things work and it looks quite nice!).

I really appreciate any effort in this direction, since I think this
grid+column functionality is a very nice feature to have!!

/Mikael
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] context standalone installation broken

2019-05-14 Thread mf

Now it works again. Thanks!
Massimiliano

Il 14/05/19 12:29, Mojca Miklavec ha scritto:

Something broke with svn updates of TeX Live.

I'm looking into it.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] issues with rotated paper size

2019-05-14 Thread Wolfgang Schuster

Pablo Rodriguez schrieb am 14.05.2019 um 16:12:

Dear list,

I have the following sample:

 \setuppapersize[A4, landscape][A4, 90]
 %~ \setupinteractionscreen[option=max]
 \showframe
 \starttext
 \showlayout
 \stoptext

For some reason, the page is displaced from the paper bottom.

\setuppapersize [A4,landscape,90] [A4] ?

Wolfgang


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] issues with rotated paper size

2019-05-14 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\setuppapersize[A4, landscape][A4, 90]
%~ \setupinteractionscreen[option=max]
\showframe
\starttext
\showlayout
\stoptext

For some reason, the page is displaced from the paper bottom. And if
fullscreen is set, the real paper size is a square.

I think this may be a bug. Could anyone explain me what I’m doing wrong
or confirm the issue?

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] issues with rotated paper size

2019-05-14 Thread Hans Hagen

On 5/14/2019 4:12 PM, Pablo Rodriguez wrote:

Dear list,

I have the following sample:

 \setuppapersize[A4, landscape][A4, 90]
 %~ \setupinteractionscreen[option=max]
 \showframe
 \starttext
 \showlayout
 \stoptext

For some reason, the page is displaced from the paper bottom. And if
fullscreen is set, the real paper size is a square.

I think this may be a bug. Could anyone explain me what I’m doing wrong
or confirm the issue?

i have no clue what you want to achieve

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] issues with rotated paper size

2019-05-14 Thread Pablo Rodriguez
On 5/14/19 5:16 PM, Wolfgang Schuster wrote:
> Pablo Rodriguez schrieb am 14.05.2019 um 16:12:
>> Dear list,
>>
>> I have the following sample:
>>
>>  \setuppapersize[A4, landscape][A4, 90]
>>  %~ \setupinteractionscreen[option=max]
>>  \showframe
>>  \starttext
>>  \showlayout
>>  \stoptext
>>
>> For some reason, the page is displaced from the paper bottom.
> \setuppapersize [A4,landscape,90] [A4] ?

Many thanks for your reply, Wolfgang.

This is exactly what I want.

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___