[NTG-context] first-setup.bat weirdness II: xetex etc.

2016-07-19 Thread Idris Samawi Hamid ادريس سماوي حامد

Dear syndicate,

As mentioned in my other message, "first-setup.bat weirdness I: cloned  
system" I've now switched to the first-setup.bat way of updating. Two  
pieces of weirdness on the main machine:


1. mtx-context | running command: xetex --ini --etex --8bit  
cont-en.mkii \dump


makes vista complain:

=
xetex.exe - Unable to Locate Component

This application has failed to start because xetex.dll was not found.

=

Pressing OK, xetex crashes and things continue until

2. mtx-context | running command: xetex --ini --etex --8bit  
cont-nl.mkii \dump


Then the same error occurs.

After xetex crashes things continue briefly till first-setup.bat exits.

Everything works fine, except that every now and then the following  
happens when I run a file:


=
This is LuaTeX, Version 0.97.0 (TeX Live 2016/W32TeX)
 system commands enabled.
.
<*>
 cont-yes.mkiv
?
=

A fresh run of first-setup.bat makes the problem go away but it is  
annoying. After getting even more weirdness when cloning to another  
machine -- see "first-setup.bat weirdness I: cloned system" -- it seems  
appropriate to put this one out to the forum as well.


Any explanations and advice would be appreciated. Never had these problems  
using when updating manually... Thanks in advance and


Best wishes
Idris
--
Idris Samawi Hamid
Professor of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] first-setup.bat weirdness I: cloned system

2016-07-19 Thread Idris Samawi Hamid ادريس سماوي حامد

Dear gang,

In the past I updated to the latest via installing cont-tmf.zip (and  
luatex.exe if needed) manually, but recently I switched to  
first-setup.bat. I got things working on one 64-bit machine (vista), and  
want to set up context on another (windows7), also 64-bit. Normally all I  
need to to do is zip/rar the tree, move it to the second machine, and  
voila, I'm up and running. This time, however, it doesn't work; when I run  
a file I get


=
This is LuaTeX, Version 0.97.0 (TeX Live 2016/W32TeX)
 system commands enabled.
.
<*>
 cont-yes.mkiv
?
=

as well as a complaint from windows7:

=
Assertion failed!

Program: C:\\luatex.exe
File: variable.c
line: 36

Expression: kpse -> program_name
=

What do these two complaints each mean?

After this, I tried running first-setup.bat again on the windows7 machine,  
got the following errors:


=
mtx-context | running command: pdftex --ini --etex --8bit cont-en.mkii  
\dump
warning: c:/ConTeXt/tex/texmf/web2c/texmf.cnf:49: (kpathsea) No cnf value  
on lin

e: OSFONTDIR =.
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/W32TeX)  
(INITEX)

 \write18 enabled.
entering extended mode
! I can't find file `cont-en.mkii'.
<*> cont-en.mkii
 \dump
(Press Enter to retry, or Control-Z to exit)
Please type another input file name:
[:]
mtx-context | running command: pdftex --ini --etex --8bit cont-nl.mkii  
\dump
warning: c:/ConTeXt/tex/texmf/web2c/texmf.cnf:49: (kpathsea) No cnf value  
on lin

e: OSFONTDIR =.
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/W32TeX)  
(INITEX)

 \write18 enabled.
entering extended mode
! I can't find file `cont-nl.mkii'.
<*> cont-nl.mkii
 \dump
(Press Enter to retry, or Control-Z to exit)
Please type another input file name:
=

Since I don't use mkii I ignored these errors and moved on, although both  
files are there in the tree - and I do not get this error on the  
original/vista machine. In any case, when I now run a file I get the same  
two luatex errors as at the beginning of this message.


What's going on here? How do I fix it? Thanks in advance and

Best wishes
Idris
--
Idris Samawi Hamid
Professor of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] alignment problem in a table

2016-07-19 Thread Alan BRASLAU
On Tue, 19 Jul 2016 15:19:11 +0200
Fabrice Couvreur  wrote:

> The third column of matrix is not centered vertically and
> horizontally.

You should note that it is NECESSARY to present a MINIMAL Working
Example, that is stripped-down to ONLY the minimum necessary to show a
problem, if you want anyone to look at it. This sometimes takes a bit of
work, but the process can also be revealing of errors that one might
make and not see in a more complicated example.

I am pointing this out as I have seen many non-minimal questions posted.

Alan
___
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] alignment problem in a table

2016-07-19 Thread Wolfgang Schuster

Fabrice Couvreur 
19. Juli 2016 um 15:19
Hello,
The third column of matrix is not centered vertically and horizontally.

Add the following two lines to your example

\setupformula  [option=frame]
\setupformulaframed[offset=0pt]

and you can see the third matrix isn’t centered (the small gab on the 
left side is the cell offset)

because it’s too wide for the cell.

BTW: It’s good style to end *each* matrix line with \NR.

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
___

[NTG-context] alignment problem in a table

2016-07-19 Thread Fabrice Couvreur
Hello,
The third column of matrix is not centered vertically and horizontally.
thank you,
Fabrice


\setupbodyfont[pagella,11pt]

\definemathmatrix
  [pmatrix]
  [left={\left(\,},right={\,\right)}]

\define[3]\coef{\math{#1_{#2, #3}}\autoinsertnextspace}

\startsetups[table:initialize]
\setupTABLE[offset=0.8ex,width=0.25\textwidth]
\setupTABLE[row][first]
   [background=color,backgroundcolor=lightgray]
\setupTABLE[start][align={middle,lohi}]
\stopsetups

\starttext

{\bf Matrices particulières}

\startlinecorrection[blank]

\startmidaligned

\switchtobodyfont[10pt]

\bTABLE[setups=table:initialize]

  \bTR
\bTD {\bf Matrice ligne} \\ Dimension \math{\left(1\times p\right)}
\eTD
\bTD {\bf Matrice colonne} \\ Dimension \math{\left(n\times 1\right)}
\eTD
\bTD {\bf Matrice carrée} \\ Dimension \math{\left(n\times n\right)}
\eTD
\bTD {\bf Matrice unité \math{\bi I_n}} \\ Dimension
\math{\left(n\times n\right)}\eTD
  \eTR

  \bTR
\bTD \startformula
 \startpmatrix
   \NC \coef{a}{1}{1} \NC \coef{a}{1}{2} \NC \dots \NC
\coef{a}{1}{p}
 \stoppmatrix
 \stopformula
\eTD
\bTD \startformula
 \startpmatrix
   \NC \coef{a}{1}{1} \NR
   \NC \coef{a}{2}{1} \NR
   \NC\dots   \NR
   \NC \coef{a}{n}{1}
 \stoppmatrix
 \stopformula
\eTD
\bTD \startformula
 \startpmatrix
\NC \coef{a}{1}{1} \NC \coef{a}{1}{2} \NC \dots \NC
\coef{a}{1}{n}\NR
\NC \coef{a}{2}{1} \NC \coef{a}{2}{2} \NC \dots \NC
\coef{a}{2}{n}\NR
\NC \dots  \NC \dots  \NC \dots \NC \dots \NR
\NC \coef{a}{n}{1} \NC \coef{a}{n}{2} \NC \dots \NC \coef{a}{n}{n}
 \stoppmatrix
 \stopformula
\eTD
\bTD \startformula
 \startpmatrix
 \NC 1 \NC 0 \NC \dots \NC 0 \NR
 \NC 0 \NC 1 \NC \dots \NC 0 \NR
 \NC \dots \NC \dots \NC \dots \NC \dots \NR
 \NC 0 \NC 0 \NC \dots \NC 1
 \stoppmatrix
 \stopformula
\eTD
  \eTR

\eTABLE

\stopmidaligned

\stoplinecorrection

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

Re: [NTG-context] emergency stretch not taken in account in some cases

2016-07-19 Thread josephcanedo
Thanks a lot Wolfgang for the simpler code, I’ll replace mine with your 
suggestion, in actual document the margins width are much larger and font 
smaller too.

I use binaries on Win64 platform (installed using command line method: 
first-setup.bat --modules=all):


$ ls -l $(which luatex.dll)
-rwxr-xr-x 1 Jo Administrateurs 9567232 Jul 11 22:29 
/c/ConTeXt/test/tex/texmf-win64/bin/luatex.dll 


$ luatex --version
This is LuaTeX, Version 0.97.0 (TeX Live 2016/W32TeX)


$ context --version
mtx-context | current version: 2016.07.18 16:46





From: schuster.wolfg...@gmail.com
Sent: ‎Tuesday‎, ‎July‎ ‎19‎, ‎2016 ‎12‎:‎10‎ ‎AM
To: ntg-context@ntg.nl








josephcan...@gmail.com

18. Juli 2016 um 23:21


Dear all,




In some cases specifying \setupalign[stretch] does not seem to have any effect 
with latest betas (live, 2016.06.20 22:14 version are fine, but 2016.07.18 is 
not), and the output has now overfulls instead of (admitedly a bit large) 
underfulls.




Attached  simple (albeit bit extreme) MWE. Sorry for the relatively large MWE 
but could not figure out how to make it shorter.




emergency_stretch.pdf produced with latest beta (updated with first-setup.bat 
today).

emergency_stretch_ok.pdf produced with 2016.06.20 22:14 version.
I can’t reproduce your problem but justified text isn’t the best option in 
narrow columns.

Below is a simplified version of your code which doesn’t use the parent setting 
from margindata and marginframed setups, there is also no need to set the 
alignment twice and marginframed has no method key (the source is wrong).

\definemargindata
  [InOuter]
  [method=first,
   location=outer,
   margin=margin,
   width=\outermarginwidth,
   style=\tf,
   stack=continue,
   align={normal,hanging,morehyphenation,hz,verytolerant,stretch}]

\definemargindata
  [InInner]
  [method=first,
   location=inner,
   margin=margin, 
   width=\innermarginwidth,
   style=\tf,
   align=outer]

\definemarginframed[InOuter]
\definemarginframed[InInner]

%\setuplayout[width=12cm,rightmargin=4cm]

\starttext

Foo \InOuter{\input knuth } Bar.

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