[NTG-context] Table index is nil

2016-04-17 Thread Brian Ballsun-Stanton
I'm getting (suddenly) an error:
...ext/tex/texmf-context/tex/context/base/mkiv/font-hsh.lua:124: table
index is nil


And I have a bunch of tables:


\placetable[here][tab01]{Kazanlak site numbers, aggregate area and average
area
through through time}{
\setupTABLE[c][each][align=middle,style={\tfx},alignmentcharacter={.},aligncharacter=yes]
\chardef\characteralignmentmode=2
\startCSV
Period,NL,Chl,EBA,LBA,EIA,LIA,RM,LA,BYZ,MA,OTT
Aggregate Area (ha),1.5,2.9,5.0,6.7,21.5,43.3,54.9,31.2,24.4,30.7,94.9
Site Count,3,6,10,7,23,38,23,19,15,21,15
Avg Area (ha),0.5,0.5,0.5,1.0,0.9,1.1,2.4,1.6,1.6,1.5,6.3
\stopCSV
}

The odd thing is that no other chapters of the book (all of which use the
same environment, and many use the same table)

When I comment out the series of tables, the errors go away.
I've just rerun first-setup.sh just out of paranoia. mtx-context |
current version: 2016.04.17 11:56
___
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] Uppercase sharp s

2016-04-17 Thread Wolfgang Schuster

Hans Hagen 
16. April 2016 um 12:38

in the next beta (probably on ftp) there will be s-lingual-de for you 
to play with

1. The name of the function to enable/disable the function has to change
   and I would use a directive as normal way to enable it.

\unexpanded\def\enableuppercasesharps {\overloaduppercase{0xDF}{0x1E9E}}
\unexpanded\def\disableuppercasesharps{\overloaduppercase{0xDF}{0x53,0x53}}

\installtexdirective{fonts.uppercasesharps}\enableuppercasesharps\disableuppercasesharps

\enabledirectives[fonts.uppercasesharps]
%\disabledirectives[fonts.uppercasesharps]

\setupbodyfont[libertine]

\starttext

Buße Busse

BUẞE BUSSE

\WORD{Buße Busse}

\word{BUẞE BUSSE}

\stoptext


2. Can the same function be added to Lua.

\overloaduppercase{0xDF}{0x1E9E}

\starttext

\cldcontext{utf.upper("Buße Busse")}

\cldcontext{utf.lower("Buße Busse")}

\blank

\cldcontext{characters.upper("Buße Busse")}

\cldcontext{characters.lower("BUẞE BUSSE")}

\stoptext


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] Strange behavior with Utopia fonts in math mode

2016-04-17 Thread Wolfgang Schuster

Fabrice Couvreur 
17. April 2016 um 11:16
Hello,
I compiled this file with a strange exit for mathematical formula.

What do you mean with "strange exit"?

What's missing in my file ?
You get the necessary font when you use the "--fonts=mathdesign" for 
first-setup, e.g.


sh first-setup.sh --fonts=mathdesign

and your example can be reduced to (you can drop encoding=...)

%% begin example
\loadtypescriptfile[mathdesign]

\definetypeface[mainface][rm][serif][palatino] [default]
\definetypeface[mainface][ss][sans] [helvetica][default][rscale=auto]
\definetypeface[mainface][mm][math] [utopia]   [default][rscale=auto]

\setupbodyfont[mainface,12pt]

\starttext

\input knuth

\startformula
   f(x) = \sum_{i=1}^n a_i x^i
\stopformula

\stoptext
%% end example

There are a few mistakes in the output because the mapping from glyphs 
to unciode

values for the math font has to be improved.

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] Strange behavior with Utopia fonts in math mode

2016-04-17 Thread Hans Hagen

On 4/17/2016 11:16 AM, Fabrice Couvreur wrote:

Hello,
I compiled this file with a strange exit for mathematical formula.
What's missing in my file ?
Thank you.
Fabrice

\loadtypescriptfile[mathdesign]
\usetypescriptfile[utopia]

\definetypeface[mainface][rm]
[serif][palatino][default][encoding=texnansi]


you schould set up the previous as utopia


\definetypeface[mainface][ss][sans]
[helvetica] [default][encoding=texnansi] [rscale=auto]
\definetypeface[mainface][mm]
[math] [utopia] [default] [rscale=auto]


and this one as fourier (math needs some font parameters) using a lfg 
file that you refer to



\setupbodyfont[mainface,12pt]


\starttext

\input knuth

\startformula
f(x) = \sum_{i=1}^n a_i x^i
\stopformula

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




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | 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] Fourier install fonts

2016-04-17 Thread Hans Hagen

On 4/15/2016 10:51 AM, Fabrice Couvreur wrote:


Hi Hans,
I renounce the Fourier install fonts, but instead, I will use the fonts
Utopia.
The following file produces the error :


you need both

utopia for text (normal setup, referring to afm names (no tfm/vf needed 
there)


fourier for math (using a virtual font setup, like px-math.lfg (probably 
you can just copy that one and replace some names to fourier names as it 
uses standard tex encoding)


Hans



fab@debian:~$ context ntg44.tex

resolvers   | trees | analyzing 'home:texmf'
mtx-context | run 1: luatex
--fmt="/home/fab/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en"
--jobname="ntg44"
--lua="/home/fab/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui"
--no-parse-first-line --c:currentrun=1 --c:fulljobname="./ntg44.tex"
--c:input="./ntg44.tex" --c:kindofrun=1 --c:maxnofruns=9 "cont-yes.mkiv"
This is LuaTeX, Version beta-0.90.0 (TeX Live 2016)
  system commands enabled.

resolvers   > trees > analyzing 'home:texmf'
open source > 1 > 1 >
/home/fab/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv

ConTeXt  ver: 2016.03.26 13:51 MKIV beta  fmt: 2016.4.12  int:
english/english

system  > 'cont-new.mkiv' loaded
open source > 2 > 2 >
/home/fab/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv
close source> 2 > 2 >
/home/fab/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv
system  > files > jobname 'ntg44', input './ntg44', result 'ntg44'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > 2 > 3 > /home/fab/ntg44.tex
fonts   > typescripts > unknown library 'utopia'
open source > 3 > 4 >
/home/fab/context/tex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv
close source> 3 > 4 >
/home/fab/context/tex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv
fonts   > preloading modern-designsize (mono)
fonts   > typescripts > unknown library 'modern-designsize'
fonts   > 'fallback modern-designsize tt 12pt' is loaded
open source > 3 > 5 >
/home/fab/context/tex/texmf-context/tex/context/sample/common/knuth.tex
close source> 3 > 5 >
/home/fab/context/tex/texmf-context/tex/context/sample/common/knuth.tex

tex error   > tex error on line 23 in file /home/fab/ntg44.tex: !
Math error: parameter \Umathaxis\textstyle is not set


\stopdisplaymath ...math \Ucheckedstopdisplaymath
   \par \ifvmode \ifcase
\c_s...
\strc_formulas_stop_formula ...formula \endcsname
   \dostoptagged
\dostoptagge...
l.23 \stopformula


13 \appendtoks \rm \to \everymathematics
14 \setupmathematics
15   [lcgreek=normal, ucgreek=normal]
16
17 \starttext
18
19 \input knuth
20
21 \startformula
22{\Bbb P}(x) = \sum_{i=1}^n α_i x^i
23 >>  \stopformula
24
25 \stoptext
26
27
28 %%%
29 %%% Local Variables:
30 %%% Mode: context
31 %%% End:
32


?




\usetypescriptfile[utopia]

\definetypeface[mainface][rm]
[serif][palatino][default][encoding=texnansi]
\definetypeface[mainface][ss][sans]
[helvetica] [default][encoding=texnansi] [rscale=auto]
\definetypeface[mainface][mm]
[math] [utopia] [default] [rscale=auto]

\setupbodyfont[mainface,12pt]

\appendtoks \rm \to \everymathematics
\setupmathematics
   [lcgreek=normal, ucgreek=normal]

\starttext

\input knuth

\startformula
{\Bbb P}(x) = \sum_{i=1}^n α_i x^i
\stopformula

\stoptext




Thanks,
Fabrice



2016-04-12 13:59 GMT+02:00 Hans Hagen >:

On 4/12/2016 1:19 PM, Fabrice Couvreur wrote:


Hi Hans,
I downloaded the fonts in
/home/fab/texmf/fonts/opentype/fourier-GUT then:

fab@debian:~$ mtxrun --script fonts --list --all --pattern=*fourier*

resolvers   | trees | analyzing 'home:.texlive2015/texmf-config'
resolvers   | trees | analyzing 'home:texmf'
fourieralternateblack   fourieralternateblack
fourier-alt-black.afm
fourieralternateboldfourieralternatebold
fourier-alt-bold.afm
fourieralternatebolditalic  fourieralternatebolditalic
fourier-alt-boldita.afm
fourieralternatebolditalicbold  fourieralternatebolditalic
fourier-alt-boldita.afm
fourieralternateitalic  fourieralternateitalic
fourier-alt-ita.afm
fourieralternateitalicnormalfourieralternateitalic
fourier-alt-ita.afm
fourieralternateroman   fourieralternateroman
fourier-alt.afm
fourieralternateromannormal

[NTG-context] Strange behavior with Utopia fonts in math mode

2016-04-17 Thread Fabrice Couvreur
Hello,
I compiled this file with a strange exit for mathematical formula.
What's missing in my file ?
Thank you.
Fabrice

\loadtypescriptfile[mathdesign]
\usetypescriptfile[utopia]

\definetypeface[mainface][rm]
   [serif][palatino][default][encoding=texnansi]
\definetypeface[mainface][ss][sans]
   [helvetica] [default][encoding=texnansi] [rscale=auto]
\definetypeface[mainface][mm]
   [math] [utopia] [default] [rscale=auto]

\setupbodyfont[mainface,12pt]


\starttext

\input knuth

\startformula
   f(x) = \sum_{i=1}^n a_i x^i
\stopformula

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