Re: [NTG-context] footnote placement

2017-07-20 Thread Pablo Rodriguez
On 07/20/2017 10:06 PM, Meer, Hans van der wrote:
> I did use: \setupnotes[footnote][split=verystrict,scope=page] so I guess
> there is not much hope here.
> 
> A related question: the numbering of endnotes is placed in the
> leftmargin. Is there a parameter setting that forces them in the
> textarea of the page?  I tried \setupnotes[endnote][location=text] but
> without success.

Hans,

\setupnotation[endnote][alternative=serried] is what you need.

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] replace characters with bounding boxes

2017-07-20 Thread Idris Samawi Hamid ادريس سماوي حامد

On Thu, 20 Jul 2017 15:05:31 -0600, Hans Hagen  wrote:


On 7/20/2017 8:06 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:

On Thu, 20 Jul 2017 07:31:00 -0600, Hans Hagen  wrote:


On 7/20/2017 3:04 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:

Dear gang,
 Given a set body font and text, how does one replace all characters  
of that font in that text with the corresponding rectangular bounding  
boxes?
 Once an answer to the above is spelled out: How does one control the  
width of the lines which make up the bounding boxes?


% \showglyphs

or

\definefontfeature[default][default][boundingbox=yes]

\starttext
 \input sapolsky
\stoptext

 Many thanks, Hans:
 a - Toggling \showglyphs does not have any effect.
 b - Is there a way to make the glyphs disappear and show only the  
boxes?*

 c- Is there a way to make the boxes frames instead backgrounds?
 *\start|stopcolor[white] doesn't work when boundingbox is yes.
Well, it's a tracing option so don't expect miracles and integration  
with other features (like color). I'll add things like


   \definefontfeature[default][default][boundingbox=yes]
   \definefontfeature[default][default][boundingbox=background]
   \definefontfeature[default][default][boundingbox=frame]

   \definefontfeature[default][default][boundingbox={background,empty}]
   \definefontfeature[default][default][boundingbox={frame,empty}]

   \definefontfeature[default][default][boundingbox={frame,red,empty}]

as additional (probably never used) featurecreep but for sure will  
forget to document it etc etc


Thanks Hans. The current development workflow could use an option to see  
the bbox structure without seeing the glyphs (along with \showfontkerns as  
well)... a "geometric" view of the font in action so to speak.


Idris
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512
___
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] replace characters with bounding boxes

2017-07-20 Thread Hans Hagen

On 7/20/2017 8:06 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:

On Thu, 20 Jul 2017 07:31:00 -0600, Hans Hagen  wrote:


On 7/20/2017 3:04 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:

Dear gang,
 Given a set body font and text, how does one replace all characters 
of that font in that text with the corresponding rectangular bounding 
boxes?
 Once an answer to the above is spelled out: How does one control the 
width of the lines which make up the bounding boxes?


% \showglyphs

or

\definefontfeature[default][default][boundingbox=yes]

\starttext
 \input sapolsky
\stoptext


Many thanks, Hans:

a - Toggling \showglyphs does not have any effect.

b - Is there a way to make the glyphs disappear and show only the 
boxes?*


c- Is there a way to make the boxes frames instead backgrounds?

*\start|stopcolor[white] doesn't work when boundingbox is yes.
Well, it's a tracing option so don't expect miracles and integration 
with other features (like color). I'll add things like


  \definefontfeature[default][default][boundingbox=yes]
  \definefontfeature[default][default][boundingbox=background]
  \definefontfeature[default][default][boundingbox=frame]

  \definefontfeature[default][default][boundingbox={background,empty}]
  \definefontfeature[default][default][boundingbox={frame,empty}]

  \definefontfeature[default][default][boundingbox={frame,red,empty}]

as additional (probably never used) featurecreep but for sure will 
forget to document it etc etc


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] footnote placement

2017-07-20 Thread Meer, Hans van der
I did use: \setupnotes[footnote][split=verystrict,scope=page] so I guess there 
is not much hope here.

A related question: the numbering of endnotes is placed in the leftmargin. Is 
there a parameter setting that forces them in the textarea of the page?  I 
tried \setupnotes[endnote][location=text] but without success.

Hans van der Meer




On 20 Jul 2017, at 21:33, Hans Hagen > 
wrote:

On 7/20/2017 9:14 PM, Meer, Hans van der wrote:
Pablo,
[scope=page] does not help.
I did a few experiments with the following result.
If the footnote is close to the previous page, than obviously the float 
mechanism may decide to put the footnote on the previous page. This happens 
even when the footnote is in the second paragraph of that page. Only when the 
footnote is far enough from the top of the page (I have no inkling how far is 
far enough) will the footnote appear on the current page, as where one expects 
it.
I guess this is a tricky one, but perhaps Hans Hagen will know what to do or 
what to change. I am convinced he will not be afraid of some trickery:-)

if verystrict is not helping there is not much that we can do as tex decides if 
keeping note and reference on one page is possible at all given other 
constraints

(of course there can be a bug in context)

Hans van der Meer
On 20 Jul 2017, at 20:28, Pablo Rodriguez > 
wrote:

On 07/20/2017 11:16 AM, Meer, Hans van der wrote:
It happens that a footnote generated on a certain page is typeset on
the page preceding it. Rather than that, I would like to force a
footnote to appear either on the page where it is defined or on the
following page. Can such behaviour be enforced?
Currently this is my footnote setup:
\setupnotes   [footnote][split=verystrict]

Hans,

I would add "scope=page", but that would prevent moving the footnote to
the next page.

I don’t know whether this would prevent the footnote to be placed in the
page before where it is defined.

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


--

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

___
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] footnote placement

2017-07-20 Thread Hans Hagen

On 7/20/2017 9:14 PM, Meer, Hans van der wrote:

Pablo,

[scope=page] does not help.

I did a few experiments with the following result.
If the footnote is close to the previous page, than obviously the float 
mechanism may decide to put the footnote on the previous page. This happens 
even when the footnote is in the second paragraph of that page. Only when the 
footnote is far enough from the top of the page (I have no inkling how far is 
far enough) will the footnote appear on the current page, as where one expects 
it.

I guess this is a tricky one, but perhaps Hans Hagen will know what to do or 
what to change. I am convinced he will not be afraid of some trickery:-)


if verystrict is not helping there is not much that we can do as tex 
decides if keeping note and reference on one page is possible at all 
given other constraints


(of course there can be a bug in context)


Hans van der Meer





On 20 Jul 2017, at 20:28, Pablo Rodriguez  wrote:

On 07/20/2017 11:16 AM, Meer, Hans van der wrote:

It happens that a footnote generated on a certain page is typeset on
the page preceding it. Rather than that, I would like to force a
footnote to appear either on the page where it is defined or on the
following page. Can such behaviour be enforced?
Currently this is my footnote setup:
\setupnotes   [footnote][split=verystrict]


Hans,

I would add "scope=page", but that would prevent moving the footnote to
the next page.

I don’t know whether this would prevent the footnote to be placed in the
page before where it is defined.

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
___


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




--

-
  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] footnote placement

2017-07-20 Thread Meer, Hans van der
Pablo,

[scope=page] does not help. 

I did a few experiments with the following result.
If the footnote is close to the previous page, than obviously the float 
mechanism may decide to put the footnote on the previous page. This happens 
even when the footnote is in the second paragraph of that page. Only when the 
footnote is far enough from the top of the page (I have no inkling how far is 
far enough) will the footnote appear on the current page, as where one expects 
it.

I guess this is a tricky one, but perhaps Hans Hagen will know what to do or 
what to change. I am convinced he will not be afraid of some trickery:-)

Hans van der Meer




> On 20 Jul 2017, at 20:28, Pablo Rodriguez  wrote:
> 
> On 07/20/2017 11:16 AM, Meer, Hans van der wrote:
>> It happens that a footnote generated on a certain page is typeset on
>> the page preceding it. Rather than that, I would like to force a
>> footnote to appear either on the page where it is defined or on the
>> following page. Can such behaviour be enforced?
>> Currently this is my footnote setup:
>> \setupnotes   [footnote][split=verystrict]
> 
> Hans,
> 
> I would add "scope=page", but that would prevent moving the footnote to
> the next page.
> 
> I don’t know whether this would prevent the footnote to be placed in the
> page before where it is defined.
> 
> 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
> ___

___
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] footnote placement

2017-07-20 Thread Pablo Rodriguez
On 07/20/2017 11:16 AM, Meer, Hans van der wrote:
> It happens that a footnote generated on a certain page is typeset on
> the page preceding it. Rather than that, I would like to force a
> footnote to appear either on the page where it is defined or on the
> following page. Can such behaviour be enforced?
> Currently this is my footnote setup:
> \setupnotes   [footnote][split=verystrict]

Hans,

I would add "scope=page", but that would prevent moving the footnote to
the next page.

I don’t know whether this would prevent the footnote to be placed in the
page before where it is defined.

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] Unable to switch math fonts

2017-07-20 Thread Pablo Rodriguez
On 07/20/2017 09:38 AM, Kumar Appaiah wrote:
> Hi.
> 
> I'm using the Debian packaged ConTeXt, version 2017.05.15.20170613-2.
> I have the Neo Euler OTF font and mtxrun --script fonts finds it.
> 
> I am unable to get the following to work:
> 
> \definefontfamily [myfamily] [math] [Neo Euler]
> \setupbodyfont[myfamily]
> 
> The above code doesn't build for me with errors in the formula
> portion. However, removing the Neo Euler line makes it work. Moreover,
> this works:
> 
> \definefontfamily [myfamily] [serif] [Neo Euler]
> \setupbodyfont[myfamily]
> 
> But this makes everything, including math, Euler. Could you please help me 
> out?

Hi Kumar,

this seems to work with latest beta:

\definefontfamily [myfamily] [rm] [TeX Gyre Pagella]
\definefontfamily [myfamily] [mm] [Neo Euler]
\setupbodyfont[myfamily]

\starttext
This is plain text.
\startformula
x + y = z
\stopformula
\stoptext

I hope it helps,

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] replace characters with bounding boxes

2017-07-20 Thread Idris Samawi Hamid ادريس سماوي حامد

On Thu, 20 Jul 2017 07:31:00 -0600, Hans Hagen  wrote:


On 7/20/2017 3:04 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:

Dear gang,
 Given a set body font and text, how does one replace all characters of  
that font in that text with the corresponding rectangular bounding  
boxes?
 Once an answer to the above is spelled out: How does one control the  
width of the lines which make up the bounding boxes?


% \showglyphs

or

\definefontfeature[default][default][boundingbox=yes]

\starttext
 \input sapolsky
\stoptext


Many thanks, Hans:

a - Toggling \showglyphs does not have any effect.

b - Is there a way to make the glyphs disappear and show only the  
boxes?*


c- Is there a way to make the boxes frames instead backgrounds?

*\start|stopcolor[white] doesn't work when boundingbox is yes.

Thanks again
Idris
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512
___
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] replace characters with bounding boxes

2017-07-20 Thread Hans Hagen

On 7/20/2017 3:04 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:

Dear gang,

Given a set body font and text, how does one replace all characters of 
that font in that text with the corresponding rectangular bounding boxes?


Once an answer to the above is spelled out: How does one control the 
width of the lines which make up the bounding boxes?


% \showglyphs

or

\definefontfeature[default][default][boundingbox=yes]

\starttext
\input sapolsky
\stoptext

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

[NTG-context] replace characters with bounding boxes

2017-07-20 Thread Idris Samawi Hamid ادريس سماوي حامد

Dear gang,

Given a set body font and text, how does one replace all characters of  
that font in that text with the corresponding rectangular bounding boxes?


Once an answer to the above is spelled out: How does one control the width  
of the lines which make up the bounding boxes?


Thank you in advance.

Best wishes
Idris
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512
___
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] Kerning between primes and left parenthesis (again)

2017-07-20 Thread Hans Hagen

On 7/20/2017 7:18 AM, Mikael P. Sundqvist wrote:
Den 12 juli 2017 10:17 fm skrev "Mikael P. Sundqvist" >:


Dear Hans,

now, in luatex 1.05, that the primes are "constructed" in new manner,
I wonder if there is a way to specify in a goodie file the kerning
between characters, in particular primes and the left parenthesis?

I tried

 kernpairs = {
[0x2032] = {[0x0028] = -1000, }, -- prime and (
 },

but that does not seem to have any effect.

The pre-1.05 modification

 dimensions = {
 default = {
 [0x2044] = { xoffset = 275, width = 600 },
 [0x2032] = { xoffset = 50, width = 290 }, -- prime
 [0x2033] = { xoffset = 50, width = 690 }, -- double
prime
 [0x2034] = { xoffset = 50, width = 1090}, -- triple
prime
 [0x2057] = { xoffset = 50, width = 1490}, --
quadruple prime
 },
 },

(which is a non-optimal way of solving this issue since it has side
effects) does not change anything anymore.

So, is there now a way to do this cleanly now that the mechanism is
changed?

/Mikael


Hi,

should I interpret the silence that this is currently not possible, or 
that you, Hans, is completely fed up with this subject? :-)

you rule out the possibility that i have other things to do

anyway, use

0xFE932

etc instead as primes get remapped

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

[NTG-context] footnote placement

2017-07-20 Thread Meer, Hans van der
It happens that a footnote generated on a certain page is typeset on the page 
preceding it. Rather than that, I would like to force a footnote to appear 
either on the page where it is defined or on the following page. Can such 
behaviour  be enforced? 
Currently this is my footnote setup:
\setupnotes   [footnote][split=verystrict]
\setupnotation[footnote][way=bypage,numberconversion=set 2,headstyle=small]

Hans van der Meer




___
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] Unable to switch math fonts

2017-07-20 Thread Kumar Appaiah
Hi.

I'm using the Debian packaged ConTeXt, version 2017.05.15.20170613-2.
I have the Neo Euler OTF font and mtxrun --script fonts finds it.

I am unable to get the following to work:

\definefontfamily [myfamily] [math] [Neo Euler]
\setupbodyfont[myfamily]

\starttext
This is plain text.
\startformula
x + y = z
\stopformula
\stoptext

The above code doesn't build for me with errors in the formula
portion. However, removing the Neo Euler line makes it work. Moreover,
this works:

\definefontfamily [myfamily] [serif] [Neo Euler]
\setupbodyfont[myfamily]
\starttext
This is plain text.
\startformula
x + y = z
\stopformula
\stoptext

But this makes everything, including math, Euler. Could you please help me out?

Thanks.

Kumar
___
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
___