[NTG-context] About \definefallbackfamily

2016-08-27 Thread Jose Luis Arellano
Hello guys, am working with some basic maths here and the latest version of
ConTexT. However, i think something has changed in ConTexT, because the
following MWE, from Aditya, was working fine before:

\definefontfamily[mainface][rm][Minion Pro]
\definefallbackfamily[mainface][math][Minion
Pro][math:lowercaseitalic][force=yes]
\definefallbackfamily[mainface][math][Minion
Pro][math:digitsnormal][force=yes]
\definefontfamily[mainface][math][TeX Gyre Pagella Math]
\setupbodyfont[mainface]

\starttext
\startformula
c^2 = a^2 + b^2
\stopformula
\stoptext

Now, the italic font of Minion Pro is replaced for regular.
Well, i have two questions:

1) How can i set the Minion Pro italic font for math?
2) Is there any way to set the italic font for numbers too in math?

Thank you guys.
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Problems with indexing (+feature requests)

2016-08-27 Thread Mohammad Hossein Bateni
This is great, Wolfgang!

On Mon, Aug 22, 2016 at 5:06 AM, Wolfgang Schuster <
schuster.wolfg...@gmail.com> wrote:

> Mohammad Hossein Bateni 
> 22. August 2016 um 10:49
> Same problem, item (6) of email below, observed with arabtype font.  See
> attached.  MWE follows.
>
> \definefontfamily [myfamily] [serif] [arabictypesetting] [features=arabic]
> \setupbodyfont[myfamily]
> \setupalign[r2l]
> \setupdirections[bidi=global,method=two]
>
> \setupmixedcolumns[register][direction=reverse]
>
> When you have a font with large ascender/descender you can increase the
> linespacing (line key) or change the height/depth (height and depth keys)
> values for \strut.
>
> \startsetups[register:interlinespace]
> \setupinterlinespace[height=0.6,depth=0.4,line=3.2ex]
> \stopsetups
>
> \setupmixedcolumns
>   [index]
>   [direction=reverse,
>setups=register:interlinespace]
>
> 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] \restorecounter ignores first save

2016-08-27 Thread Wolfgang Schuster

Hi Hans,

the save/restore state for the counter in the example is ignored.

 begin example
\enabletrackers[structures.counters]

\definecounter[test]

\starttext

\incrementcounter[test]
\convertedcounter[test]

\dorecurse{10}
  {\savecounter[test]
   \incrementcounter[test]
   \convertedcounter[test]
   \restorecounter[test]
   \par}

\stoptext
 end example


The problem is the check for the table size in the counters.restore 
function because after the first save the size of the table is 1:


function counters.restore(name)
local cd = counterdata[name]
if not cd then
report_counters("invalid restore, no counter %a",name)
return
end
local saved = cd.saved
if not saved then
-- is ok
elseif #saved > 1 then
cd.data = remove(saved)
else
report_counters("restore without save for counter %a",name)
end
end



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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] align text and formula

2016-08-27 Thread Hans Hagen

On 8/25/2016 4:07 PM, Wolfgang Schuster wrote:

Henri Menke 
25. August 2016 um 15:31
Hi Jan,

unfortunately, these commands are in no book. I just looked them up in
the ConTeXt source. However, these two books helped me a lot in
improving my understanding of TeX and ConTeXt. They are definitely
worth their money!

The TeXbook by Donald E. Knuth https://amzn.com/0201134489
Programming in Lua by Roberto Ierusalimschy https://amzn.com/859037985X

Other good books for TeX are

  - TeX by Topic (https://www.ctan.org/pkg/texbytopic) and
  - TeX for the Impatient (https://www.ctan.org/pkg/impatient)


the next upload (not today) will provide a specifier so that one can 
make helpers


\starttext \showframe

\setupformulas[align=flushleft]

\startformula
\startalign[m=2,align={middle}]
\NC \text to 6cm{} \NC x = 0 \NR
\stopalign
\stopformula

\startformula
\startalign[m=2,align={middle}]
\NC \text to 6cm{One\hfill}   \NC a = 1 \NR
\NC \text to 6cm{One Two\hfill}   \NC b = 2 \NR
\NC \text to 6cm{One Two Three\hfill} \NC c = 3 \NR
\stopalign
\stopformula

\startformula
\startalign[m=2,align={left}]
\NC \text to 6cm{One\hfill}   \NC a = 1 \NR
\NC \text to 6cm{One Two\hfill}   \NC b = 2 \NR
\NC \text to 6cm{One Two Three\hfill} \NC c = 3 \NR
\stopalign
\stopformula

\blank[3*big]

\startformula
\startalign[m=2,align={middle}]
\NC \text to 6cm{} \NC x = 0 \NR
\stopalign
\stopformula

\startformula
\startalign[m=2,align={middle}]
\NC \text to 6cm{One}   \NC a = 1 \NR
\NC \text to 6cm{One Two}   \NC b = 2 \NR
\NC \text to 6cm{One Two Three} \NC c = 3 \NR
\stopalign
\stopformula

\startformula
\startalign[m=2,align={left}]
\NC \text to 6cm{One}   \NC a = 1 \NR
\NC \text to 6cm{One Two}   \NC b = 2 \NR
\NC \text to 6cm{One Two Three} \NC c = 3 \NR
\stopalign
\stopformula

\blank[3*big]

\startformula
\startalign[m   =2,align={middle}]
\NC \text{} \NC x = 0 \NR
\stopalign
\stopformula

\startformula
\startalign[m=2,align={middle}]
\NC \text{One}   \NC a = 1 \NR
\NC \text{One Two}   \NC b = 2 \NR
\NC \text{One Two Three} \NC c = 3 \NR
\stopalign
\stopformula

\startformula
\startalign[m=2,align={left}]
\NC \text{One}   \NC a = 1 \NR
\NC \text{One Two}   \NC b = 2 \NR
\NC \text{One Two Three} \NC c = 3 \NR
\stopalign
\stopformula

\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Bug with standalone ?

2016-08-27 Thread Fabrice Couvreur
Hello Wolfgang,
This is an unfortunate forgetting on my part, sorry.
However, I noticed another problem with standalone context and not with
texlive 2016

2  Question 1
3  Question 2

instead of

1  Question 1
2  Question 2

Thank you
Fabrice

2016-08-27 6:54 GMT+02:00 Wolfgang Schuster :

> Fabrice Couvreur 
> 27. August 2016 um 00:15
> Hello,
> If I compile the file with context from texlive 2016, no problem. But with
> context from standalone, I get an error ("tex error on line 1 in file
> /home/fab/ntg53.tex: ! Missing } inserted")
> thank you,
>
> You’re missing a \stopmidaligned after the table.
>
> 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___