Re: [NTG-context] waiting for mswincontext

2007-09-19 Thread Hans Hagen
Vyatcheslav Yatskovsky wrote:
 Hello,
 
 Waiting impatiently for updated mswincontext. Would it be available from 
 Pragma tomorrow or when?

i need to update a few more binaries, and mojca and i have to fix/test a 
couple of xetex things (new xetex bin too)

Hans

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] externalfigure rotation

2007-09-19 Thread Wolfgang Schuster
On Mon, 17 Sep 2007 08:38:06 -0500
Santy, Michael [EMAIL PROTECTED] wrote:

 
 Hello,
 
 I'm looking to rotate an externalfigure inside of its bounding box in 
 increments of 90 deg.  Its real easy with 0 and 180, you can just do:
 
 \externalfigure[blah.pdf][width=5.0in, height=2.0in]
 \rotate[rotation=180]{\externalfigure[blah.pdf][width=5.0in, height=2.0in]}
 
 Both commands result with an image that is 5.0in wide and 2.0in tall.
 
 But the problem comes when rotating a externalfigure at 90 and 270 degrees 
 (or more generally, anything besides 0 and 180).  The rotation is applied to 
 the whole bounding box instead of rotating the picture within a bounding box. 
  The following images will be rendered 2.0in wide and 5.0in tall.
 
 \rotate[rotation=90]{\externalfigure[blah.pdf][width=5.0in, height=2.0in]}
 \rotate[rotation=270]{\externalfigure[blah.pdf][width=5.0in, height=2.0in]}
 
 Are there any plans to add support for specify an externalfigure's rotation 
 within its bounding box, similar to this:
 \externalfigure[blah.pdf][width=5.0in, height=2.0in, rotation=90]
 
 Cheers,
 Mike

Hi Mike,

you can control the rotation placement with the location key and the
value middle for location seems to be what you want but the the result
looks to me weird or broken and tried to fix this with the new value
center, you can see the results in small example below.

\unprotect

\def\dodorotatenextbox#1#2% quite some trial and error -)
  {\dontshowcomposition
   \dontcomplain
   \ifnum#2=\plusfour
 % new, location=middle
 \!!widthb \nextboxwd
 \!!heightb\nextboxht
 \!!depthb \nextboxdp
 \setbox\nextbox\vbox{\vskip.5\nextboxht\hskip-.5\nextboxwd
\flushnextbox}% \smashbox\nextbox
   \else\ifnum#2=\plusfive
 % wolf: location=center
 \!!widthb \nextboxwd
 \!!heightb\nextboxht
 \!!depthb \nextboxdp
 \setbox\nextbox\vbox{\vskip.5\nextboxht\hskip-.5\nextboxwd
\flushnextbox}% \smashbox\nextbox
   \fi\fi
   \!!widtha \nextboxwd
   \!!heighta\nextboxht
   \!!deptha \nextboxdp
   \!!doneafalse
   \!!donebfalse
   \ifcase#2\or
 % 1: fit
   \or
 % 2: depth, not fit
 \!!doneatrue
 \!!donebtrue
   \or
 % 3: depth, fit
 \!!donebtrue
   \fi
   \setbox\nextbox\vbox{\hbox{\raise\nextboxdp\flushnextbox}}%
   \!!dimena \nextboxht
   \calculatecos\@@rorotation\edef\cos{\calculatedcos\@@rorotation}%
   \calculatesin\@@rorotation\edef\sin{\calculatedsin\@@rorotation}%
   \@@layerxpos\zeropoint
   \@@layerypos\zeropoint
   \@@layerxoff\zeropoint
   \@@layeryoff\zeropoint
   \ifdim\sin\points\zeropoint
 \ifdim\cos\points\zeropoint
   \@@layerxsiz\cos\!!widtha
   \@@layerysiz\sin\!!widtha
   \advance\@@layerxsiz\sin\!!dimena
   \advance\@@layerysiz\cos\!!dimena
   \@@layerypos\cos\!!dimena
   \if!!donea
 \@@layerxoff  \negated\sin\!!dimena
 \advance\@@layerxoff  \sin\!!deptha
   \fi
   \if!!doneb
 \@@layeryoff  \cos\!!deptha
   \fi
   \dododorotatenextbox
 \else
   \@@layerxsiz\negated\cos\!!widtha
   \@@layerysiz\sin\!!widtha
   \advance\@@layerxsiz\sin\!!dimena
   \advance\@@layerysiz\negated\cos\!!dimena
   \@@layerxpos\negated\cos\!!widtha
   \if!!donea
 \@@layerxoff -\@@layerxsiz
 \advance\@@layerxoff  \sin\!!deptha
   \fi
   \if!!doneb
 \@@layeryoff  \negated\cos\!!heighta
   \fi
   \dododorotatenextbox
   \wd\nextbox\if!!donea\sin\!!deptha\else\@@layerxsiz\fi
 \fi
   \else
 \ifdim\cos\points\zeropoint
   \@@layerxsiz   \negated\cos\!!widtha
   \@@layerysiz   \negated\sin\!!widtha
   \advance\@@layerxsiz   \negated\sin\!!dimena
   \advance\@@layerysiz   \negated\cos\!!dimena
   \@@layerxpos\@@layerxsiz
   \@@layerypos\negated\sin\!!widtha
   \if!!donea
 \@@layerxoff -\@@layerxsiz
 \advance\@@layerxoff  \negated\sin\!!heighta
   \fi
   \if!!doneb
 \@@layeryoff  \@@layerysiz
 \advance\@@layeryoff  \cos\!!deptha
   \fi
   \dododorotatenextbox
   \wd\nextbox\if!!donea\negated\sin\!!heighta\else\@@layerxsiz\fi
 \else
   \@@layerxsiz\cos\!!widtha
   \@@layerysiz\negated\sin\!!widtha
   \advance\@@layerxsiz\negated\sin\!!dimena
   \advance\@@layerysiz\cos\!!dimena
   \ifdim\sin\points=\zeropoint
 \@@layerxpos   \zeropoint
 \@@layerxoff   \zeropoint
 \@@layerypos  \@@layerysiz
 \if!!doneb
   \@@layeryoff \!!deptha
 \fi
   \else
 \@@layerypos  

[NTG-context] merging data from four files in one document

2007-09-19 Thread Jelle Huisman
Hi all,

I try to merge data from four files in one document. The source files 
are simple text files, each with 420 numbered lines of text. I have 
created a simple natural table with cells for the different pieces of 
data. I would like to make one document with 420 tables, each with the 
right data from the four source files (so Table 1 with data from line 1 
from file One and line 1 from file Two and line 1 from file Three and 
line 1 from file Four, and next Table 2 with data from line 2 from file 
One and line 2 from file Two et cetera...) What is the best way to 
automate this process?

Thanks,

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] merging data from four files in one document

2007-09-19 Thread Aditya Mahajan
On Wed, 19 Sep 2007, Jelle Huisman wrote:

 Hi all,

 I try to merge data from four files in one document. The source files
 are simple text files, each with 420 numbered lines of text. I have
 created a simple natural table with cells for the different pieces of
 data. I would like to make one document with 420 tables, each with the
 right data from the four source files (so Table 1 with data from line 1
 from file One and line 1 from file Two and line 1 from file Three and
 line 1 from file Four, and next Table 2 with data from line 2 from file
 One and line 2 from file Two et cetera...) What is the best way to
 automate this process?

Write a script in your favourite language to create the 420 natural 
tables. Then call your script from ConTeXt and then use \write18 or 
\executesystemcommand to run it (See 
http://wiki.contextgarden.net/executesystemcommand and 
http://wiki.contextgarden.net/Write18), and then \input the file that 
is created.

You can also do the whole thing in TeX, but IMHO it is not worth the 
effort. An alternative may be to use LuaTeX, where you write your 
script in lua, and execute it directly in luatex. This will have a 
slight speed advantage.


Aditya
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] waiting for mswincontext

2007-09-19 Thread Idris Samawi Hamid
On Wed, 19 Sep 2007 01:46:32 -0600, Hans Hagen [EMAIL PROTECTED] wrote:

 Vyatcheslav Yatskovsky wrote:
 Hello,

 Waiting impatiently for updated mswincontext. Would it be available  
 from Pragma tomorrow or when?

 i need to update a few more binaries, and mojca and i have to fix/test a
 couple of xetex things (new xetex bin too)

Don't forget to incorporate tex-gyre, including otf's!

Best wishes
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/

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] waiting for mswincontext

2007-09-19 Thread Wolfgang Schuster
On Wed, 19 Sep 2007 09:46:32 +0200
Hans Hagen [EMAIL PROTECTED] wrote:

 Vyatcheslav Yatskovsky wrote:
  Hello,
  
  Waiting impatiently for updated mswincontext. Would it be available from 
  Pragma tomorrow or when?
 
 i need to update a few more binaries, and mojca and i have to fix/test a 
 couple of xetex things (new xetex bin too)
 
 Hans

Hi Hans,

can you also add ini files for the plain TeX formats with XeTeX, pdfTeX
and LuaTeX and the fonts.conf file for XeTeX. I prefer plain TeX for
test files or simple documents where I can live without ConTeXt and
this should work out of the box and not only after I create the files
by myself.

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] waiting for mswincontext

2007-09-19 Thread Taco Hoekwater



Wolfgang Schuster wrote:
 On Wed, 19 Sep 2007 09:46:32 +0200
 Hans Hagen [EMAIL PROTECTED] wrote:
 
 Vyatcheslav Yatskovsky wrote:
 Hello,

 Waiting impatiently for updated mswincontext. Would it be available from 
 Pragma tomorrow or when?
 i need to update a few more binaries, and mojca and i have to fix/test a 
 couple of xetex things (new xetex bin too)

 Hans
 
 Hi Hans,
 
 can you also add ini files for the plain TeX formats with XeTeX, pdfTeX

Hey, you lot! They are supposed to be minimals. If you suggest adding
something, I really think you should suggest removing something at the
same time :-)

Taco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] waiting for mswincontext

2007-09-19 Thread Vyatcheslav Yatskovsky
Thank you, Hans and Mojca, for replies.

The story started in Septemper, 10, when I updated cont-tmf files for my 
mswincontext. I did it many times (once there was new update available) but 
this time I'm gone into trouble. Context started producing broken pdfs for 
every document with third-party font. I spent many days in trying hard to fix 
the issue, but nothing was helpful. I was suggested many ideas from the 
community, until Hans and Taco noticed that the latest cont-tmf is not in sync 
with binaries! 

How could I ever know that, if these files were posted on current CONTEXT 
distribution page? My further attempts to update luatex binary alone did not 
succeed.  I was very angry.  Now I wait till Owners regenerate the big things 
and I can get proven worked version  for Windows. Hope it will be soon.

-- 
Best regards,
Vyatcheslav Yatskovsky

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] waiting for mswincontext

2007-09-19 Thread Hans Hagen
Wolfgang Schuster wrote:
 On Wed, 19 Sep 2007 09:46:32 +0200
 Hans Hagen [EMAIL PROTECTED] wrote:
 
 Vyatcheslav Yatskovsky wrote:
 Hello,

 Waiting impatiently for updated mswincontext. Would it be available from 
 Pragma tomorrow or when?
 i need to update a few more binaries, and mojca and i have to fix/test a 
 couple of xetex things (new xetex bin too)

 Hans
 
 Hi Hans,
 
 can you also add ini files for the plain TeX formats with XeTeX, pdfTeX
 and LuaTeX and the fonts.conf file for XeTeX. I prefer plain TeX for
 test files or simple documents where I can live without ConTeXt and
 this should work out of the box and not only after I create the files
 by myself.

what's wrong with

texexec --make --all --xetex plain

and alike? i have nu clue what ini files are for

Hans


-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Spacing between formula and texts

2007-09-19 Thread Zhichu Chen
Hi,

I happened to review the output of my article and found one thing which is
not perfect for me. The spacing between a formula and its upper texts is not
treated well when I tuned with some indent things. Here is my test file

\usemodule[units]

\setupindenting[big]
\indenting[always,next]
% no, not, yes, always, never, first, next

% \setupformulas[spacebefore=5em]

\starttext

Blah,
blah, blah, blah, blah, blah, blah, blah, blah,
blah, blah, blah, blah, blah, blah, blah, blah,
blah, blah, blah, blah, blah, blah, blah, blah,
blah, blah, blah, blah, blah, blah, blah, blah,
I love the following formula:
\placeformula[-]
  \startformula
6.670 \times 10^{-11} \Newton \Times \Square \Meter \Per \Square \Kilo
\Gram
  \stopformula
which is very cool.
which is very cool.
which is very cool.
which is very cool.
which is very cool.

% \showmathcharacters

\stoptext


I'm really uncomfortable with that, and I want to solve it by myself. When I
looked up the indent macros in core-spa.tex, how complex is that. So I just
hope you guys could help me.

-- 
Best Regards
Chen


  Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
 No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
 tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
   | www.sinap.ac.cn

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] waiting for mswincontext

2007-09-19 Thread Joel C. Salomon
On 9/19/07, Hans Hagen [EMAIL PROTECTED] wrote:
 i need to update a few more binaries, and mojca and i have to fix/test a
 couple of xetex things (new xetex bin too)

So the minimal distribution will come with mkii, mkiii, and mkiv?  Thanks!

One question: does the bundled LuaTeX track the current (semi)stable
LuaTeX releases?

--Joel
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] waiting for mswincontext

2007-09-19 Thread Joel C. Salomon
On 9/19/07, Idris Samawi Hamid [EMAIL PROTECTED] wrote:
 Don't forget to incorporate tex-gyre, including otf's!

Is the installation really that hard?

I'd rather have a tarball to be unzipped over the directory tree than
have a constantly growing 'minimal' installation.

--Joel
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] waiting for mswincontext

2007-09-19 Thread Hans Hagen
Joel C. Salomon wrote:
 On 9/19/07, Hans Hagen [EMAIL PROTECTED] wrote:
 i need to update a few more binaries, and mojca and i have to fix/test a
 couple of xetex things (new xetex bin too)
 
 So the minimal distribution will come with mkii, mkiii, and mkiv?  Thanks!

well, mkiii is something virtual -)

pdftex/xetex support is in the tex+mkii files
luatex   support is in the tex+mkiv files

the deviattion of xetex from pdftex is currently not large enough to add 
mkiii files

the context zip will always have it all

 One question: does the bundled LuaTeX track the current (semi)stable
 LuaTeX releases?

sure, when i make zips i add the bins that i use

however, in the near future minimals will be delivered differently, 
rsynced from the contextgarden and optionally be way more minimal, esp 
with regards to fonts:

pdftex: no opentype, less afm files, gyre instead of old, lm type1 (only 
encodings that make sense)

xetex: only opentype + math

luatex: idem

of course one can merge all

Hans

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] waiting for mswincontext

2007-09-19 Thread Idris Samawi Hamid
On Wed, 19 Sep 2007 10:33:42 -0600, Joel C. Salomon  
[EMAIL PROTECTED] wrote:

 On 9/19/07, Idris Samawi Hamid [EMAIL PROTECTED] wrote:
 Don't forget to incorporate tex-gyre, including otf's!

 Is the installation really that hard?

The last time I installed TeX-Gyre only two fonts worked and the rest did  
not.

The point is that debugging when things go wrong takes time and some of us  
are just too busy to have to to debug every little thing. It seems to me  
that TeX-Gyre is one of those things that should work out of the box, like  
lm.

 I'd rather have a tarball to be unzipped over the directory tree than
 have a constantly growing 'minimal' installation.

Finally, mswincontext.zip is not really minimal but maximal ;-)  
Updates to TeX-Gyre could be supported as a package a la cont-tmf.zip of  
course.

Best wishes
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/

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] waiting for mswincontext

2007-09-19 Thread Wolfgang Schuster
On Wed, 19 Sep 2007 16:45:45 +0200
Hans Hagen [EMAIL PROTECTED] wrote:

 Wolfgang Schuster wrote:
  On Wed, 19 Sep 2007 09:46:32 +0200
  Hans Hagen [EMAIL PROTECTED] wrote:
  
  Vyatcheslav Yatskovsky wrote:
  Hello,
 
  Waiting impatiently for updated mswincontext. Would it be available from 
  Pragma tomorrow or when?
  i need to update a few more binaries, and mojca and i have to fix/test a 
  couple of xetex things (new xetex bin too)
 
  Hans
  
  Hi Hans,
  
  can you also add ini files for the plain TeX formats with XeTeX, pdfTeX
  and LuaTeX and the fonts.conf file for XeTeX. I prefer plain TeX for
  test files or simple documents where I can live without ConTeXt and
  this should work out of the box and not only after I create the files
  by myself.
 
 what's wrong with
 
 texexec --make --all --xetex plain

it could be just a matter of taste but I prefer to call just pdftex or
xetex and the engine with the preloaded plain TeX formats, this is
shorter because the format files pdftex.fmt or xetex.fmt are loaded by
default with the engines and xetex has sets also charclasses to a few
charcaters in his own plain format.

 and alike? i have nu clue what ini files are for

nearly the same thing you do with your cont-de, cont-en files, the load
plain.tex and seta few option like pdfoutput=1 in pdftex.ini.

A simple pdftex.ini could look like

\input plain
\pdfoutput=1
\dump

I know the ini files from w32tex and don't know how the other TeX
distributions like TeXlive or MikTeX handle the formats but I like this
system and the ini files also in the ConTeXt minimals.

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] waiting for mswincontext

2007-09-19 Thread Mojca Miklavec
 Don't forget to incorporate tex-gyre, including otf's!

I will force Hans into doing that in case he doesn't :)
Joking, of course.

But I would be glad if someone could help me testing fonts in
http://dl.contextgarden.net/misc/fonts/fonts.zip
It contains three folders: old, new and common.

You should be able to use any polish fonts with pdftex by using only
old and common. And you should be able to use any polish fonts with
xetex and luatex by using only new and common.

I still need to add dvipdfm map files for math for context though.

Try to fetch those files: they should work. Hopefully.

Mojca

PS: there are some plans to improve the minimals a bit. But they're
not ready yet.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] waiting for mswincontext

2007-09-19 Thread Wolfgang Schuster
On Wed, 19 Sep 2007 16:45:25 +0200
Taco Hoekwater [EMAIL PROTECTED] wrote:

 
 
 
 Wolfgang Schuster wrote:
  On Wed, 19 Sep 2007 09:46:32 +0200
  Hans Hagen [EMAIL PROTECTED] wrote:
  
  Vyatcheslav Yatskovsky wrote:
  Hello,
 
  Waiting impatiently for updated mswincontext. Would it be available from 
  Pragma tomorrow or when?
  i need to update a few more binaries, and mojca and i have to fix/test a 
  couple of xetex things (new xetex bin too)
 
  Hans
  
  Hi Hans,
  
  can you also add ini files for the plain TeX formats with XeTeX, pdfTeX
 
 Hey, you lot! They are supposed to be minimals. If you suggest adding
 something, I really think you should suggest removing something at the
 same time :-)

How about the bib module :-)

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] waiting for mswincontext

2007-09-19 Thread Mojca Miklavec
  can you also add ini files for the plain TeX formats with XeTeX, pdfTeX

 Hey, you lot! They are supposed to be minimals. If you suggest adding
 something, I really think you should suggest removing something at the
 same time :-)

But I would agree that it would be nice to be able to run plain
(pdf)TeX and plain metapost with minimals. To be honest, almost
everything is there already, with the only exception that the formats
aren't generated automatically as they are in TeX Live for example.

Having pdftex.fmt, xetex.fmt and mpost.mem generated automatically
would be great, and not much overhead. (Perhaps a file or two are
needed for xetex.fmt, not much more.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] waiting for mswincontext

2007-09-19 Thread Hans Hagen
Mojca Miklavec wrote:
 can you also add ini files for the plain TeX formats with XeTeX, pdfTeX
 Hey, you lot! They are supposed to be minimals. If you suggest adding
 something, I really think you should suggest removing something at the
 same time :-)
 
 But I would agree that it would be nice to be able to run plain
 (pdf)TeX and plain metapost with minimals. To be honest, almost
 everything is there already, with the only exception that the formats
 aren't generated automatically as they are in TeX Live for example.
 
 Having pdftex.fmt, xetex.fmt and mpost.mem generated automatically
 would be great, and not much overhead. (Perhaps a file or two are
 needed for xetex.fmt, not much more.

as taco mentioned ... adding stuff will never end then ... could be 
another 'download option'

btw, the plain version of luatex has the same basic file stuff as mkiv, 
so it does zip files and alike, some day also open type

Hans

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] waiting for mswincontext

2007-09-19 Thread Hans Hagen
Wolfgang Schuster wrote:

 texexec --make --all --xetex plain
 
 it could be just a matter of taste but I prefer to call just pdftex or
 xetex and the engine with the preloaded plain TeX formats, this is
 shorter because the format files pdftex.fmt or xetex.fmt are loaded by
 default with the engines and xetex has sets also charclasses to a few
 charcaters in his own plain format.

can still be done, we're just talking about making formats and that also 
involves moving files to directories and such (initex puts formats in 
the current dir)

 and alike? i have nu clue what ini files are for
 
 nearly the same thing you do with your cont-de, cont-en files, the load
 plain.tex and seta few option like pdfoutput=1 in pdftex.ini.
 
 A simple pdftex.ini could look like
 
 \input plain
 \pdfoutput=1
 \dump

hm, to be honest, i dislike such defaults, esp since normally switches 
to engines go along with selective loading or other initializations,

afaik those ini files are used by fmtutil and that is (and will not be) 
not part of the minimals

 I know the ini files from w32tex and don't know how the other TeX
 distributions like TeXlive or MikTeX handle the formats but I like this
 system and the ini files also in the ConTeXt minimals.

would not help since generating format is not done that way in minimals

btw,

pdftex --ini plain \\pdfoutput=1 \dump

can do the same for you, but as said .. if the minimals would have plain 
formats they would default to dvi anyway so it would be of no help to you

Hans

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] waiting for mswincontext

2007-09-19 Thread Hans Hagen
Idris Samawi Hamid wrote:
 On Wed, 19 Sep 2007 10:33:42 -0600, Joel C. Salomon  
 [EMAIL PROTECTED] wrote:
 
 On 9/19/07, Idris Samawi Hamid [EMAIL PROTECTED] wrote:
 Don't forget to incorporate tex-gyre, including otf's!
 Is the installation really that hard?
 
 The last time I installed TeX-Gyre only two fonts worked and the rest did  
 not.
 
 The point is that debugging when things go wrong takes time and some of us  
 are just too busy to have to to debug every little thing. It seems to me  
 that TeX-Gyre is one of those things that should work out of the box, like  
 lm.

sure, but since they are under development, names change, locations 
change etc i don't look into it on a daily basis (already overloaded)

 I'd rather have a tarball to be unzipped over the directory tree than
 have a constantly growing 'minimal' installation.
 
 Finally, mswincontext.zip is not really minimal but maximal ;-)  
 Updates to TeX-Gyre could be supported as a package a la cont-tmf.zip of  
 course.

we had that a while but inconsistencies showed up

Hans

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] waiting for mswincontext

2007-09-19 Thread Idris Samawi Hamid
On Wed, 19 Sep 2007 08:45:25 -0600, Taco Hoekwater [EMAIL PROTECTED]  
wrote:

 Wolfgang Schuster wrote:

 can you also add ini files for the plain TeX formats with XeTeX, pdfTeX

 Hey, you lot! They are supposed to be minimals. If you suggest adding
 something, I really think you should suggest removing something at the
 same time :-)

I think many of us see mswincontext.zip as more maximal, not minimal.  
For me, mswincontext IS my TeX distribution. And the free community fonts  
like TeX-Gyre should be in there by default, without having to spend hours  
configuring packages from outside pragma when they don't work ;-)

Best wishes
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/

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] waiting for mswincontext

2007-09-19 Thread Mojca Miklavec
On 9/19/07, Hans Hagen wrote:
 btw,

 pdftex --ini plain \\pdfoutput=1 \dump

 can do the same for you, but as said .. if the minimals would have plain
 formats they would default to dvi anyway so it would be of no help to you

pdftex.fmt and mpost.mem would be perfectly fine. No need for
plain.fmt (I guess). (And maybe xetex.fmt as a sugar, although that
one might need some additional files.)

It might be extremely simple to generate format the way you describe
above, but perhaps
texexec --make pdftex mpost xetex
could have done the the same job instead (since people are used to it)?

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] register: spurious space one more entry level ask

2007-09-19 Thread Vit Zyka
Dear ConTeXters,

there are 3 topics dealing with register (index):

1. [Spurious space] There are entries like
  \registerpage{index}{,}{5}{2--1-1-0-1-0-0-0--1}{2}
in a *.tuo file. Since the definition (core-reg.tex)
  \def\dosetpageregisterpage#1#2#3#4#5#6%
{\doifreglevelelse[#5]%
  {\dodosetpageregisterpage{#1}{#2}{#3}{#4}{#5}{#6}}%
  {}}
there will be a spurious space between page number like
  Entry 23 , 67
instead of
  Entry 23, 67

Solution:
  \def\dosetpageregisterpage#1#2#3#4#5#6%
{\doifreglevelelse[#5]%
  {\dodosetpageregisterpage{#1}{#2}{#3}{#4}{#5}{#6}}%
  {}\ignorespaces}

Test file:
--
\starttext
  Text\index{test}.
  \page[yes]
  Paragraph\index{test}.
  \placeindex
\stoptext
--

2. [feature request] Current register implementation enable upto three 
entry level (\index{level 1+level 2+level 3}). My custommer require 4 
levels. Please could the entry number be extended?

3. [not important, just for info] Formating of the register entries is 
not much user friendly. See \hangindent1em in a following definition:

   \def\dosetpageregisterentrya#1#2%
 {\flushseenregisterpage
  \edef\currententrylevel{1}%
  \global\let\c!entryb\relax
  \global\let\c!entryc\relax
  \gdef\c!entrya
{\iffirstregisterentry\else\endgraf\fi % new
 \global\firstregisterpagetrue
 \hangindent1em\noindent\c!entryreference
 \dohandlepageregisterentry{#1}{#2}%
 \global\firstregisterentryfalse
 \global\firstsubentrytrue
 \global\firstsubsubentrytrue}}

So, when one want the change formating he has to redefine this 
definition. It is against a ConTeXt spirit.

Best
Vit

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Spacing between formula and texts

2007-09-19 Thread Zhichu Chen
Hi Wolfgang,

On 9/20/07, Wolfgang Schuster [EMAIL PROTECTED] wrote:

 On Wed, 19 Sep 2007 23:30:26 +0800
 Zhichu Chen [EMAIL PROTECTED] wrote:

  \usemodule[units]
 
  \setupindenting[big]
  \indenting[always,next]
  % no, not, yes, always, never, first, next
 
  % \setupformulas[spacebefore=5em]
 
  \starttext
 
  Blah,
  blah, blah, blah, blah, blah, blah, blah, blah,
  blah, blah, blah, blah, blah, blah, blah, blah,
  blah, blah, blah, blah, blah, blah, blah, blah,
  blah, blah, blah, blah, blah, blah, blah, blah,
  I love the following formula:
  \placeformula[-]
\startformula
  6.670 \times 10^{-11} \Newton \Times \Square \Meter \Per \Square
 \Kilo
  \Gram
\stopformula
  which is very cool.
  which is very cool.
  which is very cool.
  which is very cool.
  which is very cool.
 
  % \showmathcharacters
 
  \stoptext

 Hi Chen,

 I can't give a real solution but only a workaround, the problem lies in
 the macro \beforedisplayspace which calls \docomplexdoblank which calls
 itself \presetindentation and this macro causes your real problem.

 You solve this now by placing \let\presetindentation\relax at the begin
 in your document or remove the next key for \setupindenting.


Really! It works fine with first key. OK, I can just live with that,
although I hope Hans will have time to fix it, it's not so cool with the
first paragraph indented :)

This is all what I can do for you in a few minutes, the rest is up to
 Hans to make a extra test in \beforedisplay or somewhere else to
 disable \preetindentation before a display formula.

 Wolfgang

 ___
 If your question is of interest to others as well, please add an entry to
 the Wiki!

 maillist : ntg-context@ntg.nl /
 http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net

 ___




-- 
Best Regards
Chen


  Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
 No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
 tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
   | www.sinap.ac.cn

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] waiting for mswincontext

2007-09-19 Thread Idris Samawi Hamid
On Wed, 19 Sep 2007 11:25:35 -0600, Wolfgang Schuster  
[EMAIL PROTECTED] wrote:

 Hey, you lot! They are supposed to be minimals. If you suggest adding
 something, I really think you should suggest removing something at the
 same time :-)

 How about the bib module :-)

LOL, best joke I've heard all week...

Err, well, you had BETTER be joking ;-)

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/

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] waiting for mswincontext

2007-09-19 Thread Hans Hagen
Mojca Miklavec wrote:
 On 9/19/07, Hans Hagen wrote:
 btw,

 pdftex --ini plain \\pdfoutput=1 \dump

 can do the same for you, but as said .. if the minimals would have plain
 formats they would default to dvi anyway so it would be of no help to you
 
 pdftex.fmt and mpost.mem would be perfectly fine. No need for
 plain.fmt (I guess). (And maybe xetex.fmt as a sugar, although that
 one might need some additional files.)

pdftex --ini -fmt=pdftex plain.tex \\pdfoutput=1 \dump

probably does that, but as said, everyone wants his/her own variant 
(patterns to start with -)

is you know how to use plain, then you also know how to make.call 
formats -)

btw,

luatools --make --compile plain
luatools --run plain

as stub is needed for plain in order to get the lua files loaded (also 
because we bypass kpse)

 It might be extremely simple to generate format the way you describe
 above, but perhaps
 texexec --make pdftex mpost xetex
 could have done the the same job instead (since people are used to it)?

sure, but i haven't used plain in ages and using texexec for plain is 
kind of overkill, so i happily leave that to others to deal with

as said, minimals are minimal and should be more minimal instead of 
adding stuff; the current minimals are way to big (for me)

personally i always find it kind of annoying that when i download an 
achive with binaries, that i also get format files that i don't use (or 
know)

Hans

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] register: spurious space one more entry level ask

2007-09-19 Thread Hans Hagen
Vit Zyka wrote:
 Dear ConTeXters,
 
 there are 3 topics dealing with register (index):
 
 1. [Spurious space] There are entries like
   \registerpage{index}{,}{5}{2--1-1-0-1-0-0-0--1}{2}
 in a *.tuo file. Since the definition (core-reg.tex)
   \def\dosetpageregisterpage#1#2#3#4#5#6%
 {\doifreglevelelse[#5]%
   {\dodosetpageregisterpage{#1}{#2}{#3}{#4}{#5}{#6}}%
   {}}
 there will be a spurious space between page number like
   Entry 23 , 67
 instead of
   Entry 23, 67
 
 Solution:
   \def\dosetpageregisterpage#1#2#3#4#5#6%
 {\doifreglevelelse[#5]%
   {\dodosetpageregisterpage{#1}{#2}{#3}{#4}{#5}{#6}}%
   {}\ignorespaces}

interesting that no one noticed this before ... in core-uti.tex pushing 
the line ending was messed up when changing to catcode tables (well, 
pseudo ones in mkii)

\long\def\doutilities#1#2#3#4#5% % introduceren in utility file
   {\resetutilities
% more than one utility thing can be handled in one pass,
% for instance lists, so we process ##1 as list
\def\douticommand##1{\csname\s!set##1\endcsname}%
\processcommacommand[#1]\douticommand
\begingroup
\def\currentutilityfilename{#2}%
\notesenabledfalse
\doinpututilitiestrue
\global\utilitydonefalse
\pushcatcodetable
\setcatcodetable\ctxcatcodes
\pushendofline % 
\ifunprotectutilities % nog nodig ?
  \unprotect
\fi


 2. [feature request] Current register implementation enable upto three 
 entry level (\index{level 1+level 2+level 3}). My custommer require 4 
 levels. Please could the entry number be extended?

not trivial, since we then need to adapt texutil too + a bunch of 
macros; adapting mkiv may be easier

 3. [not important, just for info] Formating of the register entries is 
 not much user friendly. See \hangindent1em in a following definition:
 
\def\dosetpageregisterentrya#1#2%
  {\flushseenregisterpage
   \edef\currententrylevel{1}%
   \global\let\c!entryb\relax
   \global\let\c!entryc\relax
   \gdef\c!entrya
 {\iffirstregisterentry\else\endgraf\fi % new
  \global\firstregisterpagetrue
  \hangindent1em\noindent\c!entryreference
  \dohandlepageregisterentry{#1}{#2}%
  \global\firstregisterentryfalse
  \global\firstsubentrytrue
  \global\firstsubsubentrytrue}}
 
 So, when one want the change formating he has to redefine this 
 definition. It is against a ConTeXt spirit.

some day there will be a better interface (probably only in mkiv)

Hans

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] waiting for mswincontext

2007-09-19 Thread Hans Hagen
Idris Samawi Hamid wrote:
 On Wed, 19 Sep 2007 11:25:35 -0600, Wolfgang Schuster  
 [EMAIL PROTECTED] wrote:
 
 Hey, you lot! They are supposed to be minimals. If you suggest adding
 something, I really think you should suggest removing something at the
 same time :-)
 How about the bib module :-)
 
 LOL, best joke I've heard all week...
 
 Err, well, you had BETTER be joking ;-)

well, if someone keys in my books in a bib file, i'll make a lua variant -)

actually, i may look into that some day (when i'm bored) because it will 
make bib handling much easier

Hans



-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Spacing between formula and texts

2007-09-19 Thread Wolfgang Schuster
On Wed, 19 Sep 2007 23:30:26 +0800
Zhichu Chen [EMAIL PROTECTED] wrote:

 \usemodule[units]
 
 \setupindenting[big]
 \indenting[always,next]
 % no, not, yes, always, never, first, next
 
 % \setupformulas[spacebefore=5em]
 
 \starttext
 
 Blah,
 blah, blah, blah, blah, blah, blah, blah, blah,
 blah, blah, blah, blah, blah, blah, blah, blah,
 blah, blah, blah, blah, blah, blah, blah, blah,
 blah, blah, blah, blah, blah, blah, blah, blah,
 I love the following formula:
 \placeformula[-]
   \startformula
 6.670 \times 10^{-11} \Newton \Times \Square \Meter \Per \Square \Kilo
 \Gram
   \stopformula
 which is very cool.
 which is very cool.
 which is very cool.
 which is very cool.
 which is very cool.
 
 % \showmathcharacters
 
 \stoptext

Hi Chen,

I can't give a real solution but only a workaround, the problem lies in
the macro \beforedisplayspace which calls \docomplexdoblank which calls
itself \presetindentation and this macro causes your real problem.

You solve this now by placing \let\presetindentation\relax at the begin
in your document or remove the next key for \setupindenting.

This is all what I can do for you in a few minutes, the rest is up to
Hans to make a extra test in \beforedisplay or somewhere else to
disable \preetindentation before a display formula.

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] register: spurious space one more entry level ask

2007-09-19 Thread Vit Zyka
Jupi!

Both patches (space  4-level entry) work well as I can test them till 
now. I will do some testing on a real and big document in a near future.

Do you intend to incorporate both patches to the distribution?

Thank you Hans for extremely quick solutions
Vit

Hans Hagen wrote:
 Vit Zyka wrote:
 Dear ConTeXters,

 there are 3 topics dealing with register (index):

 1. [Spurious space] There are entries like
   \registerpage{index}{,}{5}{2--1-1-0-1-0-0-0--1}{2}
 in a *.tuo file. Since the definition (core-reg.tex)
   \def\dosetpageregisterpage#1#2#3#4#5#6%
 {\doifreglevelelse[#5]%
   {\dodosetpageregisterpage{#1}{#2}{#3}{#4}{#5}{#6}}%
   {}}
 there will be a spurious space between page number like
   Entry 23 , 67
 instead of
   Entry 23, 67

 Solution:
   \def\dosetpageregisterpage#1#2#3#4#5#6%
 {\doifreglevelelse[#5]%
   {\dodosetpageregisterpage{#1}{#2}{#3}{#4}{#5}{#6}}%
   {}\ignorespaces}
 
 interesting that no one noticed this before ... in core-uti.tex pushing 
 the line ending was messed up when changing to catcode tables (well, 
 pseudo ones in mkii)
 
 \long\def\doutilities#1#2#3#4#5% % introduceren in utility file
   {\resetutilities
% more than one utility thing can be handled in one pass,
% for instance lists, so we process ##1 as list
\def\douticommand##1{\csname\s!set##1\endcsname}%
\processcommacommand[#1]\douticommand
\begingroup
\def\currentutilityfilename{#2}%
\notesenabledfalse
\doinpututilitiestrue
\global\utilitydonefalse
\pushcatcodetable
\setcatcodetable\ctxcatcodes
\pushendofline % 
\ifunprotectutilities % nog nodig ?
  \unprotect
\fi
 
 
 2. [feature request] Current register implementation enable upto three 
 entry level (\index{level 1+level 2+level 3}). My custommer require 4 
 levels. Please could the entry number be extended?
 
 not trivial, since we then need to adapt texutil too + a bunch of 
 macros; adapting mkiv may be easier
 
 3. [not important, just for info] Formating of the register entries is 
 not much user friendly. See \hangindent1em in a following definition:

\def\dosetpageregisterentrya#1#2%
  {\flushseenregisterpage
   \edef\currententrylevel{1}%
   \global\let\c!entryb\relax
   \global\let\c!entryc\relax
   \gdef\c!entrya
 {\iffirstregisterentry\else\endgraf\fi % new
  \global\firstregisterpagetrue
  \hangindent1em\noindent\c!entryreference
  \dohandlepageregisterentry{#1}{#2}%
  \global\firstregisterentryfalse
  \global\firstsubentrytrue
  \global\firstsubsubentrytrue}}

 So, when one want the change formating he has to redefine this 
 definition. It is against a ConTeXt spirit.
 
 some day there will be a better interface (probably only in mkiv)
 
 Hans
 
 -
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
 -

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] waiting for mswincontext

2007-09-19 Thread Aditya Mahajan
On Wed, 19 Sep 2007, Hans Hagen wrote:
 well, if someone keys in my books in a bib file, i'll make a lua variant -)

hmm  how many books do you have? :)

Aditya
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] indent and blank question

2007-09-19 Thread frantisek holop
hi there,

i am working on a book format document using:

\setupindenting[medium,yes]

so the parapgrahps have no whitespace between but the first line
of the next paragraph is indented.

as is customary, i would like to start a new part (lacking a better
word) of the same chapter without a title, unrelated to the previous
text but not warranting a new chapter.  some books put some symbols
inbetween these chapter parts like three stars or something.

if a put a \blank and start a new paragprah, it gets indented.

i know i can use \noindent to get what i want, but my question is,
is there something more automatic, a space command which makes
the next paragraph unindented or something?

or for example if i wanted to put the 3 stars there, could i redefine
subject or subsubject to output these _and_ make the next paragprah
unindented?

-f
-- 
the golden rule:  he who has the gold makes the rules.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] externalfigure rotation

2007-09-19 Thread Duane Johnson
Thanks for sharing this, Wolfgang.  Very nice effects!

Duane Johnson
(canadaduane)

On Sep 19, 2007, at 5:55 AM, Wolfgang Schuster wrote:
 Hi Mike,

 you can control the rotation placement with the location key and the
 value middle for location seems to be what you want but the the result
 looks to me weird or broken and tried to fix this with the new value
 center, you can see the results in small example below.

 \unprotect

 \def\dodorotatenextbox#1#2% quite some trial and error -)
   {\dontshowcomposition
\dontcomplain
\ifnum#2=\plusfour
  % new, location=middle
  \!!widthb \nextboxwd
  \!!heightb\nextboxht
  \!!depthb \nextboxdp
  \setbox\nextbox\vbox{\vskip.5\nextboxht\hskip-.5\nextboxwd
 \flushnextbox}% \smashbox\nextbox
\else\ifnum#2=\plusfive
  % wolf: location=center
  \!!widthb \nextboxwd
  \!!heightb\nextboxht
  \!!depthb \nextboxdp
  \setbox\nextbox\vbox{\vskip.5\nextboxht\hskip-.5\nextboxwd
 \flushnextbox}% \smashbox\nextbox
\fi\fi
\!!widtha \nextboxwd
\!!heighta\nextboxht
\!!deptha \nextboxdp
\!!doneafalse
\!!donebfalse
\ifcase#2\or
  % 1: fit
\or
  % 2: depth, not fit
  \!!doneatrue
  \!!donebtrue
\or
  % 3: depth, fit
  \!!donebtrue
\fi
\setbox\nextbox\vbox{\hbox{\raise\nextboxdp\flushnextbox}}%
\!!dimena \nextboxht
\calculatecos\@@rorotation\edef\cos{\calculatedcos\@@rorotation}%
\calculatesin\@@rorotation\edef\sin{\calculatedsin\@@rorotation}%
\@@layerxpos\zeropoint
\@@layerypos\zeropoint
\@@layerxoff\zeropoint
\@@layeryoff\zeropoint
\ifdim\sin\points\zeropoint
  \ifdim\cos\points\zeropoint
\@@layerxsiz\cos\!!widtha
\@@layerysiz\sin\!!widtha
\advance\@@layerxsiz\sin\!!dimena
\advance\@@layerysiz\cos\!!dimena
\@@layerypos\cos\!!dimena
\if!!donea
  \@@layerxoff  \negated\sin\!!dimena
  \advance\@@layerxoff  \sin\!!deptha
\fi
\if!!doneb
  \@@layeryoff  \cos\!!deptha
\fi
\dododorotatenextbox
  \else
\@@layerxsiz\negated\cos\!!widtha
\@@layerysiz\sin\!!widtha
\advance\@@layerxsiz\sin\!!dimena
\advance\@@layerysiz\negated\cos\!!dimena
\@@layerxpos\negated\cos\!!widtha
\if!!donea
  \@@layerxoff -\@@layerxsiz
  \advance\@@layerxoff  \sin\!!deptha
\fi
\if!!doneb
  \@@layeryoff  \negated\cos\!!heighta
\fi
\dododorotatenextbox
\wd\nextbox\if!!donea\sin\!!deptha\else\@@layerxsiz\fi
  \fi
\else
  \ifdim\cos\points\zeropoint
\@@layerxsiz   \negated\cos\!!widtha
\@@layerysiz   \negated\sin\!!widtha
\advance\@@layerxsiz   \negated\sin\!!dimena
\advance\@@layerysiz   \negated\cos\!!dimena
\@@layerxpos\@@layerxsiz
\@@layerypos\negated\sin\!!widtha
\if!!donea
  \@@layerxoff -\@@layerxsiz
  \advance\@@layerxoff  \negated\sin\!!heighta
\fi
\if!!doneb
  \@@layeryoff  \@@layerysiz
  \advance\@@layeryoff  \cos\!!deptha
\fi
\dododorotatenextbox
\wd\nextbox\if!!donea\negated\sin\!!heighta\else\@@layerxsiz\fi
  \else
\@@layerxsiz\cos\!!widtha
\@@layerysiz\negated\sin\!!widtha
\advance\@@layerxsiz\negated\sin\!!dimena
\advance\@@layerysiz\cos\!!dimena
\ifdim\sin\points=\zeropoint
  \@@layerxpos   \zeropoint
  \@@layerxoff   \zeropoint
  \@@layerypos  \@@layerysiz
  \if!!doneb
\@@layeryoff \!!deptha
  \fi
\else
  \@@layerypos   \@@layerysiz
  \@@layerxpos   \negated\sin\!!dimena
  \if!!donea
\@@layerxoff-\@@layerxsiz
\advance\@@layerxoff \negated\sin\!!heighta
  \fi
  \if!!doneb
\@@layeryoff  \negated\sin\!!deptha
  \fi
\fi
\dododorotatenextbox
\ifdim\sin\points=\zeropoint
\else
  \wd\nextbox\if!!donea\negated\sin\!!heighta\else 
 \@@layerxsiz\fi
\fi
  \fi
\fi
% new, location=middle
\ifnum#2=\plusfour
  \setbox\nextbox\vbox{\vskip-.5\!!heightb\hskip.5\!!heightb
 \flushnextbox}% \nextboxwd\!!widthb
  \nextboxht\!!heightb
  \nextboxdp\!!depthb
\else\ifnum#2=\plusfive
  % wolf: location=center
  \setbox\nextbox\vbox{\vskip.5\!!heightb\ifnum#1=270\relax 

Re: [NTG-context] indent and blank question

2007-09-19 Thread Zhichu Chen
Hi frantisek,

On 9/20/07, frantisek holop [EMAIL PROTECTED] wrote:

 hi there,

 i am working on a book format document using:

 \setupindenting[medium,yes]

 so the parapgrahps have no whitespace between but the first line
 of the next paragraph is indented.

 as is customary, i would like to start a new part (lacking a better
 word) of the same chapter without a title, unrelated to the previous
 text but not warranting a new chapter.  some books put some symbols
 inbetween these chapter parts like three stars or something.

 if a put a \blank and start a new paragprah, it gets indented.

 i know i can use \noindent to get what i want, but my question is,
 is there something more automatic, a space command which makes
 the next paragraph unindented or something?


You can define a head.

or for example if i wanted to put the 3 stars there, could i redefine
 subject or subsubject to output these _and_ make the next paragprah
 unindented?

 -f
 --
 the golden rule:  he who has the gold makes the rules.

 ___
 If your question is of interest to others as well, please add an entry to
 the Wiki!

 maillist : ntg-context@ntg.nl /
 http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net

 ___




-- 
Best Regards
Chen


  Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
 No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
 tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
   | www.sinap.ac.cn

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] waiting for mswincontext

2007-09-19 Thread Arthur Reutenauer
 hmm  how many books do you have? :)

  That's not how you should have asked it :-) You should have said yes
first and then looked for someone to type the bib file if Hans really
has too much books ;-) Or you could distribute the task ...

Arthur
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___