[NTG-context] some mac fonts do not work correctly

2019-07-23 Thread Ulrike Fischer
Hello Hans,

we got a bug report that some (proprietary) mac fonts don't work
correctly. The reason seem to be that the OpenType cmap format used
by these fonts isn't supported by the fontloader. 

The necessary cmap formats are "platform 0 (Unicode), encoding 1
(Unicode 1.1(?)), format 12" and maybe as a fallback "platform 1
(Mac), encoding 0 (Roman), format 0".

A test would be 

\starttext
\font\oddfont="Big Caslon Medium" \oddfont A
\stoptext

(I don't have a mac and so couldn't check)

The bug report we got is here

https://github.com/u-fischer/luaotfload/issues/73


-- 
Ulrike Fischer 
https://www.troubleshooting-tex.de/

___
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] background problem with layers

2019-07-23 Thread Hans Hagen

On 7/23/2019 4:51 PM, Aditya Mahajan wrote:

On Mon, 22 Jul 2019, Wolfgang Schuster wrote:


Peter Rolf schrieb am 22.07.2019 um 13:32:

Hi,

I have a problem with a not printed color background when using layers.
Small test file is attached.

Below is a simpler example of your problem.

The frame disappears when you repeat the layer which change how the 
content
if flushed, in the example below you can test it by changing 
\box\scratchbox

to \copy\scratchbox.

\starttext

\setbox\scratchbox\hbox{\frule width 6cm height 4cm \relax}

\dontleavehmode
\box\scratchbox % works
%\copy\scratchbox % fails

\stoptext


Is this a bug or is this a documented limitation of \copy and \frule?

Of course it's a bug ... I'll send you a preliminary one word fix -)

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] background problem with layers

2019-07-23 Thread Aditya Mahajan

On Mon, 22 Jul 2019, Wolfgang Schuster wrote:


Peter Rolf schrieb am 22.07.2019 um 13:32:

Hi,

I have a problem with a not printed color background when using layers.
Small test file is attached.

Below is a simpler example of your problem.

The frame disappears when you repeat the layer which change how the content
if flushed, in the example below you can test it by changing \box\scratchbox
to \copy\scratchbox.

\starttext

\setbox\scratchbox\hbox{\frule width 6cm height 4cm \relax}

\dontleavehmode
\box\scratchbox % works
%\copy\scratchbox % fails

\stoptext


Is this a bug or is this a documented limitation of \copy and \frule?

Aditya
___
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] (no subject)

2019-07-23 Thread Denis Maier
Hi,
I am typesetting a newsletter using newcolumnsets, and I am struggling with
placing my graphics. Why isn't the graphic on page 2 at the bottom (code
below)?
Best,
Denis

```
\usemodule[newcolumnsets,simulate]

\useMPlibrary[dum]

\setupbodyfont
[palatino]

\setuphead[section][style=\bfa\ss]

\setuplayout
[grid=yes]

\setuplayout
[backspace=20mm,
cutspace=15mm,
width=middle,
height=middle]

\setupsystem
[random=1234]

\setuppagenumbering [
alternative=,
location=,
]

\setupfootertexts
[Laubblatt 2019/1] [{\externalfigure[cow][height=15mm]}]

\setupfooter
[style=\ss]

\setuptolerance
[verytolerant,stretch]

\definecolor[color-1][.5(red,green)]
\definecolor[color-2][.5(green,blue)]
\definecolor[color-3][.5(blue,red)]
\definecolor[color-4][.5(white,black)]
\definecolor[color-5][.5(white,color-4)]

\startuniqueMPgraphic{frame}
fill OverlayBox withcolor \MPcolor{color-1} ;
\stopuniqueMPgraphic

\startuniqueMPgraphic{contrast}
fill OverlayBox withcolor \MPcolor{color-2} ;
\stopuniqueMPgraphic

\defineoverlay[frame]   [\uniqueMPgraphic{frame}]
\defineoverlay[contrast][\uniqueMPgraphic{contrast}]

\definecolumnset[example][n=2]

%\setupcolumnsetstart[example][1][1][2]
%\setupcolumnsetstart[example][1][2][4]
%\setupcolumnsetlines[example][1][1][-5]
%\setupcolumnsetlines[example][1][2][-5]



\definecolumnsetspan[wide] [n=2,
background=contrast,
color=white,
]


\starttext

\startcolumnset[example]



\startcolumnsetspan[wide]
\subject{Einleitung}
{\tfx\setupinterlinespace\em
\dorecurse{1}{\fakewords{50}{100}\par}
}
\stopcolumnsetspan

\placefigure [btrl,none]
{}
{
\externalfigure[placeholder][width=\columnsetspanwidth{1}]
}

\dorecurse{5}{\fakewords{50}{100}\par}

\placefigure [btrl,none]
{}
{
\externalfigure[placeholder][width=\columnsetspanwidth{2}]
}

\dorecurse{5}{\fakewords{50}{100}\par}

\stopcolumnset
\stoptext
```
___
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] \glueexpr in lmtx

2019-07-23 Thread Hans Hagen

On 7/23/2019 1:16 AM, Marcel Fabian Krüger wrote:

Hi,

I stumbled upon some odd behaviour of \glueexpr in lmtx. Take the
following document:

\starttext
\the\glueexpr 0.0pt \relax
\newskip\myskip
\myskip=\glueexpr 0.0pt \relax
\stoptext

Without lmtx this works fine. Under lmtx, the *first* use of
`\glueexpr`, after `\the`, works fine too. On the other hand, the other
`\glueexpr`, after `\myskip=`, complains about a "Illegal unit of
measure (pt inserted)". It does not seem to accept the fractional part,
everything works again if I use

\starttext
\the\glueexpr 0.0pt \relax
\newskip\myskip
\myskip=\glueexpr 0pt \relax
\stoptext

Am I missing something here or is this a bug?

fixed in next lmtx beta (was a wrong symbolic constant someplace)

(context never uses gluexpr so it went unnoticed)

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] Place footnote after reference

2019-07-23 Thread Huseyin Özoguz
Thank Taco, that worked in the example, of course the general problem 
stays (thanks to Rik Kabel, too).


But with your suggestion I dicovered a interesting behaviour, see this 
example:


\showgrid
\setupnote[footnote][before=]
\starttext
\input tufte
\input tufte \footnote{Footnote 1}
\input tufte
\input tufte \dorecurse{35}{Blub or what }\footnote{Footnote 2} That 
does\footnote{Footnote 3} only\footnote{Footnote 4} work in special cases.

\stoptext

Now Context indeed sets the third and fourth footnote on the second 
page, but leaves the reference to them on the last line of the first 
page. This is exactly the behaviour I want in general. Could we force that?


/For testing: /If we add another footnote in the example above, it fails 
again - despite of the possibility to just typeset the lines exactly 
like in the example above, just move the footnotes on the next page, not 
the references - here might be some logic-mistake at work, because there 
should be no difference in my opinion between the examples:


\showgrid
\setupnote[footnote][before=]
\starttext
\input tufte
\input tufte \footnote{Footnote 1}
\input tufte
\input tufte \footnote{Footnote extra} \dorecurse{35}{Blub or what 
}\footnote{Footnote 2} That does\footnote{Footnote 3} 
only\footnote{Footnote 4} work in special cases.

\stoptext

--
Huseyin Özoguz

E-Mail: h.oezo...@mmnetz.de

___
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] Place footnote after reference

2019-07-23 Thread Taco Hoekwater
Hi,

> On 22 Jul 2019, at 18:34, Huseyin Özoguz  wrote:
> 
> 
> The problem is, that Context (or Tex) skips lines, which is poor typesetting, 
> too many even than necessary in some cases, and that is not suitable. 

ConTeXt does not skip too much in this example, it the second footnote
will just not fit with the (default) parameter set ConTeXt is using.

If the footnote 2 would be on the first page, that is an extra line for
the reference line, and an extra line for the actual note. There is 
an implicit \blank before the footnote rule, and that is a third ‘line’.

Since there only is 2 lines (and a bit) of space available, it will not fit.

Disable the default \blank with:

  \setupnote[footnote][before=]

and both notes will fit on the first page.

Best wishes,
Taco


___
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] background problem with layers

2019-07-23 Thread Peter Rolf
Am 22.07.2019 um 19:00 schrieb Wolfgang Schuster:
> Peter Rolf schrieb am 22.07.2019 um 13:32:
>> Hi,
>>
>> I have a problem with a not printed color background when using layers.
>> Small test file is attached.
> Below is a simpler example of your problem.
>
> The frame disappears when you repeat the layer which change how the content
> if flushed, in the example below you can test it by changing
> \box\scratchbox
> to \copy\scratchbox.
>
> \starttext
>
> \setbox\scratchbox\hbox{\frule width 6cm height 4cm \relax}
>
> \dontleavehmode
> \box\scratchbox % works
> %\copy\scratchbox % fails
>
> \stoptext
>
> Wolfgang
>
>

I see. Thanks for the info. I have to adapt my code then.

Peter
___
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] \glueexpr in lmtx

2019-07-23 Thread Marcel Fabian Krüger
Hi,

I stumbled upon some odd behaviour of \glueexpr in lmtx. Take the
following document:

\starttext
\the\glueexpr 0.0pt \relax
\newskip\myskip
\myskip=\glueexpr 0.0pt \relax
\stoptext

Without lmtx this works fine. Under lmtx, the *first* use of
`\glueexpr`, after `\the`, works fine too. On the other hand, the other
`\glueexpr`, after `\myskip=`, complains about a "Illegal unit of
measure (pt inserted)". It does not seem to accept the fractional part,
everything works again if I use

\starttext
\the\glueexpr 0.0pt \relax
\newskip\myskip
\myskip=\glueexpr 0pt \relax
\stoptext

Am I missing something here or is this a bug?


Best regards,

Marcel Krueger
___
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
___