Re: [NTG-context] Current ConTeXt wiki

2012-10-20 Thread Aditya Mahajan
On Oct 19, 2012, at 4:51 AM, Taco Hoekwater t...@elvenkind.com wrote:

 On 10/19/2012 10:26 AM, Mojca Miklavec wrote:
 I completely forgot to remind you. :-) How about sometime this week,
 would that be attemptable? Then we can also update the wiki's ConTeXt
 engine.
 
 Now, you should blame me. I made a backup of the old context version
 (for Taco: current-backup) and updated to current (2012.05.30 11:26),
 but it doesn't work at all. It says pdfcrop failed,
 
 Which it did, indeed. For future reference: the problem is that pdfcrop
 needs
$ pdftex file.tex
 
 to run (using pdftex.fmt). You also updated pdftex, so the existing
 format was no longer valid.
 
 I've fixed it by creating a new pdftex.fmt.
 

Another option is to use pdftrimwhite, which is part of the minimals rather 
than pdfcrop. 

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Current ConTeXt wiki

2012-10-20 Thread Hans Hagen

On 19-10-2012 15:25, Aditya Mahajan wrote:


Another option is to use pdftrimwhite, which is part of the minimals rather 
than pdfcrop.


if needed I can make a mtx-trimwhite (lua instead of perl)



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

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


Re: [NTG-context] Current ConTeXt wiki

2012-10-20 Thread Marco Patzer
2012-10-20 Hans Hagen:

  Another option is to use pdftrimwhite, which is part of the minimals rather 
  than pdfcrop.
 
 if needed I can make a mtx-trimwhite (lua instead of perl)

If you decide to rewrite pdftrimwhite, maybe you can consider making
it work with multiple page files as well. The current version only
crops the first page and discards the rest.


Marco

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

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


[NTG-context] The on-going process of the Proceedings for Context Meeting 2011

2012-10-20 Thread John Haltiwanger
Hello all!

It's been very quiet in regards to the Context Group's first publication,
the Proceedings for Context Meeting 2011. We've been hammering out the
details of a new design and house style with Adrian Egger. This process is
almost complete, and we are very excited for you all to see the inspiring
new design!

But there is, of course, the issue of getting the final content together
for this issue. And here is where I need the help of those who agreed at
last year's meeting to submit an article for the proceedings:

We would like to publish this years proceedings along with last years in a
double edition. I've lost the list of those who wanted to submit last year,
so if you remember being one of those nice and awesome people, please
consider writing up a short article and sending it!

*Of course we also welcome any Context-related articles! *There has been a
lot of cool stuff happening in the community over the last year, and it
would be great to have some further documentation on them.

A very warm thanks to those of you who sent me material already--know that
it was not in vain, and that your work will indeed be published.

The *deadline for submission is 1 November*, with the double-edition
proceedings landing on doorsteps in time for the winter holidays. For those
of you who have not yet joined the Context Group, please consider
doing sohttp://group.contextgarden.net/register.shtml
!

Looking forward to hearing from you,
John
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] way setting does not work in \setupcaptions

2012-10-20 Thread Marco Patzer
Hi,

the `way` setting cannot be applied globally to all floats using
`\setupcaptions`. For the `prefix` value it works. Can this be
fixed?

\setupblackrules
  [width=4cm, height=1cm]

%% prefix is applied, way is not
%% \setupcaptions
%%  [prefix=no,
%%   way=bytext]

%% prefix and way is applied
\setupcaption
  [figure, table]
  [prefix=no,
   way=bytext]

\starttext
\dorecurse{2}{%
  \startchapter [title=Chapter]
\dorecurse{2}{%
  \startplacefigure
\blackrule
  \stopplacefigure
  \startplacetable
\blackrule
  \stopplacetable}
  \stopchapter}
\stoptext


Marco

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

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


Re: [NTG-context] math: \text does not scale properly

2012-10-20 Thread Aditya Mahajan

On Thu, 4 Oct 2012, Andreas Mang wrote:


Hi there,

As Aditya mentioned in a former posting (*) that \text{ ... } should 
scale properly when used as super- or subscript, I have prepared a 
minimal example to demonstrate that it doesn't. In my document I have 
switched from \text{ } to \normal, which works.


There is another bug with \text.

{\switchtobodyfont[sans] $\text{sans}$}

does not switch to sans font. Both the incorrect scaling and wrong font 
switch can be corrected by restoring the old definition of \text in 
math-ini.mkiv. Based on the comments in that file, this will come at a 
high penalty on speed. (Slow but correct is better than fast but wrong!)


\unprotect
\def\math_text_choice_indeed#1#2#3% no \everymath !
  {\hbox{\everymath{#1}\switchtobodyfont  [#2]#3}} % 15 sec
 %{\hbox{\everymath{#1}\setcurrentfontbody{#2}#3}} %  3 sec (no math)

\protect

%% Example

\starttext
$f_{\text{text $a+b$}_{\text{text $a+b$}_{\text{text $a+b$$

{\switchtobodyfont[sans] $f_{\text{text $a+b$}_{\text{text 
$a+b$}_{\text{text $a+b$$}


$f_{{\normal text}_{{\normal text}_{\normal text}}}$


\stoptext

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] math: \text does not scale properly

2012-10-20 Thread Aditya Mahajan

On Sat, 20 Oct 2012, Aditya Mahajan wrote:


On Thu, 4 Oct 2012, Andreas Mang wrote:


Hi there,

As Aditya mentioned in a former posting (*) that \text{ ... } should 
scale properly when used as super- or subscript, I have prepared a minimal 
example to demonstrate that it doesn't. In my document I have switched from 
\text{ } to \normal, which works.


There is another bug with \text.


Actually, the bug is with \setcurrentfontbody

\starttext
ABC \hbox{\setcurrentfontbody{\scriptscriptface} Testing} DEF
\stoptext

The above works correctly in mkii but not in mkiv. I really don't 
understand what \setcurrentfontbody is supposed to do. In Mkii it scales 
the bodyfont if \scriptface or \scriptscriptface is used as an argument; 
but does not work for any other value (e.g. \setcurrentfontbody{20pt}). In 
MkIV it does not do anything.


There is also a bug in the definition of \text in mkii. In strc-mat.mkii, 
we should have


\def\domathtext#1%
  {\mathchoice
 {\dodomathtext\displaystyle\textface{#1}}%
 {\dodomathtext\textstyle   \textface{#1}}%
 {\dodomathtext\scriptstyle \scriptface  {#1}}%
 {\dodomathtext\scriptscriptstyle   \scriptscriptface{#1}}}


Notice \scriptsctlye and \scriptscriptstyle instead of \textstyle in the 
last two cases. If \setcurrentfontbody is fixed in mkiv, then the 
definition in MkIV also needs to be changed in a similar manner.


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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___