Re: [NTG-context] Opentype features and space after comma in math mode

2017-06-01 Thread Pablo Rodriguez
On 06/02/2017 06:40 AM, Jose Luis Arellano wrote:
> Dear Wolfgang.
> 
> In recents versions of Context, what is the correct way to use lnum
> feature in maths?
> 
> This doesn't works anymore:
> 
> \definefontfeature[mathdigits][default][mode=base,tnum=yes,lnum=yes]

José Luis,

I think that line should read:

\definefontfeature[mathdigits][mode=base,tnum=yes,lnum=yes]

But without a sample, I’m afraid I cannot test it.

Just in case it might 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] Opentype features and space after comma in math mode

2017-06-01 Thread Jose Luis Arellano
Dear Wolfgang.

In recents versions of Context, what is the correct way to use lnum feature
in maths?

This doesn't works anymore:

\definefontfeature[mathdigits][default][mode=base,tnum=yes,lnum=yes]
\definefallbackfamily[mainface][math][...][preset=math:digitsnormal,features
=mathdigits]

Thanks in advance.

2016-08-29 19:31 GMT-03:00 Jose Luis Arellano :

> Thanks 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] Math mode: Vertical space between cases.

2017-06-01 Thread Jose Luis Arellano
Dear list.
How can I increase vertical space between cases?

\startformula
f(x)=
\startmathcases[style=\displaystyle]
\NC \frac{3}{10}\;, \NC if \math{x=2} \NR
\NC \frac{k+9}{6}\;, \NC if \math{x=3} \NR
\NC \frac{h}{16}\;, \NC if \math{x=4} \NR
\stopmathcases
\stopformula
___
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] a special kind of notes in each page

2017-06-01 Thread Pablo Rodriguez
Hans,

I have a document http://tex.ousia.tk/hippocratic-oath.pdf (source as
attachment to the PDF document itself).

The special kind of notes are the first group in two columns. I need
that their space and location in page are calculated by the notes
mechanism. And also that the notes mechanism selects the range of notes
that belong to the page.

I don’t need any reference, not to note number or to line number. Since
it is a vocabulary list, what I need is a minimal register with
"indicator=no, before=, after=".

So it would be possible to have well-balanced columns and words
alphabetically sorted, which is essential in a vocabulary.

I guess that \definenote[NAME][alternative=register] and
\setupregister[NAME][indicator=no, before=, after=] could be a good way
to invoke these page-related vocabularies.

Would it be possible to have such a feature? This would the way to have
page vocabularies.

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] slashes in paths (Lua code)

2017-06-01 Thread Pablo Rodriguez
On 06/01/2017 05:47 AM, Akira Kakuto wrote:
>> Directories are a problem here. I mean, 
>> \shatwo{Desktop/i-context.pdf}
>> cannot work in Windows.
> 
> Here both of your example and an example by Hans
> worked fine on Windows.
> Note that
> \shatwo{Desktop/i-context.pdf}
> works only if the current directory is your %USERPROFILE%.

Many thanks for your reply, Akira.

I didn’t check my code on Windows (all my computers at home run Linux).
I’m suprised that it worked.

And thanks for warning about the path and %USERPROFILE%. Of course,
ConTeXt and LuaTeX do magic, but organizing files is a task that belongs
to the user ;-).

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] slashes in paths (Lua code)

2017-06-01 Thread Pablo Rodriguez
On 05/31/2017 10:00 PM, Hans Hagen wrote:
> On 5/31/2017 8:51 PM, Pablo Rodriguez wrote:
>> Dear list,
>>
>> I need to add checksums to files I attach to PDF documents.
>> [...]
>> Directories are a problem here. I mean, \shatwo{Desktop/i-context.pdf}
>> cannot work in Windows.
>>
>> Which would be the way to make it work in Windows?

Many thanks for your code, Hans.

Pablo

> \starttext
>  \startluacode
>  local function sha(cmd,name)
>  local f = io.popen(string.format("%s -b %q",cmd,name),"rb")
>  if f then
>  local s = f:read("*a")
>  f:close()
>   -- s = string.longtostring(s)
>  return string.match(s,"%s*([A-Fa-f0-9]+)")
>  end
>  end
> 
>  function document.sha256(name)
>  local ok = sha("sha256sum",name)
>  if ok then
>  context(ok)
>  end
>  end
> 
>  function document.sha512(name)
>  local ok = sha("sha512sum",name)
>  if ok then
>  context(ok)
>  end
>  end
> \stopluacode
> 
> \def\shatwo #1{\ctxlua{document.sha256("#1")}}
> \def\shafive#1{\ctxlua{document.sha512("#1")}}
> 
> \shafive{fd.pdf}
> \shafive{foo/fd.pdf}
> 
> \stoptext


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

[NTG-context] ConTeXt Meeting 2017

2017-06-01 Thread Taco Hoekwater
Hello everybody!

== Announcement ==

The ConTeXt Group and Pragma ADE are looking forward to welcoming you at the 

 11th International ConTeXt Meeting

that will take place on September 11–17, 2017 in Maibach, Germany. 


The meeting will host ConTeXt and LuaTeX developers and users and gives 
you the opportunity to present your results, experiences and ideas on future
development. The presentations will be accompanied by tutorials on different 
ConTeXt and LuaTeX techniques.

Registration is now open.  Direct link to the registration form:

  http://meeting.contextgarden.net/2017/register.shtml

This year’s meeting is sponsored by DANTE e.V., the German TeX User Group. 
Besides the general sponsorship, they also offer an extra discount for any 
Dante members that will attend our meeting. And that is on top of the discount
we offer to our ConTeXt Group members, so we managed to keep the conference
fees quite low.

== Call for submissions ==

We always set a theme for the meeting, and the theme for this meeting is:

 ConTeXt Gardening

If you want to do an on-topic talk submission, there are plenty angles
to take at the theme: Seeding, weeding, fertilising, growing, harvesting,
just to name a few.

But anything at all related to ConTeXt that you would like to share is an 
acceptable subject for a presentation, tutorial, discussion, Q&A session, 
demonstration, workshop, recital, sketch, or sermon.

The programme committee is Hans Hagen and Taco Hoekwater, feel free to email 
them 
with hints and ideas.

== website ==

For the meeting: http://meeting.contextgarden.net
For the Context Group: http://group.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] mathmatrix and grid: followup

2017-06-01 Thread Henri Menke
I just realised that this is fixed in beta.  Thanks!

On Thu, 2017-06-01 at 19:33 +1200, Henri Menke wrote:
> This seems to be quite unimportant to anyone but me.  Bump!
> 
> On Sun, 2017-04-02 at 09:12 +1200, Henri Menke wrote:
> > 
> > I haven’t bumped this in a long time...
> > 
> > On 01/24/2017 11:57 PM, Henri Menke wrote:
> > > 
> > > 
> > > Bump
> > > 
> > > On 01/06/2017 10:33 AM, Henri Menke wrote:
> > > > 
> > > > 
> > > > Bump and (belated) Happy New Year!
> > > > 
> > > > On 12/10/2016 10:37 AM, Henri Menke wrote:
> > > > > 
> > > > > 
> > > > > Bump
> > > > > 
> > > > > On 11/27/2016 07:45 PM, Henri Menke wrote:
> > > > > > 
> > > > > > 
> > > > > > Bump
> > > > > > 
> > > > > > On 11/22/2016 02:18 PM, Henri Menke wrote:
> > > > > > > 
> > > > > > > 
> > > > > > > Dear list,
> > > > > > > 
> > > > > > > some time ago I asked about the interplay of mathmatix with grid 
> > > > > > > typesetting: https://
> > > > > > > ma
> > > > > > > ilman.ntg.nl/pipermail/ntg-context/2016/087018.html
> > > > > > > 
> > > > > > > I noticed that when the grid is enabled, the height of a 
> > > > > > > mathmatrix is rounded down
> > > > > > > which leaves less space above than below.  In my opinion either 
> > > > > > > the height should be
> > > > > > > rounded up or the depth rounded down here.  In the original 
> > > > > > > thread Wolfgang proposed
> > > > > > > using \setupformula[grid=tolerant] and adding a blank line before 
> > > > > > > the formula
> > > > > > > (otherwise
> > > > > > > grid=tolerant is applied to the paragraph before).  This 
> > > > > > > workaround leads to the depth
> > > > > > > being rounded down in the example below which produces a more 
> > > > > > > balanced output.  Could
> > > > > > > this somehow be made the default behaviour or something?  
> > > > > > > Currently it requires the
> > > > > > > user
> > > > > > > to notice that vertical spacing is off and correct it manually, 
> > > > > > > including adding a
> > > > > > > blank
> > > > > > > line before the formula to prevent grid=tolerant being applied to 
> > > > > > > the paragraph.
> > > > > > > 
> > > > > > > Cheers, Henri
> > > > > > > 
> > > > > > > ---
> > > > > > > 
> > > > > > > \setuplayout[grid=yes]
> > > > > > > \showgrid
> > > > > > > 
> > > > > > > \starttext
> > > > > > > 
> > > > > > > \input knuth
> > > > > > > \startformula
> > > > > > >   \vrule % make lineheight and depth visible
> > > > > > >   \startmathmatrix
> > > > > > > \NC A \NR
> > > > > > > \NC B \NR
> > > > > > > \NC C \NR
> > > > > > >   \stopmathmatrix
> > > > > > > \stopformula
> > > > > > > \input tufte
> > > > > > > 
> > > > > > > \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] mathmatrix and grid: followup

2017-06-01 Thread Henri Menke
This seems to be quite unimportant to anyone but me.  Bump!

On Sun, 2017-04-02 at 09:12 +1200, Henri Menke wrote:
> I haven’t bumped this in a long time...
> 
> On 01/24/2017 11:57 PM, Henri Menke wrote:
> > 
> > Bump
> > 
> > On 01/06/2017 10:33 AM, Henri Menke wrote:
> > > 
> > > Bump and (belated) Happy New Year!
> > > 
> > > On 12/10/2016 10:37 AM, Henri Menke wrote:
> > > > 
> > > > Bump
> > > > 
> > > > On 11/27/2016 07:45 PM, Henri Menke wrote:
> > > > > 
> > > > > Bump
> > > > > 
> > > > > On 11/22/2016 02:18 PM, Henri Menke wrote:
> > > > > > 
> > > > > > Dear list,
> > > > > > 
> > > > > > some time ago I asked about the interplay of mathmatix with grid 
> > > > > > typesetting: https://ma
> > > > > > ilman.ntg.nl/pipermail/ntg-context/2016/087018.html
> > > > > > 
> > > > > > I noticed that when the grid is enabled, the height of a mathmatrix 
> > > > > > is rounded down
> > > > > > which leaves less space above than below.  In my opinion either the 
> > > > > > height should be
> > > > > > rounded up or the depth rounded down here.  In the original thread 
> > > > > > Wolfgang proposed
> > > > > > using \setupformula[grid=tolerant] and adding a blank line before 
> > > > > > the formula (otherwise
> > > > > > grid=tolerant is applied to the paragraph before).  This workaround 
> > > > > > leads to the depth
> > > > > > being rounded down in the example below which produces a more 
> > > > > > balanced output.  Could
> > > > > > this somehow be made the default behaviour or something?  Currently 
> > > > > > it requires the user
> > > > > > to notice that vertical spacing is off and correct it manually, 
> > > > > > including adding a blank
> > > > > > line before the formula to prevent grid=tolerant being applied to 
> > > > > > the paragraph.
> > > > > > 
> > > > > > Cheers, Henri
> > > > > > 
> > > > > > ---
> > > > > > 
> > > > > > \setuplayout[grid=yes]
> > > > > > \showgrid
> > > > > > 
> > > > > > \starttext
> > > > > > 
> > > > > > \input knuth
> > > > > > \startformula
> > > > > >   \vrule % make lineheight and depth visible
> > > > > >   \startmathmatrix
> > > > > > \NC A \NR
> > > > > > \NC B \NR
> > > > > > \NC C \NR
> > > > > >   \stopmathmatrix
> > > > > > \stopformula
> > > > > > \input tufte
> > > > > > 
> > > > > > \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
___