Re: [NTG-context] installprogram problem

2007-05-24 Thread Henning Hraban Ramm
Am 2007-05-24 um 22:00 schrieb Aditya Mahajan:

> and everything runs correctly. Hraban, I have not tested this with
> lilypond, but this may be part of the problem there.

Thank you very much, Aditya, that is the WHOLE problem!

Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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] Latin Modern bug in lm-texnansi-os.enc

2007-05-24 Thread bop
Hi,

> On the ConTeXT mailing list, Idris posted some messages because he was
> trying to use oldstyle numerals in the latest Latin Modern release,
> and was experiencing two pretty big problems:
> 
>* really bad kerning around the oldstyle numerals

We would be grateful if we could get more details (which font, which tfm,
which
encoding, pdftex or tex/dvips, on the screen or on the paper, etc.) My first
guess is that proportional figures were used with tabular metrics...

>* pdftex generated errors for the typewriter fonts, complaining
>  "glyph `one.oldstyle' undefined" etc.

Yeah... This is the result of our decision to comply with the currently
obeying
naming conventions (better to say: fashion). The oldstyle figures that appear
in
ts1 (text companion) encoding are actually *.taboldstyle; the names *.oldstyle
are reserved for proportional glyphs. We included also proportional oldstyle
figures in LMs (and in the TeX Gyre fonts).

> The implementation of 'automatic' oldstyle numbers in ConTeXt uses a
> set of encoding files that used to ship with LM (lm-xx-os.enc).
> By way of a map file fragment, this allows to switch the fonts
> 'en masse' from lining to oldstyle (and back) without the need for
> special metric files, which is a pretty nice feature.

Don't understand -- the vertical oldstyle digits, in general, have different
metric data (tabular digits differ only with respect to vertical dimensions).
So, the replacement of the encoding implies the replacement of TFMs. Or I
misundersood something.
 
> Those encoding files now apparently obsolete: they still refer to
> glyphs named e.g. `one.oldstyle', whereas in the current release of
> the LM fonts it really should be `one.taboldstyle'.

Yes, as I explained above.

> While writing a bug report, I noticed that these encoding files are no
> longer in the font distribution

No. We have a lot enough of TFMs and I'd be reluctant to add more. The only
resort I can see is to use OTFs...

> Is this trick to get oldstyle now officially unsupported?

Rather not, I've just learned about it. ;-)

> because there are no oldstyle-using TFM files in the LM
> distribution either ...

There are. As I mentioned, ts1 encoding contains oldstyle tabular figures.
Perhaps accessing them needs other tricks, but as long as 256-glyph fonts are
to be used, some glyphs must be accessed clumsily. e.g., proportional digits
(normal and oldstyle).

Cheers -- Jacko
___
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] Draw chess board

2007-05-24 Thread Zhichu Chen

Hi Mojca

I original intention is:

First, check the sgf file to decide how many rows and lines should be used.
For some instance, there is no need to draw the full 19x19 board, like
conversion steps demostration---best choices around the corner of the board.


Second, I'd like to take advantage of PDF Javascript to show every step by
clicking on some area. \fieldstack seems to be a good choice. But if I use
some script like sgf2mpost, I don't know how to if there is an easy way to
determine how many steps does the sgf include.

If I solved the sgf problem, I think I can input a game manually by using
sgf syntax


On 5/25/07, Mojca Miklavec <[EMAIL PROTECTED]> wrote:


On 5/24/07, Zhichu Chen wrote:
> Thanks Wolfgang
>
> The first link is very useful. I will took its idea. I really want to
use
> metapost's scantoken to read sgf file directly, so it can easily be a
> cross-platform solution.

You can use either TeX or metapost to parse sgf file. But you can
forget about TeX, I suppose. Metapost is an option if you love
challenges, but it's not the only possibility if you're looking for
cross-platform solutions.

In http://match.stanford.edu/bump/sgf2dg-4.026.tar.gz you have
sgf2mpost.c with 1000 lines of pure C code which parses the file and
generates metapost output.

If I was in your place, I would write a ruby (or lua ;) parser (the
file above can help you, but you can probably parse the input in a
much more clever & efficient way with ruby) + metapost code generator.

Then you write a ConTeXt module with

\startSGFscript{name} or \startSGFfile or \startSGFgame or \startGOgame
 the very special format of your game ...
\stopSGFscript

You write the content into a file (you can also prepare external files
and tell ConTeXt which one is the source file), call "texmfstart
your-great-ruby-script file.sgf", which generates metapost output, and
then you include that one in the ConTeXt document.

I'm really not sure if parsing SGF files with metapost can bring you
anything ... ruby scripts are fully portable, at least in ConTeXt.

Mojca


> On 5/24/07, Wolfgang Schuster
> <[EMAIL PROTECTED]> wrote:
> > 2007/5/24, Zhichu Chen < [EMAIL PROTECTED]>:
> > > Hi
> > >
> > > I love chess games, especially one kind of them which is generally
> called
> > > Go.
> > >
> > > I know there is some file can store each details in one game:
> > > http://www.red-bean.com/sgf/
> > >
> > > AFAIK, there is no module available to draw chess in ConTeXt now. I
> wanna do
> > > this by using MetaPost and fieldstack. But I don't know how to tell
> metapost
> > > the details of the sgf file. Can anyone give me a suggestion?
> > >
> > > BTW, I don't like the name. It's invented by acient Chinese and it's
> called
> > > Weiqi. I think we can call it Siege Chess in English.
> > >
> > >
> > > --
> > > Best Regards
> > > Chen
> >
> > Hi Chen,
> >
> > if you mean Go take a look at the following page:
> >
> > http://match.stanford.edu/bump/go.html
> >
> > There are also two packages on CTAN for LaTeX:
> >
> >
> http://www.ctan.org/tex-archive/help/Catalogue/bytopic.html#gamesgo
> >
> > 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
>
___

>
>

___
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.n

Re: [NTG-context] Forcing a TABLE page break

2007-05-24 Thread luigi scarso

On 5/18/07, luigi scarso <[EMAIL PROTECTED]> wrote:




On 5/16/07, T.W. Burton <[EMAIL PROTECTED]> wrote:
>
> Is there a way to force a page break in a natural table?

hmm, \bTR[after=\page]  doesn't work as expected.
I will investigate



It seems broken.
Need more time to investigate.


--
luigi

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
___
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] installprogram problem

2007-05-24 Thread Aditya Mahajan
Hi,

There is a bug in texutil.rb Here is a simple test. Create test.tex

\def\runprogram#1%
  {\installprogram{echo "#1"}}

\starttext

\runprogram{test}
\runprogram{test again}

\stoptext


and texexec it. Everything is fine at the TeX end, the tui file says
e p {echo "test"}
e p {echo "test again"}

However, the output says

TeXUtil | programs: 2
TeXUtil | tuo file saved
TeXUtil | running echo "test"
"test"
TeXUtil | running echo "test"
"test"
TeXExec | runtime: 0.892

that is, the first command was run both times.
Looking into texutil.rb, I think that the bug is in the definition of 
Myextras::finalizer method. In /scritps/ruby/base/texutil.rb change


  def MyExtras::finalizer(logger)
unless (ENV["CTX.TEXUTIL.EXTRAS"] =~ /^(no|off|false|0)$/io) || 
(ENV["CTX_TEXUTIL_EXTRAS"] =~ /^(no|off|false|0)$/io) then
  @@programs.each do |p|
  cmd = @@programs[p.to_i] #AM: why p.to_i  
#AM: p is the name of the program, hence a string
  #AM: p.to_i evaluates to 0 always, explaining the bug
  logger.report("running #{cmd}")
  system(cmd)
  end
  end
  end


to

  def MyExtras::finalizer(logger)
unless (ENV["CTX.TEXUTIL.EXTRAS"] =~ /^(no|off|false|0)$/io) || 
(ENV["CTX_TEXUTIL_EXTRAS"] =~ /^(no|off|false|0)$/io) then
  @@programs.each do |cmd|
  logger.report("running #{cmd}")
  system(cmd)
  end
  end
  end


and everything runs correctly. Hraban, I have not tested this with 
lilypond, but this may be part of the problem there.

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] Draw chess board

2007-05-24 Thread Mojca Miklavec
On 5/24/07, Zhichu Chen wrote:
> Thanks Wolfgang
>
> The first link is very useful. I will took its idea. I really want to use
> metapost's scantoken to read sgf file directly, so it can easily be a
> cross-platform solution.

You can use either TeX or metapost to parse sgf file. But you can
forget about TeX, I suppose. Metapost is an option if you love
challenges, but it's not the only possibility if you're looking for
cross-platform solutions.

In http://match.stanford.edu/bump/sgf2dg-4.026.tar.gz you have
sgf2mpost.c with 1000 lines of pure C code which parses the file and
generates metapost output.

If I was in your place, I would write a ruby (or lua ;) parser (the
file above can help you, but you can probably parse the input in a
much more clever & efficient way with ruby) + metapost code generator.

Then you write a ConTeXt module with

\startSGFscript{name} or \startSGFfile or \startSGFgame or \startGOgame
 the very special format of your game ...
\stopSGFscript

You write the content into a file (you can also prepare external files
and tell ConTeXt which one is the source file), call "texmfstart
your-great-ruby-script file.sgf", which generates metapost output, and
then you include that one in the ConTeXt document.

I'm really not sure if parsing SGF files with metapost can bring you
anything ... ruby scripts are fully portable, at least in ConTeXt.

Mojca


> On 5/24/07, Wolfgang Schuster
> <[EMAIL PROTECTED]> wrote:
> > 2007/5/24, Zhichu Chen <[EMAIL PROTECTED]>:
> > > Hi
> > >
> > > I love chess games, especially one kind of them which is generally
> called
> > > Go.
> > >
> > > I know there is some file can store each details in one game:
> > > http://www.red-bean.com/sgf/
> > >
> > > AFAIK, there is no module available to draw chess in ConTeXt now. I
> wanna do
> > > this by using MetaPost and fieldstack. But I don't know how to tell
> metapost
> > > the details of the sgf file. Can anyone give me a suggestion?
> > >
> > > BTW, I don't like the name. It's invented by acient Chinese and it's
> called
> > > Weiqi. I think we can call it Siege Chess in English.
> > >
> > >
> > > --
> > > Best Regards
> > > Chen
> >
> > Hi Chen,
> >
> > if you mean Go take a look at the following page:
> >
> > http://match.stanford.edu/bump/go.html
> >
> > There are also two packages on CTAN for LaTeX:
> >
> >
> http://www.ctan.org/tex-archive/help/Catalogue/bytopic.html#gamesgo
> >
> > 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
> ___
>
>
___
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] installprogram problem

2007-05-24 Thread Henning Hraban Ramm
Am 2007-05-24 um 13:41 schrieb Taco Hoekwater:
 So I guess the command or counter or whatever in \installprogram is
 expanded at runtime.
 I tried \expanded, but it didn't help.
>>> You have to run \installprogram{} on each separate, expanded
>>> commandline.
>> I thought that was what I do.
>> \installcommand is run after every buffer.
>> I also tried \expanded{\installcommand{\LP}} and
>> \installcommand{\expanded{\LP}}, but neither did help.
> You probably should \edef \LP then?

With \expanded{} I always get "incomplete iffalse", \edef doesn't  
change anything.

I tried to "outsource" the command and dropped the \ifeof18 (because  
\executesystemcommand doesn't seem to do anything anyway):

\def\doprocesslilypond#1{%
\edef\LPFN{#1}%
\writestatus{DEBUG-w18}{\LPFN}%
\installprogram{texmfstart --ifchanged=\LPFN.tmp --exec bin:lilypond  
-b eps -dno-gs-load-fonts -dinclude-eps-fonts \LPFN.tmp}%
\doif\jobsuffix{pdf}{%
\installprogram{texmfstart --ifchanged=\LPFN.eps pstopdf 
\LPFN.eps}%
}%
}

Still the same: \writestatus writes the right filename (enumerated),  
but the latter is always called with no.1
Of course I first tried just using #1 and only \def\LPFN.

As you wrote:
>>> You have to run \installprogram{} on each separate, expanded
>>> commandline.
perhaps you did overlook that, even if \installprogram is "run" after  
every buffer, the execution is postponed to the end of the texexec  
run - I'm rather sure the number get forgotten on the way of this  
postponing, but everything I tried to expand the number, failed.
But I don't really know what I'm doing while I try to program in TeX...
HELP!

Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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] Manual hyphenation

2007-05-24 Thread Elliot Clifton
Thanks for all the suggestions. I used Taco's method but I'll try some
of the others as well.

Elliot
___
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] Latin Modern bug in lm-texnansi-os.enc

2007-05-24 Thread Taco Hoekwater


[EMAIL PROTECTED] wrote:
> Hi,
> 
>> On the ConTeXT mailing list, Idris posted some messages because he was
>> trying to use oldstyle numerals in the latest Latin Modern release,
>> and was experiencing two pretty big problems:
>>
>>* really bad kerning around the oldstyle numerals
> 
> We would be grateful if we could get more details (which font, which tfm,
> which encoding, pdftex or tex/dvips, on the screen or on the paper, etc.)
> My first guess is that proportional figures were used with tabular metrics...

Yes, but see explanation below.

>> The implementation of 'automatic' oldstyle numbers in ConTeXt uses a
>> set of encoding files that used to ship with LM (lm-xx-os.enc).
>> By way of a map file fragment, this allows to switch the fonts
>> 'en masse' from lining to oldstyle (and back) without the need for
>> special metric files, which is a pretty nice feature.
> 
> Don't understand -- the vertical oldstyle digits, in general, have different
> metric data (tabular digits differ only with respect to vertical dimensions).
> So, the replacement of the encoding implies the replacement of TFMs. Or I
> misundersood something.

How it used to work:

   The tabular lining figures are replaced by oldstyle figures by
   means of an encoding file only. This worked fine (because the
   oldstyle figures were tabular as well).

The height and depth are normally not all that important to TeX,
and with the widths the same, there was no need for a different
metrics file, just a single encoding file is enough to give all the
LM fonts oldstyle (tabular) figures instead of lining figures.

This trick broke when the tabular oldstyle figures were renamed
and proportional oldstyle figures were added (to the non-typewriter
fonts. Both problems Idris had came directly from that the fact
that these changes make the encoding file invalid:

* the perceived kerning is wrong because the actual proportional glyphs
   have different sidebearings, and
* the monospace fonts gave an error because the glyphs were renamed,
   so the requested glyphs were no longer existent at all.

>> While writing a bug report, I noticed that these encoding files are no
>> longer in the font distribution
> 
> No. We have a lot enough of TFMs and I'd be reluctant to add more. The only
> resort I can see is to use OTFs...
> 
>> Is this trick to get oldstyle now officially unsupported?
> 
> Rather not, I've just learned about it. ;-)

Yes, I understand that now. Well, can you please consider starting to
support it then? ;-)

>> because there are no oldstyle-using TFM files in the LM
>> distribution either ...
> 
> There are. As I mentioned, ts1 encoding contains oldstyle tabular figures.
> Perhaps accessing them needs other tricks, but as long as 256-glyph fonts are
> to be used, some glyphs must be accessed clumsily. e.g., proportional digits
> (normal and oldstyle).
> 

I know there are way to many TFM  files already, I don't want you to
ship dozens (hundreds?) of new ones. But from a user's point of view,
having to switch to a different encoding for each number is not what
I consider 'supporting oldstyle digits'.

The trick I explained above works surprisingly well (even if the figures
are tabular, not proportional). If I had realized that those encoding
files were not created by you yourself, I would not have bothered you
at all, as it was not your problem to begin with. But that's life ...

Cheers, 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] Draw chess board

2007-05-24 Thread Zhichu Chen

Thanks Wolfgang

The first link is very useful. I will took its idea. I really want to use
metapost's scantoken to read sgf file directly, so it can easily be a
cross-platform solution.

I'm not interested in the LaTeX package. It's against my original intention
because I want to draw the board by importing the sgf file rather than by
myself. But now I think manually input could be an option.


On 5/24/07, Wolfgang Schuster <[EMAIL PROTECTED]> wrote:


2007/5/24, Zhichu Chen <[EMAIL PROTECTED]>:
> Hi
>
> I love chess games, especially one kind of them which is generally
called
> Go.
>
> I know there is some file can store each details in one game:
> http://www.red-bean.com/sgf/
>
> AFAIK, there is no module available to draw chess in ConTeXt now. I
wanna do
> this by using MetaPost and fieldstack. But I don't know how to tell
metapost
> the details of the sgf file. Can anyone give me a suggestion?
>
> BTW, I don't like the name. It's invented by acient Chinese and it's
called
> Weiqi. I think we can call it Siege Chess in English.
>
>
> --
> Best Regards
> Chen

Hi Chen,

if you mean Go take a look at the following page:

http://match.stanford.edu/bump/go.html

There are also two packages on CTAN for LaTeX:

http://www.ctan.org/tex-archive/help/Catalogue/bytopic.html#gamesgo

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
___


[NTG-context] Text following columns sometimes pushed into next page

2007-05-24 Thread Elliot Clifton
Hi,

I'm typesetting a journal in two columns. I want the correspondence
address to come at the bottom of the last page outside of the columns.

As in:



###  ###
###  ###
###  ###

Addresss




But even when there is room the address is often put on the next page.
If possible (i.e. if there's space) I need ConTeXt to keep the address
on the same page. Is it possible to do that?

Here's an example:


\setuptolerance [verystrict]
\showframe
%\setuppagenumbering [location=inleft, alternative=doublesided]

\definelayout[test][%   
backspace=1in,
cutspace=0.8in,
width=middle,   
header=5mm, 
headerdistance=10mm,
topspace=20mm,  
footer=5mm, 
footerdistance=10mm,
bottomspace=15mm,   
height=middle,
]

\setuplayout[test]

\starttext
\startcolumns[n=2]
\dorecurse{3}{\input knuth}
\stopcolumns

%following line outside of columns often (but not always) pushed into
the next page, even when there's room for it.
\blank
Address for correspondence: address ...

\stoptext

This has been annoying me for a while so your help is appreciated.

TIA,

Elliot
___
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] Draw chess board

2007-05-24 Thread Wolfgang Schuster
2007/5/24, Zhichu Chen <[EMAIL PROTECTED]>:
> Hi
>
> I love chess games, especially one kind of them which is generally called
> Go.
>
> I know there is some file can store each details in one game:
> http://www.red-bean.com/sgf/
>
> AFAIK, there is no module available to draw chess in ConTeXt now. I wanna do
> this by using MetaPost and fieldstack. But I don't know how to tell metapost
> the details of the sgf file. Can anyone give me a suggestion?
>
> BTW, I don't like the name. It's invented by acient Chinese and it's called
> Weiqi. I think we can call it Siege Chess in English.
>
>
> --
> Best Regards
> Chen

Hi Chen,

if you mean Go take a look at the following page:

http://match.stanford.edu/bump/go.html

There are also two packages on CTAN for LaTeX:

http://www.ctan.org/tex-archive/help/Catalogue/bytopic.html#gamesgo

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] Manual hyphenation

2007-05-24 Thread John R. Culleton
On Thursday 24 May 2007 06:19, Hans Hagen wrote:
> Elliot Clifton wrote:
> > Thank you very much Taco. It works very well. It really is useful
> > to be able to select less aggressive hyphenation when necessary.
>
> here is a variant: stepwise and relative to the current values:
>
> \unprotect
>
> \startvariables all
> lesshyphenation: lesshyphenation
> morehyphenation: morehyphenation
> \stopvariables
>
> \def\lesshyphens
>   {\lefthyphenmin =\numexpr\lefthyphenmin +1\relax
>\righthyphenmin=\numexpr\righthyphenmin+1\relax}
>
> \def\morehyphens
>   {\ifcase\lefthyphenmin \else
>  \lefthyphenmin =\numexpr\lefthyphenmin +1\relax
>\fi
>\ifcase\righthyphenmin\else
>  \righthyphenmin=\numexpr\righthyphenmin+1\relax
>\fi}
>
> \installalign \v!lesshyphenation {\lesshyphens}
> \installalign \v!morehyphenation {\morehyphens}
>
> %D The next two lines implement 'align=lesshyphenation' as an
> option %D for \type{\framed} etc.
>
> \setvalue{\@@ragged@@command\v!lesshyphenation}{\appendtoks\lesshyp
>hens\to\everyraggedcommand}
> \setvalue{\@@ragged@@command\v!morehyphenation}{\appendtoks\morehyp
>hens\to\everyraggedcommand}
>
> \protect
>
>
> Hans

On my last Context project I simply used 
\lefthyphenmin 3
to set a new minimum size for the left part of a hyphenated word. The 
customer requested it at the last minute (overly picky editor.) It 
worked OK on a long and complex document.  
-- 
John Culleton
Able Indexing and Typesetting
Precision typesetting (tm) at reasonable cost.
Satisfaction guaranteed. 
http://wexfordpress.com

___
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] Creating PDF files which are editable in Adobe Reader

2007-05-24 Thread Elliot Clifton
Alas, as has already been said, the LiveCycle feature is proprietary
and not free. So you won't be able to use it from ConTeXt.

One alternative on Windows maybe Foxit PDF Reader which is available
for free, and can do some of what you want with low-cost add-ons.

http://www.foxitsoftware.com/pdf/rd_intro.php

The 'pro-pack' allows annotation:
http://www.foxitsoftware.com/pdf/reader_2/addons.htm#advanced

And there is also a Foxit PDF editor as well, but that is more expensive.

You might also look at PDFill

http://www.pdfill.com/

Of course neither solutions is as convenient or as effective as being
able  to send annotatable and fill-able files to anyone with Adobe
Reader. But this software may still be of interest.

Elliot
___
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] Draw chess board

2007-05-24 Thread Zhichu Chen

Hi

I love chess games, especially one kind of them which is generally called
Go.

I know there is some file can store each details in one game:
http://www.red-bean.com/sgf/

AFAIK, there is no module available to draw chess in ConTeXt now. I wanna do
this by using MetaPost and fieldstack. But I don't know how to tell metapost
the details of the sgf file. Can anyone give me a suggestion?

BTW, I don't like the name. It's invented by acient Chinese and it's called
Weiqi. I think we can call it Siege Chess in English.


--
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] installprogram problem

2007-05-24 Thread Taco Hoekwater
Henning Hraban Ramm wrote:
> 2007/5/24, Taco Hoekwater <[EMAIL PROTECTED]>:
>>
>> > So I guess the command or counter or whatever in \installprogram is
>> > expanded at runtime.
>> > I tried \expanded, but it didn't help.
>>
>> You have to run \installprogram{} on each separate, expanded
>> commandline.
> 
> 
> I thought that was what I do.
> \installcommand is run after every buffer.
> I also tried \expanded{\installcommand{\LP}} and
> \installcommand{\expanded{\LP}}, but neither did help.

You probably should \edef \LP then?
___
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] installprogram problem

2007-05-24 Thread Henning Hraban Ramm

2007/5/24, Taco Hoekwater <[EMAIL PROTECTED]>:


> So I guess the command or counter or whatever in \installprogram is
> expanded at runtime.
> I tried \expanded, but it didn't help.

You have to run \installprogram{} on each separate, expanded
commandline.



I thought that was what I do.
\installcommand is run after every buffer.
I also tried \expanded{\installcommand{\LP}} and
\installcommand{\expanded{\LP}}, but neither did help.

Greetlings, Hraban
___
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] Manual hyphenation

2007-05-24 Thread Wolfgang Schuster
2007/5/24, Elliot Clifton <[EMAIL PROTECTED]>:
> Thank you very much Taco. It works very well. It really is useful to
> be able to select less aggressive hyphenation when necessary.
>
> Cheers,
>
> Elliot

Hi Elliot,

you can also prevent hyphenation by switching to undefined languages and
the only hyphenations the one in the hyphenation exception list and in words
written with \-.

\unprotect

\startvariables all
  listhyphenation: listhyphenation
\stopvariables

\def\listhyphenation
  [EMAIL PROTECTED]

\installalign \v!listhyphenation \listhyphenation

\protect

\setupalign[listhyphenation]

\hyphenation{improv-ements}

\starttext
\input knuth
\stoptext

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

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


Re: [NTG-context] Manual hyphenation

2007-05-24 Thread Hans Hagen
Elliot Clifton wrote:
> Thank you very much Taco. It works very well. It really is useful to
> be able to select less aggressive hyphenation when necessary.
>
>   
here is a variant: stepwise and relative to the current values: 

\unprotect

\startvariables all
lesshyphenation: lesshyphenation
morehyphenation: morehyphenation
\stopvariables

\def\lesshyphens
  {\lefthyphenmin =\numexpr\lefthyphenmin +1\relax
   \righthyphenmin=\numexpr\righthyphenmin+1\relax}

\def\morehyphens
  {\ifcase\lefthyphenmin \else
 \lefthyphenmin =\numexpr\lefthyphenmin +1\relax
   \fi
   \ifcase\righthyphenmin\else
 \righthyphenmin=\numexpr\righthyphenmin+1\relax
   \fi}

\installalign \v!lesshyphenation {\lesshyphens}
\installalign \v!morehyphenation {\morehyphens}

%D The next two lines implement 'align=lesshyphenation' as an option
%D for \type{\framed} etc.

\setvalue{\@@ragged@@command\v!lesshyphenation}{\appendtoks\lesshyphens\to\everyraggedcommand}
\setvalue{\@@ragged@@command\v!morehyphenation}{\appendtoks\morehyphens\to\everyraggedcommand}

\protect


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] Manual hyphenation

2007-05-24 Thread Elliot Clifton
Thank you very much Taco. It works very well. It really is useful to
be able to select less aggressive hyphenation when necessary.

Cheers,

Elliot
___
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] installprogram problem

2007-05-24 Thread Taco Hoekwater

Hi,

Henning Hraban Ramm wrote:
> 
> So I guess the command or counter or whatever in \installprogram is  
> expanded at runtime.
> I tried \expanded, but it didn't help.

> Maybe you have a clue?

You have to run \installprogram{} on each separate, expanded
commandline.

Best wishes, 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] MegaPost, was Re: MetaPost memory

2007-05-24 Thread Taco Hoekwater


Andrea Valle wrote:
> Hi Taco, all,
> 
> I've not dedicate so much time, but still my metapost is broken after 
> the tweaking.
> 
> But from the recent BachoTeX 2007 thread I understood (have I 
> understood?) that MegaPost will probably solve my problems.
> 
> When is it scheduled to be released?

Sometime next year.

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] Manual hyphenation

2007-05-24 Thread Taco Hoekwater
Elliot Clifton wrote:
> On 2007-05-23 17:28 -400
> Thomas A. Schmitz wrote:
> 
>> \document\-ation
> 
> I've tried that. Unfortunately it only seems to work if hyphenation turned on.

You would have to redefine one of the core utility macros to get
this to work.  I wrote a small extension for you that does not
need manual intervention. It only hyphenates words that are longer
than 8 characters. Here is the actual code that should go to the
environment file (or the preamble section):


%D A small extension that creates an align type that only hyphenates
%D long words.

\unprotect
\startvariables all
lesshyphenation: lesshyphenation
\stopvariables

\def\lesshyphens
 {\lefthyphenmin=4 \righthyphenmin=5 }

\installalign \v!lesshyphenation {\lesshyphens}

%D The next two lines implement 'align=lesshyphenation' as an option
%D for \type{\framed} etc.

\setvalue{\@@ragged@@command\v!lesshyphenation}
 {\appendtoks\lesshyphens \to\everyraggedcommand}

\protect
%D done.

And the usage is like so:

   \setupalign[lesshyphenation]

   ... documentation ...

Best wishes, 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
___