Re: [NTG-context] columnset issues

2020-01-27 Thread Henning Hraban Ramm

> Am 2020-01-27 um 20:28 schrieb Wolfgang Schuster 
> :
> 
> Henning Hraban Ramm schrieb am 27.01.2020 um 10:31:
>>> Am 2020-01-26 um 13:07 schrieb Henning Hraban Ramm :
>>> 
>>> I thought I’d try columnset areas for the placement of ads:
>> This MWE shows better what’s going on:
>> The "area" space is reserved as requested, but its contents get placed 
>> elsewhere.
>> 
>> 
>> \usemodule[visual]
>> \useMPlibrary[dum]
>> \definecolor[fakerulecolor][gray]
>> \setuplayout[
>>   grid=yes,
>> ]
>> \showframe[text]
>> \showgrid
>> 
>> \definecolumnset[Two][
>>   n=2,
>>   page=no,
>> ]
>> %\definecolumnsetspan[TwoSpan][n=2]
>> \definecolumnsetarea[AdSpace][
>>   x=1,y=21,
>>   nx=1,ny=21,
>>   state=stop,
>>   frame=on,
>>   framecolor=magenta,
>> ]
>> 
>> 
>> \starttext
>> \startcolumnset[Two]
>> 
>> \dorecurse{10}{\fakewords{100}{120}\par}
>> 
>> \setupcolumnsetarea[AdSpace][state=start]
>> \setupcolumnsetareatext[AdSpace]{\externalfigure[MyAd][width=\textwidth,height=0.45\textheight]}
> 
> You need brackets for both argument, i.e. \setupcolumnsetareatext[...][...] 
> but even then your example only works when I place the areatext before 
> \startcolumnset.

Ah, thank you!
But even if I put the commands before \startcolumnset, the "AdSpace" appears on 
the second page. While this was the intention of the example, it seems like I 
can’t control on which page my ads/images appear.

In my actual project, all the defined columnsetareas show up on the second page 
(where the first columnset starts), even though all have state=stop, and never 
show up again where I set state=start.

I wanted to use it like

\define[2]\Anzeige{%
  \setupcolumnsetareatext[ad#1][{\externalfigure[#2][width=\overlaywidth]}]
  \setupcolumnsetarea[ad#1][state=start]
}

I also tried to just reserve the space with columnsetareas and place the ads 
with \setlayer; that would work if I could control the placement of the areas...

Since I must complete this project within this week, I already started from 
scratch in my layout program (switched from my old InDesign to Affinity 
Publisher – much cheaper but even less fun). Seems like I overestimated 
ConTeXt’s (and my) readiness for this kind of layout. A pity.


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] columnset issues

2020-01-27 Thread Wolfgang Schuster

Henning Hraban Ramm schrieb am 27.01.2020 um 10:31:

Am 2020-01-26 um 13:07 schrieb Henning Hraban Ramm :

I thought I’d try columnset areas for the placement of ads:

This MWE shows better what’s going on:
The "area" space is reserved as requested, but its contents get placed 
elsewhere.


\usemodule[visual]
\useMPlibrary[dum]
\definecolor[fakerulecolor][gray]
\setuplayout[
   grid=yes,
]
\showframe[text]
\showgrid

\definecolumnset[Two][
   n=2,
   page=no,
]
%\definecolumnsetspan[TwoSpan][n=2]
\definecolumnsetarea[AdSpace][
   x=1,y=21,
   nx=1,ny=21,
   state=stop,
   frame=on,
   framecolor=magenta,
]


\starttext
\startcolumnset[Two]

\dorecurse{10}{\fakewords{100}{120}\par}

\setupcolumnsetarea[AdSpace][state=start]
\setupcolumnsetareatext[AdSpace]{\externalfigure[MyAd][width=\textwidth,height=0.45\textheight]}


You need brackets for both argument, i.e. 
\setupcolumnsetareatext[...][...] but even then your example only works 
when I place the areatext before \startcolumnset.


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] Superios with Cardo font

2020-01-27 Thread Denis Maier

Hi,

I am trying to use the Cardo font with superior figures. But somehow 
these seems to work differently here than with other fonts:



\definefontfeature[default][default][
    onum=yes,
    pnum=yes,
    ]

\definefontfeature[f:newstyle][onum=no,pnum=no]

\definefontfamily[cardo][rm][Cardo]
\definefontfamily[libertine][rm][Linux Libertine O]

\starttext
\setupbodyfont[cardo]
12345
{\feature[+][f:superiors]12345}

12345
{\feature[+][f:newstyle]\feature[+][f:superiors]12345}

\setupbodyfont[libertine]
12345
{\feature[+][f:superiors]12345}

12345
{\feature[+][f:newstyle]\feature[+][f:superiors]12345}
\stoptext


Why is it that I have to manually disable onum and pnum with Cardo for 
sups to work?


(Note: Cardo is a ttf font, Linux Libertine O is a otf)

By the way, what is the correct way to define a new font feature for 
superios? (VerticalPosition=Superior; sups=yes; 
VerticalPosition=Superscript ...)


Best,
Denis
___
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] columnset issues

2020-01-27 Thread Henning Hraban Ramm

> Am 2020-01-26 um 13:07 schrieb Henning Hraban Ramm :
> 
> I thought I’d try columnset areas for the placement of ads:

This MWE shows better what’s going on:
The "area" space is reserved as requested, but its contents get placed 
elsewhere.


\usemodule[visual]
\useMPlibrary[dum]
\definecolor[fakerulecolor][gray]
\setuplayout[
  grid=yes,
]
\showframe[text]
\showgrid

\definecolumnset[Two][
  n=2,
  page=no,
]
%\definecolumnsetspan[TwoSpan][n=2]
\definecolumnsetarea[AdSpace][
  x=1,y=21,
  nx=1,ny=21,
  state=stop,
  frame=on,
  framecolor=magenta,
]


\starttext
\startcolumnset[Two]

\dorecurse{10}{\fakewords{100}{120}\par}

\setupcolumnsetarea[AdSpace][state=start]
\setupcolumnsetareatext[AdSpace]{\externalfigure[MyAd][width=\textwidth,height=0.45\textheight]}

\fakewords{200}{200}

\stopcolumnset

\stoptext



HR
___
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] img.scan in lmtx?

2020-01-27 Thread Hans Hagen

On 1/26/2020 11:50 PM, Henning Hraban Ramm wrote:


I use the lua function img.scan{filename}, but in lmtx I get "attempt to index a nil 
value (global 'img')", so I guess this got renamed or moved?

Just the high level command:

figures.getinfo(name,page)

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
___