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

2006-01-16 Thread Mojca Miklavec
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:

I don't know why I keep using MikTeX (there are problems all the time,
but it is [or at least it should be] easy to update and is already
installed on most computers here), just some points:
- texexec --make --all doesn't work anyway (well, it works, but it
forgets to copy the files to the proper place)
If you want to make formats, go to MikTeX options - TeX formats -
choose cont-en - Edit ...
Here are the values that I have (it may be that I changed any of them
manually, I don't remember):
Format Name: cont-en
Compiler: pdfe-TeX (Extended Mode)
Input File Name: cont-en.tex
Output File Name: cont-en.efmt
Exclude has to be unchecked

- MikTeX updates the formats automatically (if it does). If it
doesn't, the standard ConTeXt ways fail anyway and searching for
files doesn't always work either
- I often have problems after upgrading ConTeXt, but I can hardly tell
you what to do. I try all the different tricks (updating filename
database, building the formats, ...) without any success, but after
two days it simply works again by some black magic.

 
 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
 

That's the output that I get if the file doesn't exist.

Can you make a file test.tex (not txt) and try to compile that one?
Send the new report then (if there are any differences of course).

 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

I also get this output since December (I thought that ConTeXt was
broken at first), but it is harmless and compiling the documents
nevertheless works. Perhaps that extensive use of unknown file type:
'fmt' is the new Taco's inclusion that Hans mentioned in some other
mail ;) unknown file type: texmfscripts should also be harmless and
will disapear once MikTeX starts to support the new pdfTeX (if I
understood correctly).

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


Re: [NTG-context] Notes for Scite

2006-01-16 Thread Mojca Miklavec
David Arnold wrote:
 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?

Not always required, but I would suggest them to install ruby and
texmfstart as well
(http://www.pragma-ade.com/context/current/cont-win.zip - simply unzip
it and copy it to [MikTeX]/miktex/bin)

Unless they want to hack, I don't think that they need lua (already),
unless Hans and Taco have some surprises hidden in the pockets ;).

(In WinEdt that you mentioned there's a special option to uncomment in
order to be able to compile ConTeXt documents on a button click, I
don't remember where. I used WinEdt extensively in the past, but
there's no ConTeXt support built in and utf-8 probably stil doesn't
work.)

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


Re: [NTG-context] Alignments side by side

2006-01-16 Thread Willi Egger

Hi David,

you can play with placing floats in a combination:
\setupoutput[pdftex]
\setupformulae[location=left,margin=no]
\startbuffer[1]
\framed[frame=on,width=fit]
{\startformula
\eqalign{
 f(x)=x2-2x-3\cr
 f(x)=x^02x+1-1-3\cr
 f(x)=(x-1)2-4}
\stopformula}
\stopbuffer

\startbuffer[2]
\framed[frame=on,width=fit]
{\startformula
\eqalign{
 f(x)=x2-2x-3\cr
 f(x)=x^02x+1-1-3\cr
 f(x)=(x-1)2-4}
\stopformula}
\stopbuffer

\starttext
\placefigure[-]{none}
{\startcombination[2*1]
   {\externalfigure[1][width=.45\textwidth,type=buffer]}{}
   {\externalfigure[2][width=.45\textwidth,type=buffer]}{}
\stopcombination}
\stoptext

Willi

David Arnold wrote:


All,

I am wondering how I can put two alignment environments side-by-side?

For test purposes, it's OK to use this twice.

\placeformula[-]
\startformula
\eqalign{
  f(x)=x^2-2x-3\cr
  f(x)=x^02x+1-1-3\cr
  f(x)=(x-1)^2-4}
\stopformula

I'd like to get two of these side-by-side, or something that will  
typeset a similar result side-by-side.


Thanks.
___
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] Notes for Scite

2006-01-16 Thread Willi Egger

Hi David,

you might have a look on the PRAGMA site. If I remember correctly, there 
should be a manual dealing with Scite.


Willi



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?



___
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] last natural table column longer

2006-01-16 Thread Taco Hoekwater


Hi Vit,

Vit Zyka wrote:

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:


The underlying problem is that you have to enlarge the height of
page 2. I don't know how that is 'normally' done, but perhaps it
gives someone else a hint ?

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


Re: [NTG-context] Figure libraries

2006-01-16 Thread Willi Egger

Hi David,

yes you can. In your doc you can refer to the library's content either 
by symbolic names as given  in the library or by reference to a page in 
the library

\usemodule[fig-base]
\usefigurebase[mylibrary]
.
{\externalfigure[mynicepicture][...]}

.
{\externalfigure[mylibrary][page=xx]}

Willi

David Arnold wrote:


All,

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?

___
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] Notes for Scite

2006-01-16 Thread Hans Hagen

David Arnold wrote:

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?


also reacting to anouther mail ... currently taco and i don't have 
anything in our sleeves, the lua interpreter is embedded in scite (as it 
will be in tex); that the idea behind lua: embed it (it's small)


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


Re: [NTG-context] columns issues

2006-01-16 Thread Taco Hoekwater



Henning Hraban Ramm wrote:

Hello wizards!

The \startcolumns ... \column ... \stopcolumns block handling seems  
somewhat broken.


That's a bit of an understatement. I've added a collector item

Taco
___
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-16 Thread Taco Hoekwater



Hans Hagen wrote:


taco is the math expert ...


At the moment, I don't understand this math vs. typescript stuff
any better than the next person, I'm afraid. There are a number of
(perhaps conflicting?) ways of getting 'bold math' in your text,
and I have not the faintest clue which one is 'right'.

In the special case of iwona, it should be as simple as

   \hbox{\switchtobodyfont[iwona-medium]$...$}

or even

   \hbox{\switchtobodyfont[iwona-heavy]$...$}

but that needs a extensions to the typescripts.

See attachment for example and that extra typescript code.

Cheers, Taco


iw.tex
Description: TeX document
___
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-16 Thread Taco Hoekwater



Hans Hagen wrote:

Christopher G D Tipper wrote:


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?


well, indenting has been extended (and a bit fixed)


My guess is this patch to supp-fun is needed (untested):

 \def\DroppedCaps#1#2#3#4#5#6#7% does not yet handle accented chars
   {\convertargument#7\to\asciia
\convertcommand \DroppedString\to\asciib
\ExpandBothAfter\doifinstringelse\asciia\asciib
- {\noindenting
+ {\noindentation
   \dontleavehmode
  %\ifhmode\hskip-\parindent\fi % sensitive for context mechanism

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


[NTG-context] Resolution of the images

2006-01-16 Thread Andreas Wapf

Hello

How does texexec --pdf file.tex includes the images into the target pdf 
file?

Does texexec process modify the images?
What is the target resolution of the pdf?
How should I optimize the process for digital or offset printing?

Or is there somewhere a good introduction into this topic?

Thanks,

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


Re: [NTG-context] last natural table column longer

2006-01-16 Thread Vit Zyka

Taco Hoekwater wrote:


Hi Vit,

Vit Zyka wrote:


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:



The underlying problem is that you have to enlarge the height of
page 2. I don't know how that is 'normally' done, but perhaps it
gives someone else a hint ?


It may be done by

\adaptlayout[2][height=+1cm]

but it does not solve the problem. Natural tables (IFAIK) are splitted 
at one moment as a whole to one fix (page) height. If I enlarge the page 
(where \bTABLE) then every column will be longer. We need some option 
(or command inside table) that say: hey, naturaltable-split-mechanism, 
start to split to different value. There is some \extratblsplitheight in 
core-ntb, but I did not cook too deep to understand it.


Vit



Cheers, Taco

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


Re: [NTG-context] math align

2006-01-16 Thread Hans Hagen

Taco Hoekwater wrote:




David Arnold wrote:


And where should we put this module temporarily?



Put it in the local directory and do

  \input math-ext

at the top of your test files.


attached is a next version with 'definable' aligns

\definemathalign[myalign][...]

\startmyalign ...


Hans
%D \module
%D   [   file=math-ext,
%Dversion=2006.01.14,
%D  title=\CONTEXT\ Math Macros,
%D   subtitle=Extra Macros,
%D author={Hans Hagen \ Taco Hoekwater},
%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.

%M \ifx\startalign\undefined \input math-ext.tex \fi

% 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{\mathalignparameter\c!m}
 {\ifnum\recurselevel\plusone
\appendtoks
  \tabskip\mathalignparameter\c!distance\tabskip\zeropoint
\to\scratchtoks
  \fi
  \expanded{\scratchtoks{\the\scratchtoks\the\!!toksa}}%
  \dorecurse{\numexpr\mathalignparameter\c!n-\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\prepareeqalignno
  {\!!toksa{\hfil$\forgetalign\displaystyle{##}$\tabskip\zeropoint}%
   \!!toksb{$\forgetalign\displaystyle{{}##}$\tabskip\zeropoint}%
   \!!toksc{\hfil\tabskip\centering
\llap{$\forgetalign##$}\tabskip\zeropoint}%
   \buildeqalign
   \presetdisplaymath
   \tabskip\centering}

\def\prepareleqalignno
  {\!!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}

\def\eqalignno#1%
  {\prepareeqalignno
   \halign to \displaywidth \expandafter {\the\scratchtoks\crcr#1\crcr}}

\def\leqalignno#1%
  {\prepareleqaligno
   \halign to \displaywidth \expandafter {\the\scratchtoks\crcr#1\crcr}}

\def\aligneqalignno
  {\prepareeqalignno
   \halign to \displaywidth \expandafter \bgroup\the\scratchtoks\crcr}

\def\alignleqalignno
  {\prepareleqalignno
   \halign to \displaywidth \expandafter \bgroup\the\scratchtoks\crcr}

\def\finishalignno
  {\crcr\egroup}

\definesystemvariable{eq}

\def\setupmathalign
  {\dodoubleempty\dosetupmathalign}

\def\dosetupmathalign[#1][#2]%
  {\ifsecondargument
 \getparameters[\??eq#1][#2]%
   \else
 \getparameters[\??eq][#1]%
   \fi}

\let\currentmathalign\empty

\def\mathalignparameter#1%
  {\executeifdefined{\??eq\currentmathalign#1}{\executeifdefined{\??eq#1}\empty}}

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

\def\numberedeqalign
  {\doifelse\@@fmlocation\v!left\alignleqalignno\aligneqalignno}

\def\doxxdoubleempty#1#2%
  {\ifx#2[\expandafter\dodoxxdoubleempty\else\expandafter\noxxdoubleempty\fi#1#2}

\def\dodoxxdoubleempty#1[#2]#3%
  {\ifx#3[\else\expandafter\nonoxxdoubleempty\fi#1[#2]#3}

\def\noxxdoubleempty  #1{#1[][]}
\def\nonoxxdoubleempty#1[#2]{#1[#2][]}

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

\def\dostartmathalign[#1][#2]%
  {\edef\currentmathalign{#1}%
   \doifassignmentelse{#2}{\setupmathalign[#1][#2]}\donothing
   \def\NC{\def\NC1{1}}%
   \def\EQ{=}%
   \def\NR{\doxxdoubleempty\doalignNR}%
   % amstex 

[NTG-context] Newbie question ConText

2006-01-16 Thread Wim Neimeijer
Title: Newbie question ConText






Hi,


I am a Latex (MikTex 2.4, WindowsXP Pro) user and I want to learn more about ConText. 


I installed ConText via the MikTex 2.4 package manager, and read some of the ConText manuals.


I also compiled successfully some of the ConText tex samples, but I ran into a couple of problems :


- First I would like to know the most recent stable version of ConText and where to get it.


- Looking at the logs of some of the runs e.g. compiling the MetaFun manual, I am running into font problems.

Error messages like : maketfm : No creation rule for font ComputerModernSans-Bold pop up. 


I saw some emails on this list dealing with the same problem, but I could not find a definite solution.


Thanks for your help


Kind regards 


W. Neimeijer



___
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-16 Thread Aditya Mahajan

--- On Jan 16, Mojca Miklavec wrote ---


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:


I don't know why I keep using MikTeX (there are problems all the time,
but it is [or at least it should be] easy to update and is already
installed on most computers here), just some points:


I use latex a lot, and for windows+latex Miktex is one of the best 
distribution. Most of the packages get installed on the fly and it can 
be updated easily. Once you get used to it, it is hard to try other 
latex distributions.



- texexec --make --all doesn't work anyway (well, it works, but it
forgets to copy the files to the proper place)


It also happens with me and the solution that you describe below 
works. You need to update the formats from Miktex Options. I *guess* 
the reason texexec fails to place the format in proper place is 
because it simply does not know where the localtexmf tree is. I am not 
sure if it has a way of finding it out without the user specifying an 
environment variable.




If you want to make formats, go to MikTeX options - TeX formats -
choose cont-en - Edit ...
Here are the values that I have (it may be that I changed any of them
manually, I don't remember):
Format Name: cont-en
Compiler: pdfe-TeX (Extended Mode)
Input File Name: cont-en.tex
Output File Name: cont-en.efmt
Exclude has to be unchecked

- MikTeX updates the formats automatically (if it does). If it
doesn't, the standard ConTeXt ways fail anyway and searching for
files doesn't always work either




- I often have problems after upgrading ConTeXt, but I can hardly tell
you what to do. I try all the different tricks (updating filename
database, building the formats, ...) without any success, but after
two days it simply works again by some black magic.



Here is what I do (I am not sure even if this is the correct thing to 
do, but seems to work)


Make a tree called pragma-texmf. Download cont-tmf.zip and 
cont-fnt.zip and unzip them in pragma-texmf. Go to MikTex options and 
add pragma-texmf as a tree. Move it up so that it is the first tree. 
This way whenever any program searches for a context related file, it 
finds it in the pragma-tree. Now go and recreate the formats. 
Everything works (well except mptopdf the program, but that is not 
critical for me). To keep in sync with context's pace of development, 
simply download the entire cont-tmf tree whenever a newer version is 
released. I have not managed to convince texsync to just download 
texmf tree, and I do not really care about downloading a big zip.


This makes me feel whether it is a good idea to have miktex and 
context for windows (from the pragma site) in parallel. I use cygwin 
and context for windows only seems to work from cmd.exe and not 
bash.exe. I tried to convert setuptex.sh to setuptex.bash, but could 
not get to work. So, I settled with the method of downloading the 
relevant trees and things work (by black magic, as you said)


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


Re: [NTG-context] math align

2006-01-16 Thread Mojca Miklavec
I might have missed it by not reading careful enough: is it possible
to left/right/middle align certain columns inside \startalign?

Thanks a lot for these definitions, Hans!

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


Re: [NTG-context] Resolution of the images

2006-01-16 Thread Henning Hraban Ramm

Am 2006-01-16 um 12:22 schrieb Andreas Wapf:

How does texexec --pdf file.tex includes the images into the target  
pdf file?

Does texexec process modify the images?
What is the target resolution of the pdf?


- texexec, i.e. pdftex, just embeds images (also pdf) without  
changing them, besides scaling


- a PDF has no resolution, only some embedded contents may have any


How should I optimize the process for digital or offset printing?


- define your colors in cmyk (at least *also*)

- prepare your pictures for the right resolution; if you need two  
versions (say web and print) you'd need to prepare both; you should  
name highres and lowres the same, only put them in different  
directories, so you could use mode sections that define the image path.


- the right resolution depends from the printing method and the  
screening.
a common rule of thumb for color and greyscale pictures is twice the  
screen (res. in dpi, screen in lpi), but \sqrt{2} would in fact be  
enough.
line art pictures should have the resolution of the printing device,  
but 800 dpi is mostly enough.


- if some elements should touch the paper border, they must bleed  
2-3 mm over to avoid white flashers after cutting; that contains  
that the printing paper sheet is bigger than your final paper size.


- you can prepare book(let) ordering of your pages with ConTeXt;  
that's called imposition in prepress and arranging in ConTeXt.


What else do you need to know?

Perhaps you're interested in my formula collection for printing  
engineers:

http://www.fiee.net/texnique/?menu=0-2-1lang=de
(source is LaTeX, unfortunately)

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] math align

2006-01-16 Thread Hans Hagen

Mojca Miklavec wrote:


I might have missed it by not reading careful enough: is it possible
to left/right/middle align certain columns inside \startalign?
 

some day (try to convince me/taco, bribe us, write detailed specs, send 
us so many mails that we give in, etc)


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


[NTG-context] typo in core-ntb.tex

2006-01-16 Thread Vit Zyka

Hi,

there is typo in core-ntb.tex: \def\splittblboxb#1%

\pagina - \page

Vit
___
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-16 Thread Mojca Miklavec
Taco, thanks for the answer. I managed to change the whole math family
into bold, but I can't get the following example working:

\switchtobodyfont[iwona-light,ss]
$$normal {\bf bold}{\bfm bold}{\bfmath bold}$$

\bf and \bfmath result in cm fonts, \bfm has no influence, no matter
what I tried to do. I grep-ed for bfmath and boldmath and tried to
replace them, but no success at all. See the attached file for my
attempts.

Thanks,
Mojca


iw2.tex
Description: TeX document
___
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-16 Thread Todd DeVries
Thanks to all who responded  to my question yesterday. Not sure why,
but documents are compiling and formats are found. Perhaps I'll do a
stand-alone install to make updates easier in the future.

Todd

On Mon, 16 Jan 2006 10:35:29 -0500 (EST), you wrote:

--- On Jan 16, Mojca Miklavec wrote ---

 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:

 I don't know why I keep using MikTeX (there are problems all the time,
 but it is [or at least it should be] easy to update and is already
 installed on most computers here), just some points:

I use latex a lot, and for windows+latex Miktex is one of the best 
distribution. Most of the packages get installed on the fly and it can 
be updated easily. Once you get used to it, it is hard to try other 
latex distributions.

 - texexec --make --all doesn't work anyway (well, it works, but it
 forgets to copy the files to the proper place)

It also happens with me and the solution that you describe below 
works. You need to update the formats from Miktex Options. I *guess* 
the reason texexec fails to place the format in proper place is 
because it simply does not know where the localtexmf tree is. I am not 
sure if it has a way of finding it out without the user specifying an 
environment variable.


 If you want to make formats, go to MikTeX options - TeX formats -
 choose cont-en - Edit ...
 Here are the values that I have (it may be that I changed any of them
 manually, I don't remember):
 Format Name: cont-en
 Compiler: pdfe-TeX (Extended Mode)
 Input File Name: cont-en.tex
 Output File Name: cont-en.efmt
 Exclude has to be unchecked

 - MikTeX updates the formats automatically (if it does). If it
 doesn't, the standard ConTeXt ways fail anyway and searching for
 files doesn't always work either


 - I often have problems after upgrading ConTeXt, but I can hardly tell
 you what to do. I try all the different tricks (updating filename
 database, building the formats, ...) without any success, but after
 two days it simply works again by some black magic.


Here is what I do (I am not sure even if this is the correct thing to 
do, but seems to work)

Make a tree called pragma-texmf. Download cont-tmf.zip and 
cont-fnt.zip and unzip them in pragma-texmf. Go to MikTex options and 
add pragma-texmf as a tree. Move it up so that it is the first tree. 
This way whenever any program searches for a context related file, it 
finds it in the pragma-tree. Now go and recreate the formats. 
Everything works (well except mptopdf the program, but that is not 
critical for me). To keep in sync with context's pace of development, 
simply download the entire cont-tmf tree whenever a newer version is 
released. I have not managed to convince texsync to just download 
texmf tree, and I do not really care about downloading a big zip.

This makes me feel whether it is a good idea to have miktex and 
context for windows (from the pragma site) in parallel. I use cygwin 
and context for windows only seems to work from cmd.exe and not 
bash.exe. I tried to convert setuptex.sh to setuptex.bash, but could 
not get to work. So, I settled with the method of downloading the 
relevant trees and things work (by black magic, as you said)

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


Fwd: [NTG-context] Pagenumbers and labels

2006-01-16 Thread Idris Samawi Hamid

Dear cabal,

Got no answer yet, resending-)

Best
Idris

--- Forwarded message ---
From: Idris Samawi Hamid [EMAIL PROTECTED]
To: ntg-context@ntg.nl
Cc:
Subject: [NTG-context] Pagenumbers and labels
Date: Fri, 13 Jan 2006 14:58:48 -0700

Dear syndicate,

Three questions (test file attached):

1. A pagenumbering problem: I have

\setuppagenumbering[way=bytext]

Good: The page numbers are continuous and do not restart with each new
part;

Bad:  The page numbers are still prefaced by the part number, e.g.

1-24, 1-25, 2-26, 2-27 etc.

I want, rather, just 24, 25, 26, 27 etc


2. I want the chapter numerals to ignore the part, so I get

Part 2, Chapter 3, Chapter 4.


3. I would to keep Part 1 Part 2 in the TOC, but no numeral at all in
the main text. I got rid of the Part label in the main text, but not the
numeral.

incrementnumber=no

works but then the TOC loses the Parts altogether.

Thnx in advance

Best
Idris


% output=pdf interface=en

\setuphead[part][number=yes,
  bodypartlabel={},
  page=right,
  continue=yes,
  ownnumber=no,
  incrementnumber=yes,
  placehead=yes]

\setuppagenumbering[way=bytext]

\definecombinedlist[summary][part,chapter][textstyle=\tf]

\starttext

\placesummary

\part{Test}

\chapter{Knuth}

\dorecurse{7}{\input knuth\par }

\chapter{More Knuth}

\dorecurse{7}{\input knuth\par }

\part{Test}

\chapter{Knuth}

\dorecurse{7}{\input knuth\par }

\chapter{More Knuth}

\dorecurse{7}{\input knuth\par }

\stoptext


--
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

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


Re: [NTG-context] typo in core-ntb.tex

2006-01-16 Thread Hans Hagen

Vit Zyka wrote:


Hi,

there is typo in core-ntb.tex: \def\splittblboxb#1%

\pagina - \page


you mean, in your ancient version? not here ...

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-16 Thread Mojca Miklavec
Hans Hagen wrote:
 Mojca Miklavec wrote:
 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.

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

This works of course, but I don't want to write something like
(minimal example ;)
$$\hbox{\switchtobodyfont[iwona-heavy]$B$}=\hbox{\switchtobodyfont[iwona-heavy]$\nabla$}\times\hbox{\switchtobodyfont[iwona-heavy]$A$}$$
even if I define my own shortcut to it.
(\displaystyle, \textstyle, ... spacing, readability unless I can
redefine \bf and so on ...)

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

That's what I'm looking for, but I can't find that magical piece of
code in huge typescripts definitions.

 (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)

No, I really don't need that complex solution. My needs are already
covered by the MyWay with bold math and in cm bold math works as
well. It's just that I can't read the manual / cannot repeat the
process and get rid of cm fonts.

Thanks a lot,
Mojca
___
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-16 Thread David Munger
Hi Mojca,

I must say I understand about nothing about fonts in ConTeXt. But I've
somehow managed do define a bold vector command, working in my
environment. I hope it helps.



\definetypeface [boldmath] [mm] [boldmath] [latin-modern] [default]

% boldsymbol work-around

\setupformulae[method=bold]
\define[1]\boldsymbol{\hbox{\formula[boldmath]{#1}}}
\define[1]\boldsymbolscript{\hbox{\formula[boldmath,script]{#1}}}
\define[1]\boldsymbolscriptscript{\hbox{\formula[boldmath,scriptscript]{#1}}}

% bold vector

\define[1]\bvec{{%
  \mathchoice
{\let\bs=\boldsymbol}%
{\let\bs=\boldsymbol}%
{\let\bs=\boldsymbolscript}%
{\let\bs=\boldsymbolscripscript}%
  \bs{#1}}}



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


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


Re: [NTG-context] math align

2006-01-16 Thread David Arnold

Taco, Hans, et al,

That worked by putting it in the same directory as my little test file.

However, with this directory structure:

../book.tex
../bookenv.tex
../math-ext.tex
../chapter6/chapter6.tex
../chapter6/section5.tex

Bookenv.tex is our environment file. I tried:

\input math-ext

and

\usemoduel[math-ext]

in bookenv.tex, but when compiling section5.tex, both resulted in  
math-ext not found.


In this situation, will I have to put it into the base context tree?

On Jan 16, 2006, at 1:02 AM, Taco Hoekwater wrote:




David Arnold wrote:

And where should we put this module temporarily?


Put it in the local directory and do

  \input math-ext

at the top of your test files.

Cheers, Taco

___
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: Fwd: [NTG-context] Pagenumbers and labels

2006-01-16 Thread Taco Hoekwater

Idris Samawi Hamid wrote:

Dear cabal,

Got no answer yet, resending-)


It sounds to me like you only need the 'appearance' of
Parts to be present, instead of the 'actual' divisions.

If so, you could consider defining your own '\part' macro that
does a \writetolist. You can do that with something as simple as
this:

  \newcount\mypart
  \def\part#1{\page[right] \advance\mypart 1
 \expanded{\writetolist[part]{\the\mypart}{#1}}}

Cheers, Taco



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


Re: [NTG-context] math align

2006-01-16 Thread Hans Hagen

David Arnold wrote:


Taco, Hans, et al,

That worked by putting it in the same directory as my little test file.

However, with this directory structure:

../book.tex
../bookenv.tex
../math-ext.tex
../chapter6/chapter6.tex
../chapter6/section5.tex

Bookenv.tex is our environment file. I tried:

\input math-ext

and

\usemoduel[math-ext]


it's not a module, it will end up in the core

so, for the moment:

= put the file in context/base
= run mktexls
= add to cont-new.tex:

  \ifx\startalign\undefined \input math-ext.tex \fi

That should work ok

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-16 Thread Taco Hoekwater

Mojca Miklavec wrote:

. I grep-ed for bfmath and boldmath and tried to
replace them, but no success at all. See the attached file for my
attempts.


Yeah, that's what got me confused as well.

I'll try to sort all this bold/not bold/fake bold/wrong bold math
out (unless someone else volunteers :-)) and report back in a few
days.

Taco

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


Re: [NTG-context] math align

2006-01-16 Thread David Arnold
Yikes,Cont-new.tex is huge. Where do I put this line? Between \unprotect ... \protect? Or at the very end?On Jan 16, 2006, at 10:16 AM, Hans Hagen wrote:  \ifx\startalign\undefined \input math-ext.tex \fi ___
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-16 Thread Ralph Roberts

Thanks! That worked for me.

--Ralph



If you want to make formats, go to MikTeX options - TeX formats -
choose cont-en - Edit ...
Here are the values that I have (it may be that I changed any of them
manually, I don't remember):
Format Name: cont-en
Compiler: pdfe-TeX (Extended Mode)
Input File Name: cont-en.tex
Output File Name: cont-en.efmt
Exclude has to be unchecked

- MikTeX updates the formats automatically (if it does). If it
doesn't, the standard ConTeXt ways fail anyway and searching for
files doesn't always work either







--
--
Ralph Roberts, CEO
aBOOKS / 1VIDeo / Creativity, Inc.
65 Macedonia Road
Alexander, North Carolina 28701

828-252-9515, 828-255-8719 fax
800-472-0437 orders only
websites: http://abooks.com
   http://1vid.com

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


Re: [NTG-context] math align

2006-01-16 Thread David Arnold

Hans, Willi, et al,

I was thinking there are pros and cons to each solution, Hans' and  
Willi's. So I tried:


Here are some simple examples of adding fractions already having  
common denominators.


%output=pdf

\input math-ext

\starttext

\placeformula[-]
\startformula
  \startalign[m=2,distance=5em]
\frac5{21}-\frac3{21}=\frac{5-3}{21} 
\frac{2}{x+2}-\frac{x-3}{x+2}=\frac{2-(x-3)}{x+2}\\
=\frac2{21}  =\frac{2-x+3}{x+2}\\
=\frac{5-x}{x+2}
  \stopalign
\stopformula

\startbuffer[1]
\framed[frame=on,width=fit]
   {\startformula
 \eqalign{
   \frac{5}{21}-\frac{3}{21}
   =\frac{5-3}{21}\cr
   =\frac{2}{21}}
   \stopformula}
\stopbuffer

\startbuffer[2]
  \framed[frame=on,width=fit]
  {\startformula
\eqalign{
  \frac2{x+2}-\frac{x-3}{x+2}
  =\frac{2-(x-3)}{x+2}\cr
  =\frac{2-x+3}{x+2}\cr
  =\frac{5-x}{x+2}}
  \stopformula}
\stopbuffer

\startbuffer
  \startcombination[2*1]
{\externalfigure[1][width=0.45\textwidth,type=buffer]}{}
{\externalfigure[2][width=0.45\textwidth,type=buffer]}{}
  \stopcombination
\stopbuffer

\placefigure
[][-]
{none}
{\getbuffer}

\stoptext

As you can see, Hans' solution works perfectly, but note the very  
ugly source code for that section. Willi's source is cleaner, much  
easier to read (especially at a later date when I will have to  
revisit for revisions), but it doesn't work (the output is scaled of  
course).


Any suggestions as to how I can fix Willi's approach so it doesn't  
scale?

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


Re: [NTG-context] math align

2006-01-16 Thread Taco Hoekwater

David Arnold wrote:


In this situation, will I have to put it into the base context tree?


Yes, you would, but we are only testing now. I assume (based on the
name) that Hans has a new core file in mind instead of a module.

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


Re: [NTG-context] Resolution of the images

2006-01-16 Thread Peter Münster
On Mon, 16 Jan 2006, Henning Hraban Ramm wrote:

 - prepare your pictures for the right resolution; if you need two  
 versions (say web and print) you'd need to prepare both; you should  
 name highres and lowres the same, only put them in different  
 directories, so you could use mode sections that define the image path.

Or you use \usemodule[degrade]...
You can get it from http://pmrb.free.fr/work/OS/ConTeXt/
Cheers, Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] multiple backgrounds

2006-01-16 Thread Peter Münster
On Sun, 15 Jan 2006, Henning Hraban Ramm wrote:

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

Hello TeX-experts,

I tried to do the layer-subtraction, but it seems that I need more
experience with expansion in TeX. Here is the error:
! Undefined control sequence.
\GetList #1,#2;-\edef \ListHead 

And here my test file:

\def\GetList#1,#2;{\edef\ListHead{#1}\edef\ListTail{#2}}
\def\Remove#1#2{\doRemove{#1}{#2,\relax}}
\def\doRemove#1#2{\expandafter\GetList#2;%
  \doifelse{\ListHead}{#1}{}{\ListHead,}%
  \doifelse{\ListTail}{\relax}{}{\doRemove{#1}{\ListTail}}%
}

\def\addBGbefore#1{\expandparameters
  \setupbackgrounds[page][background={#1,\currentvalue}]}
\def\addBGafter#1{\expandparameters
  \setupbackgrounds[page][background={\currentvalue,#1}]}
\def\removeBG#1{\expandparameters
  \setupbackgrounds[page][background={\Remove{#1}{\currentvalue}}]}

\setupcolors[state=start]
\defineoverlay[layer1][{\color[red]{this is layer 1}}]
\defineoverlay[layer2][{\rotate[rotation=30]{\color[blue]{this is layer 2}}}]
\defineoverlay[layer3][{\rotate[rotation=60]{\color[green]{this is layer 3}}}]

\starttext
\addBGafter{layer1}
\input tufte
\page
\addBGafter{layer2}
\input tufte
\page
\addBGbefore{layer3}
\input tufte
\page
\removeBG{layer2}
\Values
\input tufte
\page
\removeBG{layer1}
\input tufte
\stoptext

Cheers, Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] math align

2006-01-16 Thread Aditya Mahajan

On Mon, 16 Jan 2006, Hans Hagen wrote:


Mojca Miklavec wrote:


I might have missed it by not reading careful enough: is it possible
to left/right/middle align certain columns inside \startalign?


some day (try to convince me/taco,


Please, please, please :-)


bribe us,


Not possible, I am a poor student :-)


write detailed specs,


For certain applications, one needs to left/right align the columns. It 
will be nice if


\startformula \startalign
\NC a \NC[align=right]= -1 \NR
\NC b \NC[align=right]= 1  \NR
\stopalign \stopformula

comes out as

  a = -1
  b =  1

Maybe some way of doing this for all columns in a align, say
\startformula \startalign[align={2,right}] %This is ugly syntax, can't
  % think of something good right away
\NC a \NC= -1 \NR
\NC b \NC=  1 \NR
\stopalign \stopformula

send us so 
many mails that we give in, etc)


This will be the next step :-) Hans, thanks a ton for all this 
functionality.


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


Re: [NTG-context] math align

2006-01-16 Thread Hans Hagen

David Arnold wrote:


Yikes,

Cont-new.tex is huge. Where do I put this line? Between \unprotect ... 
\protect? Or at the very end?


On Jan 16, 2006, at 10:16 AM, Hans Hagen wrote:


at the top, before \unprotect

(not that critical btw)

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


Re: [NTG-context] multiple backgrounds

2006-01-16 Thread Hans Hagen

� wrote:


On Sun, 15 Jan 2006, Henning Hraban Ramm wrote:

 

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



Hello TeX-experts,

I tried to do the layer-subtraction, but it seems that I need more
experience with expansion in TeX. Here is the error:
! Undefined control sequence.
\GetList #1,#2;-\edef \ListHead 


And here my test file:

\def\GetList#1,#2;{\edef\ListHead{#1}\edef\ListTail{#2}}
\def\Remove#1#2{\doRemove{#1}{#2,\relax}}
\def\doRemove#1#2{\expandafter\GetList#2;%
 \doifelse{\ListHead}{#1}{}{\ListHead,}%
 \doifelse{\ListTail}{\relax}{}{\doRemove{#1}{\ListTail}}%
}

\def\addBGbefore#1{\expandparameters
 \setupbackgrounds[page][background={#1,\currentvalue}]}
\def\addBGafter#1{\expandparameters
 \setupbackgrounds[page][background={\currentvalue,#1}]}
\def\removeBG#1{\expandparameters
 \setupbackgrounds[page][background={\Remove{#1}{\currentvalue}}]}

\setupcolors[state=start]
\defineoverlay[layer1][{\color[red]{this is layer 1}}]
\defineoverlay[layer2][{\rotate[rotation=30]{\color[blue]{this is layer 2}}}]
\defineoverlay[layer3][{\rotate[rotation=60]{\color[green]{this is layer 3}}}]

\starttext
\addBGafter{layer1}
\input tufte
\page
\addBGafter{layer2}
\input tufte
\page
\addBGbefore{layer3}
\input tufte
\page
\removeBG{layer2}
\Values
\input tufte
\page
\removeBG{layer1}
\input tufte
\stoptext

 


i dunno what you want to to, but why not

background={l-1,l-2,l-3,l-4}

and simply set and reset layers, with

\defineoverlay[l-1][] % gone

\defineoverlay[l-1][present]

\defineoverlay[l-1][] % gone again

Hans


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


Re: [NTG-context] multiple backgrounds

2006-01-16 Thread Hans Hagen

� wrote:


On Sun, 15 Jan 2006, Henning Hraban Ramm wrote:

 

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



Hello TeX-experts,

I tried to do the layer-subtraction, but it seems that I need more
experience with expansion in TeX. Here is the error:
! Undefined control sequence.
\GetList #1,#2;-\edef \ListHead 

 


teaser:

\def\ResetMyList{\lua{MyList = {} ;}}
\def\FlushMyList{\lua{tex.print(table.concat(MyList,,))}}
\def\AddToMyList#1#2{\lua{table.insert(MyList,#1,#2)}}
\def\RemoveFromMyList#1{\lua{table.remove(MyList,#1)}}

\defineoverlay[mine-1][ONE]
\defineoverlay[mine-2][TWO]
\defineoverlay[mine-3][THREE]

\startsetups [test] \framed[background={\FlushMyList}]{it works okay} 
\stopsetups


\ResetMyList

\AddToMyList{1}{mine-1} \setups[test]
\AddToMyList{2}{mine-2} \setups[test]
\AddToMyList{1}{mine-3} \setups[test]

\RemoveFromMyList{1} \setups[test]
\RemoveFromMyList{1} \setups[test]
\RemoveFromMyList{1} \setups[test]

but ... for at least half a year [we don't expect to have a stable user 
interface before eurotex]  you have to fall back on list processing 
macros in syst-gen.tex and syst-ext.tex


(you can add to lists, split lists and reconstruct them using those  
macros)


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


Re: [NTG-context] typo in core-ntb.tex

2006-01-16 Thread Hans Hagen

Vit Zyka wrote:


Hans Hagen wrote:


Vit Zyka wrote:


Hi,

there is typo in core-ntb.tex: \def\splittblboxb#1%

\pagina - \page




you mean, in your ancient version? not here ...

Hans



Sorry, in this case. Yes, my version is pretty deluvial. Big project 
tends to be finnished, after that I upgrade and do some backlogs...


no need to be sorry; better be redundant than ignore

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-16 Thread Mojca Miklavec
Aditya Mahajan wrote:

 Make a tree called pragma-texmf. Download cont-tmf.zip and
 cont-fnt.zip and unzip them in pragma-texmf. Go to MikTex options and
 add pragma-texmf as a tree. Move it up so that it is the first tree.
/.../
 This makes me feel whether it is a good idea to have miktex and
 context for windows (from the pragma site) in parallel. I use cygwin
 and context for windows only seems to work from cmd.exe and not
 bash.exe. I tried to convert setuptex.sh to setuptex.bash, but could
 not get to work. So, I settled with the method of downloading the
 relevant trees and things work (by black magic, as you said)

I have them (MikTeX and the stand-alone from Pragma) in parallel
without any problem. I created pragmatex.bat (visible by PATH) which
calls the setuptex.bat (or whatever the script in the stand-alone
distr. is called). The two distros don't interfere at all. Once I call
pragmatex, all the sources and executables are chosen from the
stand-alone tree when I compile the documents. (But thanks for the
idea of making another texmf-pragma tree! I always managed to break
something when mixing MikTeX and original files from Pragma, that's
why I preferred to leave things as they are and use another distro
instead.)

I'm not sure, but I guess that you would need tetex to run it from
bash. Don't ask me about the numerous (still unsolved) problems I had
just because the ruby executable is only available under cygwin at the
university.

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


[NTG-context] [Fwd: after=\page in natural tables]

2006-01-16 Thread Vit Zyka

Hello,

this example from core-ntb.tex


\startbuffer[table3]
\bTABLE[split=yes]
  \bTR \bTD left \eTD\bTD right \eTD\eTR
  \bTR[after=\page] \bTD left \eTD\bTD right \eTD\eTR
  \bTR \bTD left \eTD\bTD right \eTD\eTR
\eTABLE
\stopbuffer

\starttext
  \getbuffer[table3]
\stoptext
---

does not work. Here is a log from live-wiki:

(./texweb-table3.tmp
! Use of \dododecrement doesn't match its definition.
\doifnextcharelse ...token =#1\def \!!stringa {#2}
  \def \!!stringb
{#3}\futur...

\popTBL ...\intablefalse \fi \doglobal \decrement
  \TBLlevel \relax
l.5 \eTABLE

?
! Emergency stop.


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


Re: [NTG-context] math align

2006-01-16 Thread Hans Hagen

David Arnold wrote:


Hans, Willi, et al,

I was thinking there are pros and cons to each solution, Hans' and  
Willi's. So I tried:


Here are some simple examples of adding fractions already having  
common denominators.


%output=pdf

\input math-ext

\starttext

\placeformula[-]
\startformula
  \startalign[m=2,distance=5em]
\frac5{21}-\frac3{21}=\frac{5-3}{21} 
\frac{2}{x+2}-\frac{x-3}{x+2}=\frac{2-(x-3)}{x+2}\\
=\frac2{21}  =\frac{2-x+3}{x+2}\\
=\frac{5-x}{x+2}
  \stopalign
\stopformula

\startbuffer[1]
\framed[frame=on,width=fit]
   {\startformula
 \eqalign{
   \frac{5}{21}-\frac{3}{21}
   =\frac{5-3}{21}\cr
   =\frac{2}{21}}
   \stopformula}
\stopbuffer

\startbuffer[2]
  \framed[frame=on,width=fit]
  {\startformula
\eqalign{
  \frac2{x+2}-\frac{x-3}{x+2}
  =\frac{2-(x-3)}{x+2}\cr
  =\frac{2-x+3}{x+2}\cr
  =\frac{5-x}{x+2}}
  \stopformula}
\stopbuffer

\startbuffer
  \startcombination[2*1]
{\externalfigure[1][width=0.45\textwidth,type=buffer]}{}
{\externalfigure[2][width=0.45\textwidth,type=buffer]}{}
  \stopcombination
\stopbuffer

\placefigure
[][-]
{none}
{\getbuffer}

\stoptext

As you can see, Hans' solution works perfectly, but note the very  
ugly source code for that section. Willi's source is cleaner, much  
easier to read (especially at a later date when I will have to  
revisit for revisions), but it doesn't work (the output is scaled of  
course).


Any suggestions as to how I can fix Willi's approach so it doesn't  
scale?



wikiable:

\definecombination[twoformulas][location=top,align=middle]

\startalignment[middle] \dontleavehmode \startcombination[twoformulas][2*1]
   {\getbuffer[1]} {}
   {\getbuffer[2]} {}
\stopcombination \stopalignment

\def\StartTwo{\startalignment[middle] \dontleavehmode 
\startcombination[twoformulas][2*1]}

\def\StopTwo {\stopcombination \stopalignment}]

\StartTwo
 {\getbuffer[1]} {}
 {\getbuffer[2]} {}
\StopTwo

\StartTwo
 {\getbuffer[1]} {correct}
 {\getbuffer[2]} {wrong}
\StopTwo

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


Re: [NTG-context] [Fwd: after=\page in natural tables]

2006-01-16 Thread Hans Hagen

Vit Zyka wrote:


Hello,

this example from core-ntb.tex


\startbuffer[table3]
\bTABLE[split=yes]
  \bTR \bTD left \eTD\bTD right \eTD\eTR
  \bTR[after=\page] \bTD left \eTD\bTD right \eTD\eTR
  \bTR \bTD left \eTD\bTD right \eTD\eTR
\eTABLE
\stopbuffer

\starttext
  \getbuffer[table3]
\stoptext
---

does not work. Here is a log from live-wiki:

(./texweb-table3.tmp
! Use of \dododecrement doesn't match its definition.
\doifnextcharelse ...token =#1\def \!!stringa {#2}
  \def \!!stringb
{#3}\futur...

\popTBL ...\intablefalse \fi \doglobal \decrement
  \TBLlevel \relax
l.5 \eTABLE

?
! Emergency stop.


nasty one: we need to make \page test-safe

\unexpanded\def\pagebreak
 {\dosingleempty\dopagebreak}

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


Re: [NTG-context] math align

2006-01-16 Thread Hans Hagen

Aditya Mahajan wrote:


Maybe some way of doing this for all columns in a align, say
\startformula \startalign[align={2,right}] %This is ugly syntax, can't
  % think of something good right away
\NC a \NC= -1 \NR
\NC b \NC=  1 \NR
\stopalign \stopformula


since we hav esimple alignments here, we could make something:

\startformula \startalign[n=4,align={left,right,middle,right}]
\NC a \NC= -1 \NR
\NC b \NC=  1 \NR
\stopalign \stopformula

Does that make sense? I think that it's enough to do this for al columns 
(not per cell)


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


Re: Fwd: [NTG-context] Pagenumbers and labels

2006-01-16 Thread Hans Hagen

Idris Samawi Hamid wrote:


Dear cabal,

Got no answer yet, resending-)

Best
Idris

--- Forwarded message ---
From: Idris Samawi Hamid [EMAIL PROTECTED]
To: ntg-context@ntg.nl
Cc:
Subject: [NTG-context] Pagenumbers and labels
Date: Fri, 13 Jan 2006 14:58:48 -0700

Dear syndicate,

Three questions (test file attached):

1. A pagenumbering problem: I have

\setuppagenumbering[way=bytext]


doesn't partnumber=no work?
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] math align

2006-01-16 Thread David Arnold

Hans, Taco, et al,

If I do something like this:

\placeformula[-]
\startformula
  \startalign[m=2,distance=7em]
\frac5{21}-\frac3{21}=\frac{5-3}{21} 
\frac{2}{x+2}-\frac{x-3}{x+2}=\frac{2-(x-3)}{x+2}\\
=\frac2{21}  =\frac{2-x+3}{x+2}\\
=\frac{5-x}{x+2}
  \stopalign
\stopformula

Note that distance=7em separates the equations nicely, at least for  
the layout within which this code is contained. It might not look as  
good if the layout changes.


I'm wondering if the current math-ext allows these to be evenly  
distributed across the page without adjusting the distance?

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


Re: [NTG-context] texversion

2006-01-16 Thread Gerben Wierda
In cases like these I generally do something like this: change the  
obsolete command to display a warning (or in this release a warning  
and the exec texexec --version, then a year later only the warning,  
then later the command disappears altogether.)


G

On 15 Jan 2006, at 22:05, Taco Hoekwater wrote:


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



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


Re: [NTG-context] math align

2006-01-16 Thread Aditya Mahajan

--- On Jan 16, Hans Hagen wrote ---


Aditya Mahajan wrote:


Maybe some way of doing this for all columns in a align, say
\startformula \startalign[align={2,right}] %This is ugly syntax, can't
  % think of something good right away
\NC a \NC= -1 \NR
\NC b \NC=  1 \NR
\stopalign \stopformula


since we hav esimple alignments here, we could make something:

\startformula \startalign[n=4,align={left,right,middle,right}]
\NC a \NC= -1 \NR
\NC b \NC=  1 \NR
\stopalign \stopformula

Does that make sense? I think that it's enough to do this for al columns (not 
per cell)


Something like this will be perfect. Per column is enough, I can not 
even think of a case when per cell could be useful.


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] Font memory issues ?

2006-01-16 Thread David Wooten

Most Patient ConTeXters,

I've rested a couple of days and found that, in fact, Gerben's  
distribution generates the new fmt files in ~/Library/texmf/web2c.  
Still, none of my attempts have produced changes in the allocated  
memory.


Has anyone successfully increased the memory (e.g. font_mem_size) in  
this distribution? And if yes, could you say how it was achieved?


Kind regards,
David

On Jan 12, 2006, at 2:48 PM, David Wooten wrote:

On Jan 12, 2006, at 12:05 PM, Hans Hagen wrote:

can it be that you have multiple cnf files? kpse reads more than  
one if present


Even with multiple cnf files, if the memory settings are identical,  
should it work?


Many thanks,
David


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


Re: [NTG-context] math align

2006-01-16 Thread David Arnold

Hans,

This is pretty good!

But yes, I know that I can get some separation with:

\definecombination[twoformulas][location=top,align=middle,distance=1cm]

But, as you noted in another post, is there a way to use the full  
spread of the page where each of these maths are centered in their  
respective half of the page?





wikiable:

\definecombination[twoformulas][location=top,align=middle]

\startalignment[middle] \dontleavehmode \startcombination 
[twoformulas][2*1]

   {\getbuffer[1]} {}
   {\getbuffer[2]} {}
\stopcombination \stopalignment

\def\StartTwo{\startalignment[middle] \dontleavehmode  
\startcombination[twoformulas][2*1]}

\def\StopTwo {\stopcombination \stopalignment}]

\StartTwo
 {\getbuffer[1]} {}
 {\getbuffer[2]} {}
\StopTwo

\StartTwo
 {\getbuffer[1]} {correct}
 {\getbuffer[2]} {wrong}
\StopTwo

___
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: Fwd: [NTG-context] Pagenumbers and labels

2006-01-16 Thread Idris Samawi Hamid
On Mon, 16 Jan 2006 11:14:20 -0700, Taco Hoekwater [EMAIL PROTECTED]  
wrote:



Idris Samawi Hamid wrote:

Dear cabal,
 Got no answer yet, resending-)


It sounds to me like you only need the 'appearance' of
Parts to be present, instead of the 'actual' divisions.

If so, you could consider defining your own '\part' macro that
does a \writetolist. You can do that with something as simple as
this:

   \newcount\mypart
   \def\part#1{\page[right] \advance\mypart 1
  \expanded{\writetolist[part]{\the\mypart}{#1}}}


Thank you for the tip. I really need to practice low-level TeX coding  
more, ConTeXt has made me lazy...


Are there any manuals for with clear examples explaining the proper use of  
\expanded, \unexpanded, etc.?


:-)))

All the best
Idris

--
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

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


Re: [NTG-context] math align

2006-01-16 Thread Hans Hagen

David Arnold wrote:


Hans, Taco, et al,

If I do something like this:

\placeformula[-]
\startformula
  \startalign[m=2,distance=7em]
\frac5{21}-\frac3{21}=\frac{5-3}{21} 
\frac{2}{x+2}-\frac{x-3}{x+2}=\frac{2-(x-3)}{x+2}\\
=\frac2{21}  =\frac{2-x+3}{x+2}\\
=\frac{5-x}{x+2}
  \stopalign
\stopformula

Note that distance=7em separates the equations nicely, at least for  
the layout within which this code is contained. It might not look as  
good if the layout changes.


I'm wondering if the current math-ext allows these to be evenly  
distributed across the page without adjusting the distance?


 \startalign[m=2,distance=7em plus 1 fil]

is a start but i assume that you want it more centered

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


Re: [NTG-context] math align

2006-01-16 Thread Aditya Mahajan

--- On Jan 16, Hans Hagen wrote ---


Taco Hoekwater wrote:




David Arnold wrote:


And where should we put this module temporarily?



Put it in the local directory and do

  \input math-ext

at the top of your test files.


attached is a next version with 'definable' aligns

\definemathalign[myalign][...]

\startmyalign ...


The following works as expected.

\def\startsplit
  {\startalign[*]} % no number by default

\def\stopsplit
  {\doalignNR[+][]\crcr % for a number on last line
   \stopalign}

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

It seems that you are still thinking about [#2] in the definition of 
\definealign. Can it be such that,


\definealign[gather][n=1,align={middle}]
\definealign[lgather][n=1,align={left}]

\startformula \startgather
 a = b + c \\
 e = f
\stopgather \stopformula

results in center aligned equations
  a = b + c
e = f

and

\startformula \startlgather
 a = b + c \\
 e = f
\stoplgather \stopformula

results in left aligned equations

 a = b + c
 e = f

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] New Installation under miktex, not working

2006-01-16 Thread Aditya Mahajan

--- On Jan 16, Mojca Miklavec wrote ---


Aditya Mahajan wrote:


Make a tree called pragma-texmf. Download cont-tmf.zip and
cont-fnt.zip and unzip them in pragma-texmf. Go to MikTex options and
add pragma-texmf as a tree. Move it up so that it is the first tree.

/.../

This makes me feel whether it is a good idea to have miktex and
context for windows (from the pragma site) in parallel. I use cygwin
and context for windows only seems to work from cmd.exe and not
bash.exe. I tried to convert setuptex.sh to setuptex.bash, but could
not get to work. So, I settled with the method of downloading the
relevant trees and things work (by black magic, as you said)


I have them (MikTeX and the stand-alone from Pragma) in parallel
without any problem. I created pragmatex.bat (visible by PATH) which
calls the setuptex.bat (or whatever the script in the stand-alone
distr. is called). The two distros don't interfere at all. Once I call
pragmatex, all the sources and executables are chosen from the
stand-alone tree when I compile the documents. (But thanks for the
idea of making another texmf-pragma tree! I always managed to break
something when mixing MikTeX and original files from Pragma, that's
why I preferred to leave things as they are and use another distro
instead.)


I once again tried to install the standalone context distribution and 
it works :-). So, I deleted context from the miktex distribution and 
now use the standalone distribution. Hopefully, it will be more 
stable than in miktex.



I'm not sure, but I guess that you would need tetex to run it from
bash. Don't ask me about the numerous (still unsolved) problems I had
just because the ruby executable is only available under cygwin at the
university.


I had a similar problem. I needed cygwin ruby because there are 
certain ruby packages (e.g. narray) that I could get to work with 
cygwin ruby without any hassle but do not work with the ruby one click 
installer. But cygwin ruby and context do not go together. I was 
actually following your thread on comp.lang.ruby hoping that someone 
will come up with a solution, but no suggestion worked. What I finally 
did was, download and install the one click installer, but removed it 
from the PATH. So when I am working on other projects, I get the 
cygwin ruby which works fine. I added a line to setuptex.bat that adds 
the one-click windows ruby to the front of the path. So when a context 
program asks for a ruby, it gets the windows version and everything 
works fine. The only drawback is that I can not use rxvt+bash, and 
have to use cmd.exe


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