[NTG-context] \smash broken in mkiv

2012-08-19 Thread Dominik Leopold Forkert
Hi,

In the following minimal example

\startformula
P = \left(\vphantom{\sum}\smash{\sum_{\startsubstack
1 \le i \le p \NR
1 \le j \le q \NR
1 \le k \le r \NR
\stopsubstack}}
a_{ij}b_{jk}c_{ki}
\right)
\stopformula

\smash does not work properly in mkiv – in mkii it runs just fine!

Best regards,
Dominik
___
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] subformulas: error in latest beta

2012-08-19 Thread Hans Hagen

On 18-8-2012 21:04, Andreas Mang wrote:

\startsubformulas[eq:ax=b]

\placeformula
\startformula \startalign
\NC a_1 x + b_1 y \NC = c_1 \NR[+][a]
\NC a_2 x + b_2 y \NC = c_2 \NR[+][b]
\stopalign \stopformula
\stoptext


You can put this in cont-new.mkiv (after \unprotect):

\def\strc_formulas_handle_sub_numbering
  {\let\strc_formulas_handle_sub_numbering\relax % else error
   \doiftextelse\currentsubformulasuffix
 {\strc_counters_setown_sub\v!formula\plustwo\currentsubformulasuffix}
 {\strc_counters_increment_sub\v!formula\plustwo}%
   \placecurrentformulanumber}




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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] MetaPost Page height

2012-08-19 Thread Hans Hagen

On 18-8-2012 14:18, Troy Henderson wrote:

The follow code produces a PDF whose page height is too large (i.e., is not
tight enough around the graphic).  How can I get this the height to be as
tight as the width?

\startMPpage
bboxmargin:=0;
label(btex foo etex,origin);
\stopMPpage

Thanks in advance,


This is nedeed an annoying side effect. It has to do with the fact that 
a page gets a topskip (by default) and it happens that this text is  
topskip so it gets moved down in the page builder. I've added an option 
to the makeup commands ( location=top ). Mp pages are fitting pages and 
these are makeups. So, the next beta will behave better (for tex as well 
as mp pages).


In practice topskip will not kick in that often as MPpages are normally 
larger. Compare


\startMPpage
label(btex foo etex,origin) ysized 11pt ;
\stopMPpage

\startMPpage
label(btex foo etex,origin) ysized 10pt ;
\stopMPpage


\startMPpage
label(btex foo etex,origin) ysized 9pt ;
\stopMPpage



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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] MetaPost Page height

2012-08-19 Thread Troy Henderson
Thanks Hans.
___
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] Footer text style

2012-08-19 Thread Sietse Brouwer
Lukáš wrote:
 Added to http://wiki.contextgarden.net/Command/setuppagenumbering as an
 example.

Thanks! That is greatly appreciated.

 (BTW: Any idea how to make wiki-contex-source-compiler show the page number,
 if *really* wanted - i.e. in this case?)

\showframe[] does the trick: when an empty options argument [] is
given, \showframe only draws a green edge around the page boundary.
(When no arguments are given, OTOH, a frame is drawn around all areas.
See http://wiki.contextgarden.net/Command/showframe .)

NB: \showframe seems to be broken in the wiki's mkiv installation,
which is old. The next example draws no frame, but if you remove the
mode=mkii then all is well. It works with both mkii and the latest
beta on my local machine.
context mode=mkiv
\showframe
asdf
/context

Cheers,
Sietse
___
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] Project automatic lookup for included directories

2012-08-19 Thread Sietse Brouwer
A little experimentation shows the lookup order is as follows, from
highest to lowest priority:
current directory,
parent,
grandparent,
whatever is in \usepath.

 What is the default lookup of \environment? I thought it were at least one
 level up, but I'm not sure.

current directory, parent directory, grandparent

 Suppose having 3 files:

 _e-Geom.mkiv
 ../_e-Geom.mkiv
 ../../_e-Geom.mkiv

 Which of them will be used when I write '\environment _e-Geom.mkiv' and

 a) I specify explicitly \usepath[{../..}]?
 b) I don't use '\usepath'?

_e-Geom.mkiv will be used in both cases.

Does anybody know if there is a way to specify a lookup path that has
higher priority than the default lookups? I don't know one myself.

Cheers,
Sietse
___
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] running context mcommon.tex

2012-08-19 Thread Sietse Brouwer
Hi John,

mcommon.tex is an environment file used by mreadme.tex. (If you look
inside mcommon.tex, you'll see it starts with \startenvironment) This
is why it produces no pages of output. For more on environment files,
see

http://wiki.contextgarden.net/Command/startenvironment
http://wiki.contextgarden.net/Project_structure
and the reference manual
(latest version linked at http://wiki.contextgarden.net/manual_being_revised)

Cheers,
Sietse
___
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
___