Re: [NTG-context] Using metapost figures in context

2006-06-12 Thread Aditya Mahajan
On Mon, 12 Jun 2006, Aditya Mahajan wrote:
 2. How to get textext to work?

startMPrun not check for textext. Consider

% \forceMPTEXgraphictrue
% Does not make a difference!

\starttext
\startMPrun{testmp}
   beginfig(1)
   drawarrow (0,0)--(1cm,0) ;
   drawarrow (0,0)--(0,1cm) ;
   label.llft(textext((0,0)),origin) ;
   endfig;
\stopMPrun
\externalfigure[testmp.1]
\stoptext

which gives the dreaded unknown string, while

\starttext
\startMPgraphic
   beginfig(1)
   drawarrow (0,0)--(1cm,0) ;
   drawarrow (0,0)--(0,1cm) ;
   label.llft(textext((0,0)),origin) ;
   endfig;
\stopMPgraphic
\externalfigure[\jobname-mpgraph.1]
\stoptext

works.

I can get my previous macro to work for textext using startMPgraphic.

\def\startMPfigure#1#2\stopMPfigure
   {\bgroup
 \setMPrandomseedfalse
 %Otherwise randomseed := number line always differ
 \def\executeMPOST##1%
 {texmfstart --verbose --ifchanged=##1.mp bin:mpost

\ifcase\interactionmode\MPOSTbatchswitch\or\MPOSTnonstopswitch\fi
   \space\ifuseMETAFUNformat \MPOSTformatswitch metafun \fi ##1}
\def\executeMPTEX##1% slower, due to nested texexec call
{texmfstart --verbose --ifchanged=##1.mp texexec
--batch \ifcase\interactionmode --logfile='mptex.log' \fi
--output=\MPOSTdriver\space
\ifuseMETAFUNformat --mpformat=metafun \fi --mptex --nomp 
--once ##1}
 \def\MPgraphicfile{\jobname-#1}
 \newcount\currentMPgraphic
 \startMPgraphic
   #2
 \stopMPgraphic\egroup\deallocateMPslot\currentMPgraphic}

\def\useMPfigure{\dosingleempty\douseMPfigure}

\def\douseMPfigure[#1]%
   {\externalfigure[\jobname-#1.1]}


\starttext

\startMPfigure{circle}
   fill fullcircle scaled 10cm;
\stopMPfigure

\startMPfigure{axis}
   drawarrow (0,0)--(1cm,0) ;
   drawarrow (0,0)--(0,1cm) ;
   label.llft(textext((0,0)) ,origin) ;
\stopMPfigure

\hbox to \hsize  \bgroup
\hss \useMPfigure[circle][width=1cm] \hss \useMPfigure[axis] \hss 
\egroup
\stoptext

Right now I have a big speed improvement as metapost is not executed 
each time. I only need to convert the mps files to pdf to save a bit 
on pdf conversion.

Aditya


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


[NTG-context] # in MPinclusions

2006-06-12 Thread Aditya Mahajan
Hi,
  How can I make MPinclusions consider # as a normal character.

\startMPinclusions
input metaobj;

vardef [EMAIL PROTECTED](text name) text options=
   [EMAIL PROTECTED](textext(name)) options;
enddef;
\stopMPinclusions

\starttext
\startMPpage
  block.source(Source) ;
  source.c = origin ;
  drawObj(source) ;
\stopMPpage
\stoptext

gives

! Illegal parameter number in definition of \theMPinclusions.
to be read again
(
argument ...ic {input metaobj;

vardef [EMAIL PROTECTED](
   text name) text 
options=
n...

\secondoftwoarguments #1#2-#2

l.7 \stopMPinclusions


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


Re: [NTG-context] how to let context suppose chinese via utf-8 ?

2006-06-12 Thread Hans Hagen
� wrote:
 Hi, evergyone
 I found a instruction in context wiki 
 (http://wiki.contextgarden.net/Chinese) 

  in this page , it says:

 If you have Context 2005.12.19, you only have to get the fonts. 

 1.You need some Chinese (TrueType) fonts; you may want to get FangSong, 
 HeiTi, KaiTi and SongTi. Put those e.g. into  $TEXMF/fonts/truetype/chinese/. 
   
   ---finished

 2.Use Hans Hagen's experimental ttf2uni.rb script to create .map, .tfm and 
 .enc files. You can then put the files e.g. to $TEXMF/fonts/tfm/chinese/ 
 (*.tmf files), $TEXMF/fonts/enc/chinese/ (*.enc files, they are basically the 
 same for all fonts) and to $TEXMF/fonts/map/chinese/.
   ---wondering
  I have downloaded the file ttf2uni.rb to my local machine. But how can I 
 creat such .map ,.tfm and .enc files via it?
  
  
 3.You may now need to update the hash TeX uses to find the files; using teTeX 
 this is done by running texhash. 

 4.How you can run your Hello World program: 

   
(1) make sure that you have the fonts
(2) \usemodule[chinese] % or chi-00 or .. 
(3) \enableregime[utf] 

and things should work ... no need to use conversions 

Tobias may be able to provide more help 

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
-

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


[NTG-context] tex4ht and utf-8

2006-06-12 Thread Piotr Kopszak
Hello, 

It seems tex4ht's ConTeXt support is in the very early infancy, but I
was able to convert a simple ConTeXt file into acceptable html using
htcontext command. The only problem is encoding. Is there any way to
get the same utf-8 encoding as in the source file? 

Piotr  
% hello4ht.tex  -*- coding: utf-8 -*-
\enableregime[utf]
\starttext  

\chapter{Ładnie}

\input tufte

\subject{Nieładnie}

Francuski dziennik Le Monde wczorajszy występ Polaków opisuje
konkludując, że polskie niezdecydowanie skontrastowało z uporem i
konsekwencją Ekwadorczyków. Hiszpański El Pais też nie pozostaje nam
dłużny pisząc, że Ekwador wywiódł w pole słabą reprezentację
Polski. Frankfurter Allgemeine Zeitung pisze, Ĺźe ``jeszcze polska nie
zginęła, ale już przed drugim meczem Mundialu przeciwko Niemcom polska
drużyna znalazła się pod wielką presją''.

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


[NTG-context] horizontal space

2006-06-12 Thread Matthias Schleiff
Hello,

I'm a newbe to ConTeXt but have allready done some documents in LaTeX. Want to 
switch to ConTeXt.

There's something that I neither find in the manuals nor at contextgarden. 
Maybe you could help?!

To realize my micro-typographic needs I'm using LaTeX-commands for defined, 
possibly non-breakable, horizontal spaces. Those are \, \enspace \quad and 
\hspace{0.25em} or \hspace*{0.125em}.
Now when testing with contextlive @ contextgarden the commands \, \enspace 
\quad seem to work. Are they plainTeX? But what about \hspace ?

It would be cool to have something like \hspace*{0.125em} in ConTeXt.
Is there something like it or a way to make it work or to define it on my own?

Any suggestions might be helpfull
Best regards, Matthias
-- 


Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] how to let context suppose chinese via utf-8 ?

2006-06-12 Thread Mojca Miklavec
The first time I've been categorized as a spammer because I cited your
name, so I deleted the Chineese part of the message this time:

 Hi, evergyone
 I found a instruction in context wiki 
 (http://wiki.contextgarden.net/Chinese)

  in this page , it says:

 If you have Context 2005.12.19, you only have to get the fonts.

Must be understood as: [Someone has forgotten to delete this note.] If
your ConTeXt is older than a month don't even try to ask questions
about why something doesn't work ;)

 1.You need some Chinese (TrueType) fonts; you may want to get FangSong, 
 HeiTi, KaiTi and SongTi. Put those e.g. into  $TEXMF/fonts/truetype/chinese/.

 3.You may now need to update the hash TeX uses to find the files; using teTeX 
 this is done by running texhash.

(often called) mktexlsr

 4.How you can run your Hello World program:

 could anyone be kindly to offer me a list of detail instructions about how to 
 do?

 thank you!

I don't know anything about Chineese, but which platform and which
distribution are you using? Because it might be far easier to get
Chineese working with XeTeX than with pdfTeX. In that case you don't
need dozens of those (soon-to-become-obsolete) .map, .tfm and .enc
files. (and you don't need that ruby script)

XeTeX is runnung on Mac OS X for quite some time now, on Linux since
end of April and on Windows for some days or weeks (not officially
released yet).

If you have Mac you can use i-Installer for installing XeTeX, on Linux
it might be easiest to use linuxtex.zip and justtex.zip from
pragma-ade.com. If you're on Windows I can send you some instructions
how to install it (you basically only need to copy binaries and
configuration files from xetex-w32.tar.bz to the proper place in the
TeX tree), but I guess that XeTeX could (will?) be included in the
standalone ConTeXt distribution without much trouble.

In that case the whole story reduces to installing the fonts to your
system (you probably already have them installed) and:

   texexec --xtx --make --all
   fc-cache -v -f

and the Hello-world example being just something like

% typescripts should be used here, but for hello-world this should suffice
\font\MyFont=Arial Unicode MS % or name of some other font that you
want to use
\MyFont

\starttext
your-chineese-text
\stoptext

texexec --xtx yourfile

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


Re: [NTG-context] how to let context suppose chinese via utf-8 ?

2006-06-12 Thread Hans Hagen
Mojca Miklavec wrote:
 your ConTeXt is older than a month don't even try to ask questions
 about why something doesn't work ;)
   
hey, that's not fair .. not everyone uses tha latest trickery and not 
everyone messes up his tex system on a daily basis like you do -)

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
-

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


Re: [NTG-context] horizontal space

2006-06-12 Thread Hans Hagen
Matthias Schleiff wrote:
 Hello,

 I'm a newbe to ConTeXt but have allready done some documents in LaTeX. Want 
 to switch to ConTeXt.

 There's something that I neither find in the manuals nor at contextgarden. 
 Maybe you could help?!

 To realize my micro-typographic needs I'm using LaTeX-commands for defined, 
 possibly non-breakable, horizontal spaces. Those are \, \enspace \quad and 
 \hspace{0.25em} or \hspace*{0.125em}.
 Now when testing with contextlive @ contextgarden the commands \, \enspace 
 \quad seem to work. Are they plainTeX? But what about \hspace ?

 It would be cool to have something like \hspace*{0.125em} in ConTeXt.
 Is there something like it or a way to make it work or to define it on my own?
   

\definehspace[notthatbig][.123456em]
\definehspace[ratherbig] [12.3456em]

test \hspace[notthatbig] test \hspace[ratherbig] test

so, it's a symbolic definition 

vertical spacing is done with blank (and \defineblank) 

watch how hspace cleans up preceding spaces and ignores following ones 

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
-

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


Re: [NTG-context] Open Type fonts and Context

2006-06-12 Thread John R. Culleton
On Sunday 11 June 2006 11:17, Thomas A. Schmitz wrote:
 opentype installation context, google hit # 1:

 http://www.tug.org/pracjourn/2005-2/lindsay/lindsay.pdf

 Best

 Thomas

 On Jun 11, 2006, at 3:26 PM, John R. Culleton wrote:
  Is there a guide for installing Open Type fonts for use in
  Context?
 

I downloaded the guide and followed the directions carefully for
the antykwa otf font,  but as so often happens with texfont many
of the generated fonts could not be found and kpathsea tried to
create bitmaps instead. Here is the latest missfont.log:

mktexpk --mfmode / --bdpi 72 --mag 1+0/72 --dpi 72 
texnansi-LIGA-KERN-SMCP-AntykwaTorunskaMed-Italic--base
mktexpk --mfmode / --bdpi 72 --mag 1+0/72 --dpi 72 
texnansi-LIGA-KERN-SMCP-AntykwaTorunskaLight-Regular--base
mktexpk --mfmode / --bdpi 72 --mag 1+0/72 --dpi 72 
texnansi-LIGA-KERN-SMCP-AntykwaTorunskaLight-Italic--base
mktexpk --mfmode / --bdpi 72 --mag 1+0/72 --dpi 72 
texnansi-LIGA-KERN-SMCP-AntykwaTorunskaCondMed-Regular--base
mktexpk --mfmode / --bdpi 72 --mag 1+0/72 --dpi 72 
texnansi-LIGA-KERN-SMCP-AntykwaTorunskaCondMed-Italic--base
mktexpk --mfmode / --bdpi 72 --mag 1+0/72 --dpi 72 
texnansi-LIGA-KERN-SMCP-AntykwaTorunskaCondLight-Regular--base
mktexpk --mfmode / --bdpi 72 --mag 1+0/72 --dpi 72 
texnansi-LIGA-KERN-SMCP-AntykwaTorunskaCondLight-Italic--base
mktexpk --mfmode / --bdpi 72 --mag 1+0/72 --dpi 72 
texnansi-LIGA-KERN-SMCP-AntykwaTorunskaCond-Regular--base
mktexpk --mfmode / --bdpi 72 --mag 1+0/72 --dpi 72 
texnansi-LIGA-KERN-SMCP-AntykwaTorunskaCond-Italic--base
mktexpk --mfmode / --bdpi 72 --mag 1+0/72 --dpi 72 
texnansi-LIGA-KERN-SMCP-AntykwaTorunskaCond-BoldItalic--base
mktexpk --mfmode / --bdpi 72 --mag 1+0/72 --dpi 72 
texnansi-LIGA-KERN-SMCP-AntykwaTorunskaCond-Bold--base
mktexpk --mfmode / --bdpi 72 --mag 1+0/72 --dpi 72 
texnansi-LIGA-KERN-SMCP-AntykwaTorunska-Regular--base
mktexpk --mfmode / --bdpi 72 --mag 1+0/72 --dpi 72 
texnansi-LIGA-KERN-SMCP-AntykwaTorunska-Italic--base
mktexpk --mfmode / --bdpi 72 --mag 1+0/72 --dpi 72 
texnansi-LIGA-KERN-SMCP-AntykwaTorunska-BoldItalic--base
mktexpk --mfmode / --bdpi 72 --mag 1+0/72 --dpi 72 
texnansi-LIGA-KERN-SMCP-AntykwaTorunska-Bold--base
--
It may be attributable to the fact that texfont tries to update
maps that are particular to my login name rather than the
original ones in /usr/local/texlive/2005/texmf
I tried specifying the /usr/local/texlive/2005/texmf path but
that doesn't help either. 


-- 
John Culleton
Books with answers to marketing and publishing questions:
http://wexfordpress.com/tex/shortlist.pdf

Book coaches, consultants and packagers:
http://wexfordpress.com/tex/packagers.pdf

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


[NTG-context] \mathpunctuationtrue

2006-06-12 Thread Peter Münster
Hello,
what is the new command, that replaces \mathpunctuationtrue ?
Cheers, Peter

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


Re: [NTG-context] \mathpunctuationtrue

2006-06-12 Thread Taco Hoekwater
Peter Münster wrote:
 Hello,
 what is the new command, that replaces \mathpunctuationtrue ?
 Cheers, Peter
 

   \enablemathpunctuation

(that is my guess from grepping the sources)

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


[NTG-context] Using metapost figures in context

2006-06-12 Thread Aditya Mahajan
Hi,

  Does there exist a startstop command (say startMPfigure) for managing 
figures drawn using MP such that

1. I can use \startMPfigure{label} .. \stopMPfigure and then use
\useexternalMPfigure{label} to include the figure.

2. The figures are converted into pdf once. If the code inside 
\startstop MPfigures changes, the pdf for each figure is recreated.

Basically, I want MPfigures to be converted into pdf for faster 
inclusion in the main document, the figure should be recompiled if 
necessary and I should be able to include the figure using a label 
(so that I can separate the figures from the main document).

uniqueMPgraphic provides the first functionality, but the figure is 
converted into pdf on runtime (thereby increasing the processing time 
of the document).

I can use a separate document with each figure inside a \startMPpage 
... \stopMPpage, but (i) I need to remember figure numbers manually, 
(ii) after making change in one figure, the whole file needs to be 
recompiled.

Another possibility is to use one tex file for each figure, compile 
them separately and then then use figure library to get a label for 
each figure. But this becomes difficult to manage, as soon as I get 
large number of files.

Is their something basic that I am missing here? How do others manage 
mpfigures?

To Hans: is it possible to have a \startMPfigure command such that

1. \startMPfigure[label]
  figure code
\stopMPfigure

creates a \jobname-figure-\nofMPfigurefile file with

current MP environment
current MP inclusion
figure code (from inside \startstop MPfigure)

Convert this into \jobname-figure-\nofMPfigurefile.pdf only if 
something changes (similar to what is done in m-r module).


2. The resultant pdf can be included using \useMPfigure{label}.

Would such a feature make sense?

Aditya


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


[NTG-context] extra white in framedtext

2006-06-12 Thread Hans van der Meer
I did want to typeset material within framedtext with some white before and after each line.Appropriate for this seems to me: \null\quad material \quad\null\crlf etc.; the preceding \null preventing disappearence of the first \quad.The strange thing is that the \null in the first line induces an extra vertical whitespace between the top of the frame and the first line inside the frame.An impression of the result:---|                     |  with \null in first line|      first line     ||      second line    |--|      first line     |  without \null in first line|      second line    |---It seems counterintuitive to withhold the \null in the first line in order to have the framing correct.A minimal example on which I encountered this follows:\setupbodyfont[cmr]% gives extra vertical white\startframedtext[middle][width=fit]\null\quad\type{extra vertical space}\quad\null\crlf\null\quad\type{normal vertical space}\quad\null\stopframedtext% normal vertical white\startframedtext[middle][width=fit]\quad\type{normal vertical space}\quad\null\crlf\null\quad\type{normal vertical space}\quad\null\stopframedtext\stoptextDoes this occur elsewhere too?Is it normal behaviour of framedtext? Hans van der Meer ___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] extra white in framedtext

2006-06-12 Thread Hans Hagen
Hans van der Meer wrote:
 I did want to typeset material within framedtext with some white 
 before and after each line.
 Appropriate for this seems to me: \null\quad material \quad\null\crlf 
 etc.; the preceding \null preventing disappearence of the first \quad.

 The strange thing is that the \null in the first line induces an extra 
 vertical whitespace between the top of the frame and the first line 
 inside the frame.

 An impression of the result:

 ---
 |� �� �� �� �� �� �� �|� with \null in first line
 |� �� �first line� � �|
 |� �� �second line � �|
 ---

 ---
 |� �� �first line� � �|� without \null in first line
 |� �� �second line � �|
 ---

 It seems counterintuitive to withhold the \null in the first line in 
 order to have the framing correct.
 A minimal example on which I encountered this follows:

 \setupbodyfont[cmr]
interesting, cmr


 % gives extra vertical white
 \startframedtext[middle][width=fit]
 \null\quad\type{extra vertical space}\quad\null\crlf
 \null\quad\type{normal vertical space}\quad\null
 \stopframedtext

 % normal vertical white
 \startframedtext[middle][width=fit]
 \quad\type{normal vertical space}\quad\null\crlf
 \null\quad\type{normal vertical space}\quad\null
 \stopframedtext

 \stoptext

 Does this occur elsewhere too?
 Is it normal behaviour of framedtext?

the width=fit option will decompose the box try - as best as can do done with 
current tex- determine the fittign width; 

in the process, spacing may disappear 

also, framed may place struts automatically 

this may work: 

\startframedtext[middle][width=fit]
\strut\endgraf
\type{extra vertical space}\endgraf
\type{normal vertical space}\endgraf
\strut\endgraf
\stopframedtext

as may this: (smaller strut) 

\startframedtext[middle][width=fit,strut=no]
{\setupstrut[x]\strut}\endgraf\nointerlineskip
\type{extra vertical space}\endgraf
\type{normal vertical space}\endgraf
{\setupstrut[x]\strut}\endgraf\nointerlineskip
\stopframedtext


another option is to do something: 

\framed [width=fit,offset=overlay] \bgroup
  \vskip 1ex
  \quad \framed[width=fit,frame=off] \bgroup
  your content 
  \egroup \quad 
  \vskip 1ex
\egroup

or alike 

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
-

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


Re: [NTG-context] Using metapost figures in context

2006-06-12 Thread Hans Hagen
Aditya Mahajan wrote:
 Hi,

   Does there exist a startstop command (say startMPfigure) for managing 
 figures drawn using MP such that

 1. I can use \startMPfigure{label} .. \stopMPfigure and then use
 \useexternalMPfigure{label} to include the figure.
   
grep for \startMPrun .. \stopMPrun

 2. The figures are converted into pdf once. If the code inside 
 \startstop MPfigures changes, the pdf for each figure is recreated.

 Basically, I want MPfigures to be converted into pdf for faster 
 inclusion in the main document, the figure should be recompiled if 
 necessary and I should be able to include the figure using a label 
 (so that I can separate the figures from the main document).
   
you can use the figure database mechanism (davids arnold does that)

or make individual files,  say 'thatfile.tex'

\starttext \startMPpage
  fill fullcircle scaled 10cm;
\stopMPpage \stoptext

and then in test.tex say:

\def\MyMpgraphic[#1]%
  {\executesystemcommand{texmfstart --ifchanged=#1.tex texexec #1.tex}
   \externalfigure[#1.pdf]}

\starttext

\MyMpgraphic[thatfile]

\MyMpgraphic[thatfile][width=3cm]

\stoptext

(you need a version of texmfstart that provided the -ifchanged)

 uniqueMPgraphic provides the first functionality, but the figure is 
 converted into pdf on runtime (thereby increasing the processing time 
 of the document).
   
expect this to be sped up later this year (neglectable)
 I can use a separate document with each figure inside a \startMPpage 
 ... \stopMPpage, but (i) I need to remember figure numbers manually, 
 (ii) after making change in one figure, the whole file needs to be 
 recompiled.
   
so who not filenames like whateverprefix-somelabel
 Another possibility is to use one tex file for each figure, compile 
 them separately and then then use figure library to get a label for 
 each figure. But this becomes difficult to manage, as soon as I get 
 large number of files.

 Is their something basic that I am missing here? How do others manage 
 mpfigures?

 To Hans: is it possible to have a \startMPfigure command such that

 1. \startMPfigure[label]
   figure code
 \stopMPfigure

 creates a \jobname-figure-\nofMPfigurefile file with

 current MP environment
 current MP inclusion
 figure code (from inside \startstop MPfigure)

 Convert this into \jobname-figure-\nofMPfigurefile.pdf only if 
 something changes (similar to what is done in m-r module).

   
see prev example for a starter
 2. The resultant pdf can be included using \useMPfigure{label}.

 Would such a feature make sense?
   

would be a different command

remind me later this week

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
-

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


[NTG-context] Bad Split TABLEs

2006-06-12 Thread Johannes Graumann
Hello,

LONG tables form a significant part of my thesis. I put the thesis together
entirely in XML and have a stylesheet matching that XML into ConTeXt.
While ConTeXt is doing a great job with the rest, split TABLEs are not
working - despite Hans' repeatedly answering my pleas with patches. I
concluded that I might have a problem of my XML-to-ConTeXt matching rather
than ConTeXt itself at hand and pulled a part of my thesis flanking and
including the most unwieldy multipage table into ConTeXt proper (see
attachment). The problems persist and I'd like to poll the accumulated
ConTeXtitians on hints towards a solution of them, specifically:
- split tables without body content
- textbody text and tables overflowing the pages.
- multiple splits per page

I'd be very happy about any hints on how to remedy this document-spoiler ...

Thanks, Joh

% Papersize is 'letter'
\setuppapersize[letter][letter]

% CIT thesis regulations: 1 in margins, 1.5 in on the binding side
% Johannes: no footer
\setuplayout[
  backspace=1.5in,
  cutspace=1in,
  width=fit,
  topspace=1in,
  bottomspace=1in,
  height=fit,
  footer=0in
]
%\showlayout
%\showframe

% Setup micro-typesetting/character protrusion
% ConTeXt preloads Latin-Modern, this needs to be taken care of here and 
followed by the 'reset' below
\usetypescript[serif,sans,mono][hanging][normal]
\setupalign[hanging]

% Setup font usage: modern-base/textansi enables things like non-cursive 'mu'
\usetypescript[modern-base][texnansi]
\setupbodyfont[reset]
\setupbodyfont[12pt,modern]

% CIT thesis regulations: double spacing required! (BR!))
\setupinterlinespace[line=2\bodyfontsize]

% CIT thesis regulations: All pages except the title page to be numbered at 
least 3/4 from the top of the page - so globally I fix this to 'no' and 
revisit it in 'frontmatter', 'bodymatter', ...
\setuppagenumbering[location=]

% Setup paragraph indentation according to CIT proofreader's recommendation
\setupindenting[next,medium,yes]

% Setup footnotes to reset the counter by chapter according to CIT 
proofreader's recommendation:
\setupfootnotes[way=bychapter]

% URLs are supposed to be typeset in typewriter type fonts but sadly this does 
not work ... 
\setupurl[style=tt]

% Take care of title formating:
% a) title numbers are to be typeset in the margin
\setupheads[alternative=inmargin]
% b) all titles are to be typeset sans serifs and with decending font size
\setuphead[chapter][style=ssd]
\setuphead[section][style=ssb]
\setuphead[subsection][style=ssa]

% Formatting captions
% All captions: font smaller than body text, standard line spacing, as wide as 
the body
\setupcaptions[style={\switchtobodyfont[small]\setupinterlinespace[line=2.8ex]},width=\textwidth]
% Table captions only: caption precedes the table
\setupcaption[table][location=top]

% Extra hyphenation  patterns:
\hyphenation{a-ce-to-ni-trile u-bi-qui-tin gu-th-rie}



\defineselector[caption][max=2,n=2]
\start
  \setupselector[caption][n=1]
  %\completelistoftables[criterium=text]
  \writetolist[chapter]{}{Tables}{}
\stop
\starttext
  Remarkably, our comparative analysis of Gcn5p purifications yielded strong 
candidates for six new Gcn5p interactors. YCR082W, a nonessential gene product 
(Winzeler et al. 1999; Giavert et al. 2002) with unknown function, was found in 
all five Gcn5p purifications but was not recovered with any of the other baits 
that we analyzed. YCR082W exhibits a two--hybrid interaction with Ahc1p (Uetz 
et al. 2000; Ito et al. 2001), which together with Gcn5p is a member of the ADA 
histone acetyltransferase complex (Eberharter et al. 1999). Another candidate 
is Msn4p, a nonessential (Estruch et al. 1993; Winzeler et al. 1999) major 
transcriptional regulator of stress responses (Treger et al. 1998). Msn4p was 
recovered in four of the five Gcn5p pull down experiments but was not recovered 
with any of the other baits. This finding is interesting in the light of 
evidence that promoters activated by Msn4p and its partner Msn2p show increased 
histone H4 acetylation (Deckert et al. 2001). Other p
 otential interaction partners include YPL047W (present in two of the HPM 
purifications and the TAP purification), histones Hta1p/Hta2p and Imd4p (in 
TAP, modified TAP and one HPM pulldown). Other gene products recovered in more 
than two of the experiments are mostly ribosomal proteins that are likely 
contaminants. Finally, the interaction observed between Gcn5p and Swi1p in the 
TAP tag experiment was previously proposed only on the basis of their 
synthetically lethal genetic interaction (Pollard et al 1997).\par
  \subsection{Screening for Interactions}
Having established the relative reproducibility of TAP--MudPIT and the 
comparability of the HPM tag to other available bipartite affinity tags, we set 
out to address three issues. First, we wished to determine what fraction of 
TAP--MudPIT experiments yield usable results. Second, we hoped to determine 
whether the parallel application of MudPIT to 

Re: [NTG-context] how to let context suppose chinese via utf-8 ?

2006-06-12 Thread 盛劲松
Hi,Hans Hagen


=== 2006-06-12 18:32:00 您在来信中写道:===

Mojca Miklavec wrote:
 your ConTeXt is older than a month don't even try to ask questions
 about why something doesn't work ;)

hey, that's not fair .. not everyone uses tha latest trickery and not
everyone messes up his tex system on a daily basis like you do -)

Hans

Thank you for your tolerance to a newbie like me :)
I have fixed the problem aready.
the problem is due to the changed cont-sys.tex file in 
C:\CTeX\texmf\tex\context\user
which was introduced to support chinese via encoding GBK before.
When I turned to UTF-8. I forgot to delete it.
Now I have deleted it .And everything goes well again:)
Special thanks were given to Lutz Haseloff [EMAIL PROTECTED]  who offered me
a package file utf.zip containing .map ,.enc and .tfm files.



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

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

= = = = = = = = = = = = = = = = = = = =


致
礼!


盛劲松
[EMAIL PROTECTED]
  2006-06-13




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