[NTG-context] How to \bf for math?

2006-01-15 Thread Mojca Miklavec
Hello,

What exactly is the ConTeXt alternative to LaTeX's \mathbf (switch to
bold or bold italic math fonts)?

(Btw: is it better to use bold or bold italic for typesetting vectors?
We use overrightharpoonup, so I don't know what an international
standard says.)

I understand the main commands for switching the font in text (rm, tt,
ss for family and tf, sl, it, bf, bs, bi, sc + an optional
x/xx/a/b/c/d), but I didn't understand yet what to use for math.

~~~
As an intermezzo: is there any way to ger small caps slanted? \sc will
do the small caps, but \sl switches to normal slanted font (no small
caps) again. I suppose that the current model (set of current font
definitions) doesn't account for the possibility of using small caps
slanted or small caps bold (slanted). Is there any elegant way to do
that, for example by defining new commands such as \scbf, \scit, \scbi
[+ xx/x/a/b/c/d]? (I can still use other tricks to get those fonts,
but some general scheme for using them could be useful for others as
well.)
~~~

I tried to use the examples described in mfonts.pdf, but I can't get
those examples working. (I probably used too few definitions when more
definitions are required at once to make the examples work.)
I also tried the command from one of Adam's articles,
\def\mfunction#1{{\em#1}}, to get italic euler math font, but without
success.

I managed to use bold math as a whole (on the example of iwona which
has different weights of math fonts):
\starttypescript [math] [iwona-heavy] [default]
  \definefontsynonym [Iwona-Math-Letters-Heavy]   [rm-iwonah]
  \definefontsynonym [Iwona-Math-Letters-HeavyItalic] [mi-iwonahi]
  \definefontsynonym [Iwona-Math-Symbols-Heavy]   [sy-iwonahz]
  \definefontsynonym [Iwona-Math-Extension-Heavy] [ex-iwonah]
\stoptypescript
\starttypescript [math] [iwona-heavy] [name]
  \definefontsynonym [MathRoman] [Iwona-Math-Letters-Heavy]
  \definefontsynonym [MathItalic][Iwona-Math-Letters-HeavyItalic]
  \definefontsynonym [MathSymbol][Iwona-Math-Symbols-Heavy]
  \definefontsynonym [MathExtension] [Iwona-Math-Extension-Heavy]
\stoptypescript
\definetypeface [iwona] [mm] [math] [iwona-heavy] [default]

But I can't get ant further than that, so that I could switch between
thin and bold.

I tried
\starttypescript [boldmath] [iwona-heavy] [name]
  \definefontsynonym [MathRomanBold] [Iwona-Math-Letters-Heavy]
...
\starttypescript %[boldmath] [iwona-heavy] [default]
\definebodyfont [boldmath] [mm]
[(bf)mr=MathRomanBold mo 1, ...]
...
and different settings in starttypescript/definebody font ... but no
success at all.

I would like to create some definitions, so that I could easily say
(write a command) I want the light version for regular math and the
regular font for bold math or I want the regular version for regular
and the heavy version for bold math.

Thanks a lot for help,
Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] multiple backgrounds

2006-01-15 Thread Henning Hraban Ramm

Am 2006-01-15 um 09:03 schrieb Peter Münster:


I guess I must use that, but it's not flexible enough (e.g. you can't
*add* some background).

since some weeks, you *can* add some backgrounds:


Cool! :-)
Now I must only find a way to *subtract* a layer, but I guess I can  
manage that with some doifmodes




Grüßlis vom Hraban!
---
http://www.fiee.net/texnique/
http://contextgarden.net
http://www.cacert.org (I'm an assurer)

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] spurious space in cite

2006-01-15 Thread Hans van der Meer

I was typesetting bibliography references with the command
\cite[data][ref]
and then found that a spce preceded the author name; surrounding the  
space with X and Y, it gives

X Yauthor instead of XYauthor

I was able to trace it down to the macro invertedshortauthor in thise  
case, but I suspect the others (invertedauthor,  normalauthor,  
normalshortauthor) will exhibit the same phenomenon.

The macro is:

\def\invertedshortauthor#1#2#3#4#5%
  {\bibdoif{#2}{#2\bibalternative\c!vonsep}%
   #3\bibalternative\c!surnamesep
   \bibdoif{#5}{#5\bibalternative\c!juniorsep}%
   \bibdoif{#4}{#4\unskip}}

tracingmacros shows an empty #2-argument takes the \c!vonsep, in bibl- 
apa.tex defined as a space.


I first wondered if the \bibdoif's shouldn't be replaced by a  
\bibdoifnot.

Anyway, that makes the spurious spaces go away.
But it seems not right, so I investigated the bibdoif's and found the  
following behaviour when calling with empty and nonempty arguments.


bibdoif:\crlf
empty = \bibdoif{}{empty}\crlf
notempty = \bibdoif{x}{notempty}\par
bibdoifnot:\crlf
empty = \bibdoifnot{}{empty}\crlf
notempty = \bibdoifnot{x}{notempty}\par
bibdoifelse:\crlf
empty = \bibdoifelse{}{first}{second}\crlf
notempty = \bibdoifelse{x}{first}{second}\par

Typesetting gives as a result:

bibdoif:
empty = empty
notempty = notempty
bibdoifnot:
empty =
notempty =
bibdoifelse:
empty = first
notempty = first

So I have my doubts about the doif's.


Finally another observation on the typesetting by \cite[data][ref].
When typesetting a reference ending on a period, for example Publ.  
Co. Inc., the result has a double period Publ. Co. Inc..

That looks somewhat silly.

yours sincerely,
dr. H. van der Meer



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] spurious space in cite

2006-01-15 Thread Taco Hoekwater

Hans van der Meer wrote:

I was typesetting bibliography references with the command
\cite[data][ref]
and then found that a spce preceded the author name; surrounding the  
space with X and Y, it gives

X Yauthor instead of XYauthor

I was able to trace it down to the macro invertedshortauthor in thise  
case, but I suspect the others (invertedauthor,  normalauthor,  
normalshortauthor) will exhibit the same phenomenon.


I hate to tell you this because you spent so much time on it, but
this has been adressed in the beta already.


Finally another observation on the typesetting by \cite[data][ref].
When typesetting a reference ending on a period, for example Publ.  Co. 
Inc., the result has a double period Publ. Co. Inc..

That looks somewhat silly.


I'll saee what I can do about that, but it is a bit harder to fix.

Cheers, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] layer placement question

2006-01-15 Thread Henning Hraban Ramm

Another question, regarding layer placement:

\def\bleed{3mm}
\setvalue{LogoHeight}{20mm}
\setvalue{LogoWidth}{60mm}
\setvalue{LogoHOffset}{130mm}

\definelayer[logolayer]
[x=-\bleed, y=-\bleed,
width=\paperwidth, height=\paperheight]

\setlayerframed[logolayer]
[y=-\bleed, x=\dimexpr(\getvalue{LogoHOffset}+\bleed)]
[height=\dimexpr(\getvalue{LogoHeight}+\bleed),
width=\getvalue{LogoWidth},
frame=off, offset=0mm, align=low,
background=color, backgroundcolor=red]{my logo}

I would expect that the x/y coordinates in \setlayer(framed) relate  
to the layer's origin (-3, -3) and thus my logo gets placed at (130,  
-3).
But in fact it's placed at (133, -3), i.e. x starts at 0 instead of  
-3. Why?


Grüßlis vom Hraban!
---
http://www.fiee.net/texnique/
http://contextgarden.net
http://www.cacert.org (I'm an assurer)

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] How to \bf for math?

2006-01-15 Thread Henning Hraban Ramm

What exactly is the ConTeXt alternative to LaTeX's \mathbf (switch to
bold or bold italic math fonts)?


I can't help you here, but did you read http://wiki.contextgarden.net/ 
Bold_Math ?


Grüßlis vom Hraban!
---
http://www.fiee.net/texnique/
http://contextgarden.net
http://www.cacert.org (I'm an assurer)

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] indenting in XML environment

2006-01-15 Thread Christopher G D Tipper

Hi Taco,

I've found the miscreant. In my stylesheet I have
\def\eDroppedCaps
{\DroppedCaps
{} {ptmr8r}
{2.2\baselineskip} {2pt} {\baselineskip} {2}}

and in my XML I have:
\defineXMLcommand [dropped-caps] \eDroppedCaps

and for some reason this screws up all paragraph indenting. Has this  
changed recently, because it used to work?


Christopher


xml-indenting.tex
Description: Binary data
document
body
pdropped-caps /Thus, I came to the conclusion that the designer of a new
system must not only be the implementer and first   
large-scale user; the designer should also write the first 
user manual.
/p
pThe separation of any of these four components would have   
hurt tex/ significantly. If I had not participated fully in
all these activities, literally hundreds of improvements
would never have been made, because I would never have  
thought of them or perceived why they were important.   
/p
pBut a system cannot be successful if it is too strongly 
influenced by a single person. Once the initial design is   
complete and fairly robust, the real test begins as people  
with many different viewpoints undertake their own  
experiments.
/p
/body
/document


On 14 Jan 2006, at 23:09, Taco Hoekwater wrote:


I've created a test file with this appended to your definition:

\defineXMLenvironment[p]{}{\par}
\starttext
\startXMLdata
body
ptext/p
ptext/p
ptext/p
/body
\stopXMLdata
\stoptext

And it nicely indents the second and third paragraph.

I would use
\noindentation }
instead of
{\noindening} }
but both possibilities work out fine here.


o00o
  “Since light travels faster than sound, isn’t that why
   some people appear bright until you hear them speak”
  — Steve Wright


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Figure libraries

2006-01-15 Thread Henning Hraban Ramm

Am 2006-01-15 um 04:15 schrieb David Arnold:


After you run:
figures $ texexec --pdf --use=fig-make --mode=letter  
figlibSection3.xml
are the figures embedded in figlibSection3.pdf? That is, could you  
now remove the files used to create figlibSection3.pdf?


If you see them in the PDF, they're embedded. There's no such like  
linked pictures in a PDF.
(There may be linked media contents like movies, and PDF/X-2 was  
planned for incomplete PDF files, but the latter never got implemented.)




Grüßlis vom Hraban!
---
http://www.fiee.net/texnique/
http://contextgarden.net
http://www.cacert.org (I'm an assurer)

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] postponed processing

2006-01-15 Thread Henning Hraban Ramm

Me again...
I'd like to define an address layer in my environment:

--- start env --

\definelayer[senderlayer]
[x=0mm, y=0mm, width=\paperwidth, height=\paperheight]

\def\Sender#1#2#3{\setvalue{SenderKey#1}{#2}\setvalue{SenderVal#1}{#3}}
\def\GetSenderLine#1{\bTR\bTD\doiftextelse{\getvalue{SenderKey#1}}%
{\getvalue{SenderKey#1}:}{}\eTD\bTD\getvalue{SenderVal#1}\eTD\eTR}

\setlayerframed[senderlayer]
[%corner={right}, location={left,bottom},
x=\dimexpr(\getvalue{LogoHOffset}-\bleed), %\getvalue{LogoHOffset},
y=\getvalue{LogoHeight}] % \dimexpr(\getvalue{LogoHeight}+\topspace)
	[height=46mm, width=\dimexpr(\getvalue{SenderKeyWidth}+\getvalue 
{SenderValueWidth}),

frame=off, offset=none, align={left,top}]{%
\setupTABLE[frame=off]
	\setupTABLE[x][1][width=\getvalue{SenderKeyWidth}, align=left, style= 
{\keystyle\strut}]
	\setupTABLE[x][2][width=\getvalue{SenderValueWidth}, align=right,  
style={\valstyle\strut}]

\bTABLE
\dostepwiserecurse{1}{9}{1}{% count from 1 to 9, step 1
\expanded{\GetSenderLine{\recurselevel}}
}
\eTABLE
}

\def\EnableSender{\setupbackgrounds[rightpage][page]
[background={\currentvalue, senderlayer}]}

--- stop env ---

and use that later in a product/component:

--- start text ---

\Sender{1}{Name}{Hraban}
\Sender{2}{Web}{www.fiee.net}

\EnableSender

--- stop text ---

Of course it doesn't work, because the Sender values aren't set via  
typesetting the address in the environment, and \currentvalue in  
\EnableSender hasn't the right value either.


Holger solves this in his letter style (wiki) via setups.
Is that the best approach?
How else could I postpone the senderlayer processing?
(I guess it would work with some expansion magic, but I'd like to  
stay at ConTeXt's surface as much as possible.)



Grüßlis vom Hraban!
---
http://www.fiee.net/texnique/
http://contextgarden.net
http://www.cacert.org (I'm an assurer)

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] last natural table column longer

2006-01-15 Thread Vit Zyka

Hello Wizards,

my multi page (and multicolumn) table exceeds the last page by 2 rows. 
Is there a way to make last column a bit longer? Here is a minimal example:


--
\startbuffer[table]
\bTABLE[split=yes]
  \dorecurse{138}{\bTR\bTD cell #1\eTD\eTR}
\eTABLE
\stopbuffer

\starttext
\startcolumns
  \getbuffer[table]
\stopcolumns
\stoptext
--

Thanks
Vit
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] strange stretching with \blank[...]

2006-01-15 Thread Taco Hoekwater

Hi,

Peter Münster wrote:

But \blank[big,big] is working right.

It seems, that we should replace all 2*big by big,big in core-sec.tex


I regard this a bug in the definition of 2*big. I'm not sure
how many old documents will break if it is fixed, though. The
correct definition is:

 \defineblankmethod
 [2*big]
 {\addblankskip+{\bigskipamount}{\openlineheight}%
  \addblankskip+{\bigskipamount}{\openlineheight}}

The current definition is:

 \defineblankmethod
 [2*big]
 {\addblankskip+{2\bigskipamount}{2\openlineheight}}%

but that does not copy the stretch and shrink parts.

TeX is a bit stupid come to skip assignments, after

  \skip0=5pt plus 10pt minus 10pt
  \skip1=2\skip0

\skip0 will be *exactly* 10pt, without any glue components.

Cheers, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] MPinclusions

2006-01-15 Thread Hans Hagen

Hans van der Meer wrote:


I thought to incrementally add to MPinclusions by successive blocks

\startMPinclusions
..
\stopMPinclusions

\startMPinclusions
..
\stopMPinclusions
etc.

But according to the generated mp-file it seems to incorporate the  
last one only.
Is this correct and if so, is it an option to allow appending in the  
above manner?

Or will that be too difficult to build.



(patch supp-mps.tex)

\def\startMPinclusions
 {\dosingleempty\dostartMPinclusions}

\long\def\dostartMPinclusions[#1]#2\stopMPinclusions % document wide
 {\doifelse{#1}{+}
[EMAIL PROTECTED]@[EMAIL PROTECTED]@EA
   {\theMPinclusions
\writeMPgraphic{#2}}}
{\long\def\theMPinclusions
   {% \expanded !
[EMAIL PROTECTED]@[EMAIL PROTECTED]@EA{\the\MPextensions;}}% new
\writeMPgraphic{#2

\def\MPinclusions
 {\dosingleempty\doMPinclusions}

\long\def\doMPinclusions[#1]#2%
 {\startMPinclusions[#1]#2\stopMPinclusions}

now you can say

\startMPinclusions[+] 

i'll add this feature

Hans
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Notes for Scite

2006-01-15 Thread David Arnold

All,

I already have a few colleagues who have set up perl, ghostscript,  
gsview, miktex, context, and windedt on their XP machines.


Does someone have instructions for setting up Scite and configuring  
it for Context on top of these existing installations?



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] MPgraphic question

2006-01-15 Thread Hans Hagen

David Arnold wrote:

I am recalling from memory, but try each, but use the graphic about  
five times in your document. Before compiling, clear your directory  
of all files except your sample tex file. Then compile.


If I remember, when you use the useMPgraphic, you'll get a graphic  
file each time you use it (five of them), but only one with the  
uniqueMPgraphic.


unique only generates a new instance when the overlaystamp has changed:

\def\overlaystamp
 {\overlaywidth:\overlayheight:\overlaydepth 
:\MPcolor\overlaycolor:\MPcolor\overlaylinecolor}


Hans

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Notes for Scite

2006-01-15 Thread Hans Hagen

David Arnold wrote:


All,

I already have a few colleagues who have set up perl, ghostscript,  
gsview, miktex, context, and windedt on their XP machines.


Does someone have instructions for setting up Scite and configuring  
it for Context on top of these existing installations?



just install scite and copy the properties files in the context 
distribution to either the wscite path (best) or the users homepath


also copy the luascript to the wscite path

Hans
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] How to \bf for math?

2006-01-15 Thread Hans Hagen

Mojca Miklavec wrote:


Henning Hraban Ramm wrote:
 


What exactly is the ConTeXt alternative to LaTeX's \mathbf (switch to
bold or bold italic math fonts)?
 


I can't help you here, but did you read http://wiki.contextgarden.net/
Bold_Math ?
   



I tried a couple of tricks, but none of them resulted in bold italic iwona.
If I use the default font (cm), \bfm does nothing, \bf and \bi work.

I'm also able to get the complete formula typeset in bold iwona, but I
don't know how to get something like $-{\bf\nabla}\phi={\bi E}$, where
\phi would be typeset in iwona-light and the rest in iwona-heavy for
example.
 



taco is the math expert ...

one problem with math is that there are several passes in tex and that 
the fonts that are set last may influence previous switches (just one 
set of families, global within a math environments)


maybe a way out is something \hbox{\yourboldiwona$...$}

another way would be to especially define bf and bi to map onto the 
iwona instances that you want


(for a real mixed functionality we need to patch tex the program)

[ok, i can imagine some kind of dynamic family pool, but for that i need 
some real time and motivation)


Hans
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] postponed processing

2006-01-15 Thread Henning Hraban Ramm

Am 2006-01-15 um 19:06 schrieb Hans Hagen:


How else could I postpone the senderlayer processing?
by making it a setup (best use variables instead of #1's etc) and  
process that setup later on


I'm getting used to setups - looking at Holger's code I thought they  
were complicated, but it's only his code...


I don't understand how and where I should use \variables instead of  
#parameters?


(I guess it would work with some expansion magic, but I'd like to   
stay at ConTeXt's surface as much as possible.)

see m-letter and m-corresp for how we do things at pragma


I'd love to, but they aren't in the distribution.

Grüßlis vom Hraban!
---
http://www.fiee.net/texnique/
http://contextgarden.net
http://www.cacert.org (I'm an assurer)

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] New Installation under miktex, not working

2006-01-15 Thread Todd DeVries
Hi,

I'm attempting to install context under miktex 2.4. I've updated the
format files and followed other instructions as per the contextgarden
discussions. I'm probably missing something really obvious and would
appreciate any help offered.  I receive this output when running the
following commands:


texexec test.txt

 TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005

unknown file type: texmfscripts
 fixing texformat path : C:/localtexmf/miktex/fmt
fixing engine variable : pdfetex

total run time : 0 seconds

texexec --version
and

 TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005

unknown file type: texmfscripts
   texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE
1997-2005
   texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE
1992-2004
   tex : pdfeTeX, 3.141592-1.21a-2.2 (MiKTeX 2.4)
(preloaded format=cont-en 2006.1.15)  15 JAN 2006 11:32
   context : ver: 2006.01.09
   cont-en : ver: 2006.01.09  fmt: 2006.1.15  mes: english
unknown file type: 'fmt'
unknown file type: 'fmt'
unknown file type: 'fmt'
unknown file type: 'fmt'
unknown file type: 'fmt'
unknown file type: 'fmt'
unknown file type: 'fmt'
unknown file type: 'fmt'

total run time : 1 seconds


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] MPinclusions

2006-01-15 Thread Hans van der Meer
Thanks for incorporating this feature. It makes life easier in the  
case of complex \project's, where now the MPinclusions can be build  
up in successive stages.


yours sincerely,
dr. H. van der Meer



On Jan 15, 2006, at 17:33, Hans Hagen wrote:


Hans van der Meer wrote:


I thought to incrementally add to MPinclusions by successive blocks

\startMPinclusions
..
\stopMPinclusions

\startMPinclusions
..
\stopMPinclusions
etc.

But according to the generated mp-file it seems to incorporate  
the  last one only.
Is this correct and if so, is it an option to allow appending in  
the  above manner?

Or will that be too difficult to build.



(patch supp-mps.tex)

\def\startMPinclusions
 {\dosingleempty\dostartMPinclusions}

\long\def\dostartMPinclusions[#1]#2\stopMPinclusions % document wide
 {\doifelse{#1}{+}
[EMAIL PROTECTED]@[EMAIL PROTECTED]@EA
   {\theMPinclusions
\writeMPgraphic{#2}}}
{\long\def\theMPinclusions
   {% \expanded !
[EMAIL PROTECTED]@[EMAIL PROTECTED]@EA{\the 
\MPextensions;}}% new

\writeMPgraphic{#2

\def\MPinclusions
 {\dosingleempty\doMPinclusions}

\long\def\doMPinclusions[#1]#2%
 {\startMPinclusions[#1]#2\stopMPinclusions}

now you can say

\startMPinclusions[+] 

i'll add this feature

Hans
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] spurious space in cite

2006-01-15 Thread Hans van der Meer




On Jan 15, 2006, at 13:41, Taco Hoekwater wrote:


Hans van der Meer wrote:

I was typesetting bibliography references with the command
\cite[data][ref]
and then found that a spce preceded the author name; surrounding  
the  space with X and Y, it gives

X Yauthor instead of XYauthor
I was able to trace it down to the macro invertedshortauthor in  
thise  case, but I suspect the others (invertedauthor,   
normalauthor,  normalshortauthor) will exhibit the same phenomenon.


I hate to tell you this because you spent so much time on it, but
this has been adressed in the beta already.


Never mind, such things happen. And its good to see I am still able  
to trace my way down a TeX-problem (although it took a good part of  
the morning, bit rusty I guess).
But I willwait for the patch to come out in the regular ConTeXt  
distribution; there was a time I was eager to grab betas, but for  
this moment production stability has higher priority.





Finally another observation on the typesetting by \cite[data][ref].
When typesetting a reference ending on a period, for example  
Publ.  Co. Inc., the result has a double period Publ. Co. Inc..

That looks somewhat silly.


I'll saee what I can do about that, but it is a bit harder to fix.


Yes, I guess it is a lot harder. That's why I commented somewhat  
cautiously. But it would be nice if it can be done. I am a bit of a  
perfectionist!



yours sincerely,
dr. H. van der Meer

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] layer placement question

2006-01-15 Thread Henning Hraban Ramm

Am 2006-01-15 um 19:36 schrieb Hans Hagen:

I would expect that the x/y coordinates in \setlayer(framed)  
relate  to the layer's origin (-3, -3) and thus my logo gets  
placed at (130,  -3).
But in fact it's placed at (133, -3), i.e. x starts at 0 instead  
of  -3. Why?

x and y are unique for each \setlayer, use hoffset/voffset instead

Thank you, I didn't understand that from the docs.
And in fact not even from your statement.

Seems like x/y always use the upper left corner of the paper,
while hoffset/voffset use the upper left corner of the layer.

But if I use \placelayer instead of backgrounds, x/y is relative to  
the text area.

Is that intended? (See my mail layer question.)


Grüßlis vom Hraban!
---
http://www.fiee.net/texnique/
http://contextgarden.net
http://www.cacert.org (I'm an assurer)

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] texversion

2006-01-15 Thread Hans van der Meer
When running the command texversion it used to give nice and clean  
compact output.


 TeXVersion 0.1 / Taco Hoekwater 2004

   texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005
   texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004
   tex : pdfeTeX, 3.141592-1.30.4-2.2 (Web2C 7.5.5)
 cont-en : ver: 2006.01.12 10:38  fmt: 2006.1.14  mes:  
english
   cont-nl : ver: 2006.01.12 10:38  fmt: 2006.1.14  mes:  
dutch


Now it spits out a lot of material, ending with:


% \readlocfile{cont-def.tex}
%   {\writestatus{loading}{adding extensions from cont-def}}
%   {}

%D Now dumping the format is all that's left to be done.

\errorstopmode \dump

\endinput


Has something changed?
I preferred the previous behaviour, i.e. quit reporting when called  
without options.


yours sincerely,
dr. H. van der Meer



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] texversion

2006-01-15 Thread Taco Hoekwater

Hans van der Meer wrote:
When running the command texversion it used to give nice and clean  
compact output.


The functionality of texversion has been added to regular texexec,
and development has stopped. Please forget about the standalone
texversion command and use
  texexec --version
instead.

Cheers, taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] New Installation under miktex, not working

2006-01-15 Thread Taco Hoekwater

Todd DeVries wrote:

Hi,

I'm attempting to install context under miktex 2.4. I've updated the
format files and followed other instructions as per the contextgarden
discussions. I'm probably missing something really obvious and would
appreciate any help offered.  I receive this output when running the
following commands:


texexec test.txt


Are you sure your tex file has extension txt? Your output is precisely
what you get when texexec cannot find the input file, so I am a bit
suspicious that that may be the problem.

For the warnings: You need to tell texexec that you are running
miktex, but I do not know how precisely that is done (I use tetex)

Cheers, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] postponed processing

2006-01-15 Thread Hans Hagen

Henning Hraban Ramm wrote:



I'd love to, but they aren't in the distribution.


i'll send you the files


Hans
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] texversion

2006-01-15 Thread Hans Hagen

Hans van der Meer wrote:

When running the command texversion it used to give nice and clean  
compact output.


 TeXVersion 0.1 / Taco Hoekwater 2004

   texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005
   texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004
   tex : pdfeTeX, 3.141592-1.30.4-2.2 (Web2C 7.5.5)
 cont-en : ver: 2006.01.12 10:38  fmt: 2006.1.14  mes:  
english
   cont-nl : ver: 2006.01.12 10:38  fmt: 2006.1.14  mes:  
dutch


Now it spits out a lot of material, ending with:


% \readlocfile{cont-def.tex}
%   {\writestatus{loading}{adding extensions from cont-def}}
%   {}

%D Now dumping the format is all that's left to be done.

\errorstopmode \dump

\endinput



Has something changed?


indeed, the recently implemented format version check

I preferred the previous behaviour, i.e. quit reporting when called  
without options.


taco's code was integrated in texexec (not so long after he posted it); 
so you can consider texversion obsolete


texexec --version

TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005

  texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005
  texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004
  tex : pdfeTeX, 3.141592-1.30.3-2.2 (Web2c 7.5.5)
  context : ver: 2006.01.13 20:20
  cont-en : ver: 2006.01.13 20:20  fmt: 2006.1.15  mes: english
  cont-cz : ver: 2006.01.13 12:07  fmt: 2006.1.13  mes: czech
  cont-de : ver: 2006.01.13 12:07  fmt: 2006.1.13  mes: german
  cont-fr : ver: 2006.01.13 12:07  fmt: 2006.1.13  mes: french
  cont-it : ver: 2006.01.13 12:07  fmt: 2006.1.13  mes: italian
  cont-nl : ver: 2006.01.13 20:20  fmt: 2006.1.15  mes: dutch
  cont-ro : ver: 2006.01.13 12:07  fmt: 2006.1.13  mes: 
romanian
  cont-uk : ver: 2006.01.13 12:07  fmt: 2006.1.13  mes: 
romanian


   total run time : 25 seconds
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] math align

2006-01-15 Thread Hans Hagen

Hi,

Here a first attempts for a flexible alignment mechanism (i depend on 
taco for the fine points of math typesetting since he's typeset \infty 
more complex formulas than i have)


(n=n_of_columns, m=n_of_pairs, so both requested multiple column 
features are supported)


Hans
%D \module
%D   [   file=math-ext,
%Dversion=2006.01.14,
%D  title=\CONTEXT\ Math Macros,
%D   subtitle=Extra Macros,
%D author=Hans Hagen,
%D   date=\currentdate,
%D  copyright=\PRAGMA]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

% some simple math constructs (based on user requests)
%
% preliminary

\unprotect

% adapted stuff

% we need to make this plain code a bit more 'readable'

\def\openup
  {\afterassignment\dopenup\scratchdimen=}

\def\dopenup
  {\advance\lineskip \scratchdimen
   \advance\baselineskip \scratchdimen
   \advance\lineskiplimit\scratchdimen}

\def\jot{.25\bodyfontsize} % plain tex: 3 pt (todo: better name)

[EMAIL PROTECTED]

[EMAIL PROTECTED] % \presetdisplayspacing or so
  [EMAIL PROTECTED]
   \openup\jot
   \mathsurround\zeropoint
   \everycr{\noalign{%
  [EMAIL PROTECTED]
[EMAIL PROTECTED]
\ifdim\prevdepth-\thousandpoint
  \vskip-\lineskiplimit
  \vskip\normallineskiplimit
\fi
  \else
\penalty\interdisplaylinepenalty
  \fi}}}

% context (hooks)

[EMAIL PROTECTED]@y

[EMAIL PROTECTED]@y}

[EMAIL PROTECTED]

% plain tex value: \centering = 0pt plus 1000pt minus 1000pt
% plain tex valye: \jot = 3pt

% n1  needed, strange # interaction (maybe we need a toks in recurse ane no macro)

\def\buildeqalign
  {\scratchtoks\emptytoks
   \dorecurse\@@eqm
 {\ifnum\recurselevel\plusone\appendtoks\tabskip\@@eqdistance\tabskip\zeropoint\to\scratchtoks\fi
  \expanded{\scratchtoks{\the\scratchtoks\the\!!toksa}}%
  \dorecurse{\numexpr\@@eqn-\plusone\relax}
{\expanded{\scratchtoks{\the\scratchtoks\the\!!toksb%
   \expanded{\scratchtoks{\the\scratchtoks\the\!!toksc}}}

\def\forgetalign
  {\tabskip\zeropoint\everycr\emptytoks}

\def\eqalign#1% why no halign here, probably because of displaywidth
  {\!!toksa{\strut\hfil$\displaystyle{##}$}%
   \!!toksb{$\displaystyle{{}##}$\hfil}%
   \!!toksc\emptytoks
   \buildeqalign
   \null\,\vcenter
 {\openup\jot
  \mathsurround\zeropoint
  \expandafter \ialign \expandafter {\the\scratchtoks\crcr#1\crcr}%
   }\,}

\def\eqalignno#1%
  {\!!toksa{\hfil$\forgetalign\displaystyle{##}$\tabskip\zeropoint}%
   \!!toksb{$\forgetalign\displaystyle{{}##}$\tabskip\zeropoint}%
   \!!toksc{\hfil\tabskip\centering\llap{$\forgetalign##$}\tabskip\zeropoint}%
   \buildeqalign
   \presetdisplaymath
   \tabskip\centering
   \halign to \displaywidth \expandafter {\the\scratchtoks\crcr#1\crcr}}

\def\leqalignno#1%
  {\!!toksa{\hfil$\forgetalign\displaystyle{##}$\tabskip\zeropoint}%
   \!!toksb{$\forgetalign\displaystyle{{}##}$\tabskip\zeropoint}%
   \!!toksc{\hfil\tabskip\centering\kern-\displaywidth\rlap{$\forgetalign##$}\tabskip\displaywidth}%
   \buildeqalign
   \presetdisplaymath
   \tabskip\centering
   \halign to \displaywidth \expandafter {\the\scratchtoks\crcr#1\crcr}}

\definesystemvariable{eq}

\def\setupmathalign
  {\dodoubleargument\getparameters[\??eq]}

\setupmathalign
  [\c!n=2,
   \c!m=1,
   \c!distance=1em]

\def\numberedeqalign
  {\doifelse\@@fmlocation\v!left\leqalignno\eqalignno}

\def\doalignNR[#1][#2]%
  {\doifsomething{#1}
 {\doifelse{#1}{+}
{\doformulanumber[][#2][]{}}
{\doformulanumber[#1][#2][]{

\def\startalign
  {\dosingleempty\dostartalign}

\long\def\dostartalign[#1]#2\stopalign
  {\doifassignmentelse{#1}{\setupmathalign[#1]}\donothing
   \def\NC{\crcr\def\NC1{1}}%
   \def\EQ{=}
   \def\NR{\dodoubleempty\doalignNR}%
   % amstex compatibility mode: (ugly)
   \def\notag{\def\\{\crcr}}%
   \doifelse{#1}{*}{\def\\{\crcr}}{\def\\{\doalignNR[+][]\crcr}}%
   % end of compatibility mode
   \numberedeqalign{#2}}

%D \startbuffer
%D \placeformula \startformula \eqalignno {
%D  a = b  \formulanumber \cr
%D  c = d \cr
%D= e \cr
%D= f  \formulanumber
%D } \stopformula
%D \stopbuffer
%D
%D \typebuffer \getbuffer
%D
%D \startbuffer
%D \placeformula \startformula \startalign
%D \NC  a \EQ b \NR[+]
%D \NC  c \EQ d \NR
%D \NC\EQ f \NR[for:hans]
%D \NC\EQ g \NR[for:whoelse][a]
%D \NC\EQ h \NR[for:whomore][b]
%D \NC\EQ i \NR
%D \stopalign \stopformula
%D \stopbuffer
%D
%D \typebuffer \getbuffer
%D
%D \startbuffer
%D \placeformula \startformula \startalign
%D \NC a \EQ b \NR[+]
%D \NC c \EQ d \NR
%D \NC   \EQ f \NR
%D \NC   \EQ g \NR
%D \NC   \EQ h \NR
%D \NC   \EQ i \NR[+]
%D \stopalign \stopformula
%D \stopbuffer
%D
%D \typebuffer \getbuffer
%D
%D \startbuffer
%D \placeformula \startformula \startalign
%D a = b \\
%D c = d \notag \\
%D   = e \notag \\
%D   = f \\
%D \stopalign \stopformula
%D \stopbuffer
%D

Re: [NTG-context] layer placement question

2006-01-15 Thread Hans Hagen

Henning Hraban Ramm wrote:


Am 2006-01-15 um 19:36 schrieb Hans Hagen:

I would expect that the x/y coordinates in \setlayer(framed)  
relate  to the layer's origin (-3, -3) and thus my logo gets  placed 
at (130,  -3).
But in fact it's placed at (133, -3), i.e. x starts at 0 instead  
of  -3. Why?


x and y are unique for each \setlayer, use hoffset/voffset instead


Thank you, I didn't understand that from the docs.
And in fact not even from your statement.

Seems like x/y always use the upper left corner of the paper,
while hoffset/voffset use the upper left corner of the layer.


no, it depends on the combination of align and corner (in core-box.tex 
you can see presets being defined, so with preset=rightbottom, x/y start 
from the rightbottom)




But if I use \placelayer instead of backgrounds, x/y is relative to  
the text area.

Is that intended? (See my mail layer question.)


indeed, put it in a \ruledhbox and you will see

(there is \tightlayer and such in order to get different results)

Hans
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] New Installation under miktex, not working

2006-01-15 Thread Christopher G D Tipper
Some defaults from my old MiKTeX .ini file (local-texmf/scripts/perl/ 
texexec.ini) I can't test this as I have defected to a saner  
platform :-)


enable variable miktex at top of file and some variation of this below.

for  miktex  set  UsedInterfacesto  en, uk
for  miktex  set  UserInterface to  uk
for  miktex  set  TeXExecutable to  pdfetex.exe
for  miktex  set  TeXVirginFlag to  -initialize
for  miktex  set  TeXBatchFlag  to  -interaction=batchmode
for  miktex  set  TeXFormatFlag to  
for  miktex  set  MpToTeXExecutable to  mptotex.exe
for  miktex  set  MpVirginFlag  to  -initialize
for  miktex  set  MpPassString  to
for  miktex  set  MpBatchFlag   to  -interaction=batchmode
for  miktex  set  MpFormat  to  metafun
for  miktex  set  MpFormatFlag  to  -undump=
for  miktex  set  TeXFormatPath   to d:\local-texmf\miktex\fmt\
for  miktex  set  ConTeXtPath to d:\local-texmf\tex\context\base\
for  miktex  set  SetupPath   to c:\Progra~1\MiKTeX\miktek\base\
for  miktex  set  TeXScriptsPath  to d:\local-texmf\scripts\context 
\perl\

for  miktex  set  TeXProgramPath  to c:\Progra~1\MiKTeX\miktex\bin\

Also mptopdf will not work unless you set the TEXSYSTEM environment  
variable to miktex as on ContextGarden.


Also it occurs to me that texexec will not recognise test.txt, but  
will expect test and add .tex itself.


Don't forget to update fndb at every opportunity from MikTeX's  
management app.


Christopher


Todd DeVries wrote:

Hi,
I'm attempting to install context under miktex 2.4. I've updated the
format files and followed other instructions as per the contextgarden
discussions. I'm probably missing something really obvious and would
appreciate any help offered.  I receive this output when running the
following commands:

texexec test.txt


Are you sure your tex file has extension txt? Your output is precisely
what you get when texexec cannot find the input file, so I am a bit
suspicious that that may be the problem.

For the warnings: You need to tell texexec that you are running
miktex, but I do not know how precisely that is done (I use tetex)

Cheers, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


o00o
  “Since light travels faster than sound, isn’t that why
   some people appear bright until you hear them speak”
  — Steve Wright


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] math align

2006-01-15 Thread Aditya Mahajan

--- On Jan 15, Hans Hagen wrote ---


Hi,

Here a first attempts for a flexible alignment mechanism (i depend on taco 
for the fine points of math typesetting since he's typeset \infty more 
complex formulas than i have)


(n=n_of_columns, m=n_of_pairs, so both requested multiple column features are 
supported)


Thanks a lot. I tested it with the little context math documents that 
I have and it works as expected. There is a minor bug. I thought that 
 ... \\ and \NC .. \NC .. \NR were equivalent, with the latter giving 
more configurability with respect to equation numbering and all. 
However, with multiple columns, \NC ... \NC does not work as expected. 
Consider


\usemodule[math-ext]

\starttext

Three columns work correctly if I use \
\startbuffer
\startformula \startalign[n=3]
  a = b = c \\
  d = e = f
\stopalign \stopformula
\stopbuffer

\typebuffer \getbuffer

But they do not work if I use \type{\NC}

\startbuffer
\startformula \startalign[n=3]
  \NC a \NC= b \NC= c \NR
  \NC d \NC= e \NC= f \NR
\stopalign \stopformula
\stopbuffer

\typebuffer \getbuffer

\stoptext


This takes care of most of the alignment and equation numbering in 
Context. With this, one should also be able to define \startstop split 
such that


\placeformula \startformula \startsplit
 a = b \\
   = c
\stopsplit \stopformula

comes out as

 a = b
   = c   (1)

But, my attempts to define such a startstop did not work. Can you 
suggest something?


Thanks,
Aditya

--
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] math align

2006-01-15 Thread David Arnold

Hans et al,

I tried saving this file as ~/tmp/math-ext.tex and compiling with:

texexec --module math-ext.tex

But I got:

[MP texexec-mpgraph.4000] [1.1] [2.1] .
(/usr/local/teTeX/share/texmf.local/tex/context/base/verb-tex.tex
loading : Context Support Macros / Pretty TEX Verbatim
) . . . . . . . . .
Overfull \hbox (98.21335pt too wide) in paragraph at lines 72--72
[][][] [][] [][] [][] [][] [][]\*10pf* {[][]\ifnum\recurselevel[] 
[][][]\pl
usone\appendtoks\tabskip\@@eqdistance[][][][]\tabskip\zeropoint\to 
\scratchtoks

\fi[]
. . . [3.1] .
Overfull \hbox (87.71338pt too wide) in paragraph at lines 112--112
[][][] [][] [][] [][]\*10pf* \!!toksc[][]{[][]\hfil\tabskip 
\centering[][][
][]\kern[][]-[][]\displaywidth\rlap[][]{[][]$[][]\forgetalign[][]##[] 
[]$[][]}[]

[]\tabskip\displaywidth[][]}[][]%[]
. . . . . . . texexec-texexec.tmp (./texexec-texexec.tmp [4.2])
texexec-texexec.tmp (./texexec-texexec.tmp
! Undefined control sequence.
recently read \startalign

l.1 \placeformula \startformula \startalign

?

Am I doing something wrong?


On Jan 15, 2006, at 2:37 PM, Hans Hagen wrote:


Hi,

Here a first attempts for a flexible alignment mechanism (i depend  
on taco for the fine points of math typesetting since he's typeset  
\infty more complex formulas than i have)


(n=n_of_columns, m=n_of_pairs, so both requested multiple column  
features are supported)


Hans
%D \module
%D   [   file=math-ext,
%Dversion=2006.01.14,
%D  title=\CONTEXT\ Math Macros,
%D   subtitle=Extra Macros,
%D author=Hans Hagen,
%D   date=\currentdate,
%D  copyright=\PRAGMA]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

% some simple math constructs (based on user requests)
%
% preliminary

\unprotect

% adapted stuff

% we need to make this plain code a bit more 'readable'

\def\openup
  {\afterassignment\dopenup\scratchdimen=}

\def\dopenup
  {\advance\lineskip \scratchdimen
   \advance\baselineskip \scratchdimen
   \advance\lineskiplimit\scratchdimen}

\def\jot{.25\bodyfontsize} % plain tex: 3 pt (todo: better name)

[EMAIL PROTECTED]

[EMAIL PROTECTED] % \presetdisplayspacing or so
  [EMAIL PROTECTED]
   \openup\jot
   \mathsurround\zeropoint
   \everycr{\noalign{%
  [EMAIL PROTECTED]
[EMAIL PROTECTED]
\ifdim\prevdepth-\thousandpoint
  \vskip-\lineskiplimit
  \vskip\normallineskiplimit
\fi
  \else
\penalty\interdisplaylinepenalty
  \fi}}}

% context (hooks)

[EMAIL PROTECTED]@y

[EMAIL PROTECTED]@y}

[EMAIL PROTECTED]

% plain tex value: \centering = 0pt plus 1000pt minus 1000pt
% plain tex valye: \jot = 3pt

% n1  needed, strange # interaction (maybe we need a toks in  
recurse ane no macro)


\def\buildeqalign
  {\scratchtoks\emptytoks
   \dorecurse\@@eqm
 {\ifnum\recurselevel\plusone\appendtoks\tabskip\@@eqdistance 
\tabskip\zeropoint\to\scratchtoks\fi

  \expanded{\scratchtoks{\the\scratchtoks\the\!!toksa}}%
  \dorecurse{\numexpr\@@eqn-\plusone\relax}
{\expanded{\scratchtoks{\the\scratchtoks\the\!!toksb%
   \expanded{\scratchtoks{\the\scratchtoks\the\!!toksc}}}

\def\forgetalign
  {\tabskip\zeropoint\everycr\emptytoks}

\def\eqalign#1% why no halign here, probably because of displaywidth
  {\!!toksa{\strut\hfil$\displaystyle{##}$}%
   \!!toksb{$\displaystyle{{}##}$\hfil}%
   \!!toksc\emptytoks
   \buildeqalign
   \null\,\vcenter
 {\openup\jot
  \mathsurround\zeropoint
  \expandafter \ialign \expandafter {\the\scratchtoks\crcr#1 
\crcr}%

   }\,}

\def\eqalignno#1%
  {\!!toksa{\hfil$\forgetalign\displaystyle{##}$\tabskip\zeropoint}%
   \!!toksb{$\forgetalign\displaystyle{{}##}$\tabskip\zeropoint}%
   \!!toksc{\hfil\tabskip\centering\llap{$\forgetalign##$}\tabskip 
\zeropoint}%

   \buildeqalign
   \presetdisplaymath
   \tabskip\centering
   \halign to \displaywidth \expandafter {\the\scratchtoks\crcr#1 
\crcr}}


\def\leqalignno#1%
  {\!!toksa{\hfil$\forgetalign\displaystyle{##}$\tabskip\zeropoint}%
   \!!toksb{$\forgetalign\displaystyle{{}##}$\tabskip\zeropoint}%
   \!!toksc{\hfil\tabskip\centering\kern-\displaywidth\rlap{$ 
\forgetalign##$}\tabskip\displaywidth}%

   \buildeqalign
   \presetdisplaymath
   \tabskip\centering
   \halign to \displaywidth \expandafter {\the\scratchtoks\crcr#1 
\crcr}}


\definesystemvariable{eq}

\def\setupmathalign
  {\dodoubleargument\getparameters[\??eq]}

\setupmathalign
  [\c!n=2,
   \c!m=1,
   \c!distance=1em]

\def\numberedeqalign
  {\doifelse\@@fmlocation\v!left\leqalignno\eqalignno}

\def\doalignNR[#1][#2]%
  {\doifsomething{#1}
 {\doifelse{#1}{+}
{\doformulanumber[][#2][]{}}
{\doformulanumber[#1][#2][]{

\def\startalign
  {\dosingleempty\dostartalign}

\long\def\dostartalign[#1]#2\stopalign
  {\doifassignmentelse{#1}{\setupmathalign[#1]}\donothing
   \def\NC{\crcr\def\NC1{1}}%
   \def\EQ{=}
   

Re: [NTG-context] Notes for Scite

2006-01-15 Thread David Arnold
Will it be required to install Ruby and/or Lua on the windows  
platform?  If so, is this the binary I should download and install?


http://luaforge.net/frs/download.php/1148/lua5_1b1_Win32_bin.tar.gz

Anything else required besides perl?

On Jan 15, 2006, at 9:59 AM, Hans Hagen wrote:


David Arnold wrote:


All,

I already have a few colleagues who have set up perl,  
ghostscript,  gsview, miktex, context, and windedt on their XP  
machines.


Does someone have instructions for setting up Scite and  
configuring  it for Context on top of these existing installations?



just install scite and copy the properties files in the context  
distribution to either the wscite path (best) or the users homepath


also copy the luascript to the wscite path

Hans
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] math align

2006-01-15 Thread David Arnold

And where should we put this module temporarily?


On Jan 15, 2006, at 2:37 PM, Hans Hagen wrote:


Hi,

Here a first attempts for a flexible alignment mechanism (i depend  
on taco for the fine points of math typesetting since he's typeset  
\infty more complex formulas than i have)


(n=n_of_columns, m=n_of_pairs, so both requested multiple column  
features are supported)


Hans

%D \module
%D   [   file=math-ext,
%Dversion=2006.01.14,
%D  title=\CONTEXT\ Math Macros,
%D   subtitle=Extra Macros,
%D author=Hans Hagen,
%D   date=\currentdate,
%D  copyright=\PRAGMA]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

% some simple math constructs (based on user requests)
%
% preliminary

\unprotect

% adapted stuff

% we need to make this plain code a bit more 'readable'

\def\openup
  {\afterassignment\dopenup\scratchdimen=}

\def\dopenup
  {\advance\lineskip \scratchdimen
   \advance\baselineskip \scratchdimen
   \advance\lineskiplimit\scratchdimen}

\def\jot{.25\bodyfontsize} % plain tex: 3 pt (todo: better name)

[EMAIL PROTECTED]

[EMAIL PROTECTED] % \presetdisplayspacing or so
  [EMAIL PROTECTED]
   \openup\jot
   \mathsurround\zeropoint
   \everycr{\noalign{%
  [EMAIL PROTECTED]
[EMAIL PROTECTED]
\ifdim\prevdepth-\thousandpoint
  \vskip-\lineskiplimit
  \vskip\normallineskiplimit
\fi
  \else
\penalty\interdisplaylinepenalty
  \fi}}}

% context (hooks)

[EMAIL PROTECTED]@y

[EMAIL PROTECTED]@y}

[EMAIL PROTECTED]

% plain tex value: \centering = 0pt plus 1000pt minus 1000pt
% plain tex valye: \jot = 3pt

% n1  needed, strange # interaction (maybe we need a toks in  
recurse ane no macro)


\def\buildeqalign
  {\scratchtoks\emptytoks
   \dorecurse\@@eqm
 {\ifnum\recurselevel\plusone\appendtoks\tabskip\@@eqdistance 
\tabskip\zeropoint\to\scratchtoks\fi

  \expanded{\scratchtoks{\the\scratchtoks\the\!!toksa}}%
  \dorecurse{\numexpr\@@eqn-\plusone\relax}
{\expanded{\scratchtoks{\the\scratchtoks\the\!!toksb%
   \expanded{\scratchtoks{\the\scratchtoks\the\!!toksc}}}

\def\forgetalign
  {\tabskip\zeropoint\everycr\emptytoks}

\def\eqalign#1% why no halign here, probably because of displaywidth
  {\!!toksa{\strut\hfil$\displaystyle{##}$}%
   \!!toksb{$\displaystyle{{}##}$\hfil}%
   \!!toksc\emptytoks
   \buildeqalign
   \null\,\vcenter
 {\openup\jot
  \mathsurround\zeropoint
  \expandafter \ialign \expandafter {\the\scratchtoks\crcr#1 
\crcr}%

   }\,}

\def\eqalignno#1%
  {\!!toksa{\hfil$\forgetalign\displaystyle{##}$\tabskip\zeropoint}%
   \!!toksb{$\forgetalign\displaystyle{{}##}$\tabskip\zeropoint}%
   \!!toksc{\hfil\tabskip\centering\llap{$\forgetalign##$}\tabskip 
\zeropoint}%

   \buildeqalign
   \presetdisplaymath
   \tabskip\centering
   \halign to \displaywidth \expandafter {\the\scratchtoks\crcr#1 
\crcr}}


\def\leqalignno#1%
  {\!!toksa{\hfil$\forgetalign\displaystyle{##}$\tabskip\zeropoint}%
   \!!toksb{$\forgetalign\displaystyle{{}##}$\tabskip\zeropoint}%
   \!!toksc{\hfil\tabskip\centering\kern-\displaywidth\rlap{$ 
\forgetalign##$}\tabskip\displaywidth}%

   \buildeqalign
   \presetdisplaymath
   \tabskip\centering
   \halign to \displaywidth \expandafter {\the\scratchtoks\crcr#1 
\crcr}}


\definesystemvariable{eq}

\def\setupmathalign
  {\dodoubleargument\getparameters[\??eq]}

\setupmathalign
  [\c!n=2,
   \c!m=1,
   \c!distance=1em]

\def\numberedeqalign
  {\doifelse\@@fmlocation\v!left\leqalignno\eqalignno}

\def\doalignNR[#1][#2]%
  {\doifsomething{#1}
 {\doifelse{#1}{+}
{\doformulanumber[][#2][]{}}
{\doformulanumber[#1][#2][]{

\def\startalign
  {\dosingleempty\dostartalign}

\long\def\dostartalign[#1]#2\stopalign
  {\doifassignmentelse{#1}{\setupmathalign[#1]}\donothing
   \def\NC{\crcr\def\NC1{1}}%
   \def\EQ{=}
   \def\NR{\dodoubleempty\doalignNR}%
   % amstex compatibility mode: (ugly)
   \def\notag{\def\\{\crcr}}%
   \doifelse{#1}{*}{\def\\{\crcr}}{\def\\{\doalignNR[+][]\crcr}}%
   % end of compatibility mode
   \numberedeqalign{#2}}

%D \startbuffer
%D \placeformula \startformula \eqalignno {
%D  a = b  \formulanumber \cr
%D  c = d \cr
%D= e \cr
%D= f  \formulanumber
%D } \stopformula
%D \stopbuffer
%D
%D \typebuffer \getbuffer
%D
%D \startbuffer
%D \placeformula \startformula \startalign
%D \NC  a \EQ b \NR[+]
%D \NC  c \EQ d \NR
%D \NC\EQ f \NR[for:hans]
%D \NC\EQ g \NR[for:whoelse][a]
%D \NC\EQ h \NR[for:whomore][b]
%D \NC\EQ i \NR
%D \stopalign \stopformula
%D \stopbuffer
%D
%D \typebuffer \getbuffer
%D
%D \startbuffer
%D \placeformula \startformula \startalign
%D \NC a \EQ b \NR[+]
%D \NC c \EQ d \NR
%D \NC   \EQ f \NR
%D \NC   \EQ g \NR
%D \NC   \EQ h \NR
%D \NC   \EQ i \NR[+]
%D \stopalign \stopformula
%D \stopbuffer
%D
%D \typebuffer \getbuffer
%D
%D \startbuffer
%D \placeformula