Re: [NTG-context] 2DOWN imposition gives blank pages

2006-08-24 Thread Taco Hoekwater
Sanjoy Mahajan wrote:
 I'm learning page rearrangements and cannot figure out why the following
 small example doesn't work (it's similar to those in the cont-eni.pdf
 manual, fig 3.22).  Here it produces a two-page, blank PDF file when I
 run 'texexec --arrange p2'
 [ConTeXt ver: 2006.08.08 21:51 fmt: 2006.8.8 int: english mes: english]
 
 \setuppapersize[A5][A4]
 \setuparranging[2DOWN,rotated]
 \setuplayout[width=fit,margin=0pt]

Don't you need:

   \setuppapersize[A5,landscape][A4,landscape]
   \setuparranging[2DOWN,rotated]

Cheers, taco

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


[NTG-context] meta-FLOWcharts or ... ?

2006-08-24 Thread Renaud AUBIN





Hi all,

I would try to design a figure like
http://www.nibua-r.org/ConTeXt/sample.png
FLOWcharts seems to be a good tool to do that, but I have some troubles
to get "Simulation" and "Colision Detection" frames...

First, I thought of a meta-flowchart but I'm not sure that's possible.

Any idea ?

TIA

Renaud



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


Re: [NTG-context] XeTeX and \placefigure

2006-08-24 Thread Hans Hagen
Pepe Barbe wrote:
 Hello,

 I've been trying to compile my document using XeTeX and it gives me
 the following error:
   
you probably need a newer context

% engine=xetex output=xtx

\externalfigure[cow.pdf] \end

works ok here (or one can give texexec --xetex filename)

in the process you should see something:

figures : using rlxtools to determine size of cow.pdf
RlxTools | cow.pdf is identified
(./cow.pdf.rli)


below is a message from a direct parse of the pdf file (rather old stuff 
when pdf was more simple)
 ! Emergency stop.
 to be read again
b
 \setPDFmediabox ...#3 #4 #5]#6\done -\dimen 2=#2b
   p\dimen 2=-\dimen 2 
 \dimen...

 \checkPDFmediabox ...se \setPDFmediabox #2#3\done
   \fileprocessedtrue \fi
 \doprocessline ... to \fileline \doprocessPDFline
   \relax \expandafter 
 \dopro...

 \dogetPDFmediabox ...chread {#1}\doprocessPDFline
   \egroup \ifx \PDFxoffset 
 \...

 \getfiguredimensionsA ...heightb } \executedfalse
   \ifexecuted \donetrue 
 \ifd...
 
 l.40[height=.25\textheight] }

 It comes from the following code.

 \placefigure [here] [fig:cell_type_diag]
   {Typical diagram of the main cell types \cite[Web:2006aa],
   \cite[Web:2006ab]}
   \startcombination[2*1]
   { \externalfigure[chp1_prokaryote_diagram]
   [height=.25\textheight] }{Prokaryote}
   { \externalfigure[chp1_eukaryote_diagram]
   [height=.25\textheight] } {Eukaryote}
   \stopcombination

 Any ideas?

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


-- 

-
  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] meta-FLOWcharts or ... ?

2006-08-24 Thread Renaud AUBIN




Renaud AUBIN a crit:

  
  
  I would try to design a
figure like
  http://www.nibua-r.org/ConTeXt/sample.png
FLOWcharts seems to be a good tool to do that, but I have some troubles
to get "Simulation" and "Colision Detection" frames...
  

I have done a first sample: http://www.nibua-r.org/ConTeXt/testbed/flow/
As you can see, "Simulation" and "Collision Detection" frames are
missing since I don't know how to draw them.
Moreover:
- \connection[b-l]{sim_constraint} in cd_stc returns a strange result,
- Hans, any comments about "Crossing lines, which are often forbidden
in charts, can be made less confusing by adding a gap in the lines to
be crossed. This is one of the features that are already implemented
but not yet accessible by the ConTEXt user interface." in mcharts.pdf
since I have a problem with crossing lines ;)
- Is there a way to add horizontal distance between vertical parts of
\connection[b-l]{sim_time} in cd_stc and \connection[+lt]{cd_broad} in
sim_constraint ?

Renaud


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


Re: [NTG-context] XeTeX and \placefigure

2006-08-24 Thread Mojca Miklavec
On 8/24/06, Hans Hagen wrote:
 Pepe Barbe wrote:
  Hello,
 
  I've been trying to compile my document using XeTeX and it gives me
  the following error:
 
 you probably need a newer context

 % engine=xetex output=xtx

 \externalfigure[cow.pdf] \end

 works ok here (or one can give texexec --xetex filename)

 in the process you should see something:

 figures : using rlxtools to determine size of cow.pdf
 RlxTools | cow.pdf is identified
 (./cow.pdf.rli)

It doesn't work here either. For PDF I get:

##
system (XETEX) : [line 877]
)
specials: fdf,dpx loaded
)
! Undefined control sequence.
\dogetfiguresizepdf ...3#4#5#6-\dogetPDFmediabox
  {#1}{#3}{#4}{#5}{#6}
\getfiguredimensionsA ...heightb } \executedfalse
  \ifexecuted \donetrue \ifd...
argument \getfiguredimensionsA
 \getfiguredimensionsB \getfiguredimensionsC
\firstoftwoarguments #1#2-#1

\dodododoanalyzefigurefiles ...ionsC } \donothing
  \fi
\dododoanalyzefigurefiles ...refiles } \donothing
  \fi
...
l.21 \externalfigure[cow.pdf] \end

?
##


and for PNG the following:

##
system (XETEX) : [line 877]
)
specials: fdf,dpx loaded
)
figures : using rlxtools to determine size of mill.png
RlxTools | unable to identify mill.png
figures : figure ./mill.png has zero dimensions
figures : figure ./mill.png has zero dimensions
! Undefined control sequence.
\dogetfiguresizepdf ...3#4#5#6-\dogetPDFmediabox
  {#1}{#3}{#4}{#5}{#6}
\getfiguredimensionsA ...heightb } \executedfalse
  \ifexecuted \donetrue \ifd...
argument \getfiguredimensionsA
 \getfiguredimensionsB \getfiguredimensionsC
\firstoftwoarguments #1#2-#1

\dodododoanalyzefigurefiles ...ionsC } \donothing
  \fi
\dododoanalyzefigurefiles ...refiles } \donothing
  \fi
...
l.21 \externalfigure[mill.png] \end

?
##

\XeTeXpicfile alone works OK.

I'm testing with the standalone ConTeXt on windows with:
This is XeTeX, Version 3.141592-2.2-0.995 (Web2C 7.5.5)
ConTeXt  ver: 2006.08.22 16:28  fmt: 2006.8.23  int: english  mes: english

 you probably need a newer context

I know ;)

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


Re: [NTG-context] 2DOWN imposition gives blank pages

2006-08-24 Thread Sanjoy Mahajan
Taco wrote:
 Don't you need:
 
\setuppapersize[A5,landscape][A4,landscape]
\setuparranging[2DOWN,rotated]
 

The following produces a first page with p.1 on the right half, but a
blank 2nd page:

\setuppapersize[A5,landscape][A4,landscape]
\setuparranging[2DOWN,rotated]
\starttext
\input tufte
\stoptext

That looks okay, except for the blank 2nd page.

But shouldn't it also work to impose two A5's on one landscape A4?
Here's a few more puzzles related to that.  If they are doing what
they are supposed to, let me know -- then I need to understand the
imposition system more.

\setuppapersize[A5][A4,landscape]
\setuparranging[2UP]
\starttext
\input tufte
\page
\input tufte
\stoptext

produces a two-page document:

p.1: |   | 1 |  (i.e. blank left half, and original p.1 on the right half)
p.2: | 2 |   |  (i.e. original p.2 on left half, blank right half)

Shouldn't it produce

p.1: | 1 | 2 |

Here's my reasoning.  Two A5's (with their long directions vertical)
fit side by side to make one A4 in landscape orientation with text
running down along the short direction, which looks like 2-column text
done the hard way.  So, for a two-page original document, 2UP
arranging should produce either

p.1: | 1 | 2 |

or

p.1: | 2 | 1 |


So in case I've confused the directions of 2UP and 2DOWN, I also tried:

\setuppapersize[A5][A4,landscape]
\setuparranging[2DOWN]
\starttext
\input tufte
\page
\input tufte
\stoptext

It produces:

p.1: |   |   |
p.2: | 2 |   |

The original p.1 disappeared, which I don't understand.  Also I don't
understand why it results in two output pages.

But this hack:

\setuppapersize[A5][A4,landscape]
\setuparranging[2UP]
\starttext
\null\page
\input tufte
\page
\input tufte
\stoptext

produces the following arrangement, which is close to what I expect:

p.1: |   | 1 |  (where the original p.1 is blank except for the page num)
p.2: | 2 | 3 |

Once I understand what's going on, I'll wikify!

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


Re: [NTG-context] XeTeX and \placefigure

2006-08-24 Thread Ricard Roca
It works with jpg, pdf and png, with ConTeXt 2006-08-16 (beta).

Thanks,

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


Re: [NTG-context] Font's in Gerben Wierda's TeX distribution and ConTeXt

2006-08-24 Thread Mojca Miklavec
On 8/24/06, Pepe Barbe wrote:
 Hello,

 I am using GW's TeX distribution with ConTeXt. I am interested in
 using a different font other than Computer Modern. This distribution
 seems to come with a ton of fonts (More than I need at least). Using
 the basic ConTeXt provisions to access the fonts I am able to access
 some fonts successfully (Like Palatino or Euler) and some
 unsuccsessfully (Like Optima, Iwona or Kurier).

 Ex:
 Works:
 \definetypeface [MyFace] [rm] [serif] [palatino] [default] [encoding=ec]

 Does not work:
 \definetypeface [MyFace] [ss] [sans] [iwona] [default] [encoding=ec]

Both
\definetypeface [MyFace] [ss] [sans] [iwona] [default] [encoding=ec]
\setupbodyfont[MyFace,ss]
and
\usetpescript[iwona][ec]
\setupbodyfont[iwona,ss]
should work (ss, as already Aditya said, is important to add).

You can try two things:
- unzip fonts from http://www.nowacki.strefa.pl/kurier.html to your
TeX tree and run
[sudo] mktexlsr or texhash (I don't know which one should be on your system)
- try if your example works on http://live.contextgarden.net

At least iwona should work there properly; if you want to try some
other free fonts, say which ones you need.

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


Re: [NTG-context] XeTeX and \placefigure

2006-08-24 Thread Mojca Miklavec
On 8/24/06, Hans Hagen wrote:
 Pepe Barbe wrote:
  Hello,
 
  I've been trying to compile my document using XeTeX and it gives me
  the following error:
 
 you probably need a newer context

Hmmm ... most probably ImageMagic then. From rlxtools:

result = `identify -units PixelsPerCentimeter -format
\x=%x,y=%y,w=%w,h=%h,b=%b\ #{filename}`.chomp.split(',')

Mojca

(From time to time it helps to delete the whole ConTeXt and then
istall it again. I have no idea what went wrong before, but at least
the document compiles now, although I don't get the images yet.)
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Empty last page, broken markings ??

2006-08-24 Thread WN




[EMAIL PROTECTED] wrote:

  Hi,

WN wrote:
  
  
Hello,

The last page in my documents is always empty. The document is setup as 
singlesided via

  
  
Always, always (as in: it generates an empty page even if that results
in an uneven number of pages)?
  

Correct, always an empty page. I have documents which have an uneven
number of pages, and
even number of pages.

  
Or does it fill out to an even number of generated pages?

Or does it always create an odd number of pages (I've heard that happen
with some conflicting settings between the use of sectionblocks and
\setuppagenumbering)?
  

I used the sectionblock option as described on http://wiki.contextgarden.net/Empty_page_at_the_end
just 2 days ago
to eliminate the empty page at the end of the document, which it does.
I did not use the sectionblock construct before.
Since then the markings as explained in my original email don't work
for the last couple of pages.

  
  
  
I use a couple of environment files which all define several things, title page, Table of contents,
Table of Figures, page layout, page numbering, headers/footers etc. I could attach all of them,
but I think the above settings are the one's that matter. I am not sure how to proceed to provide
the correct but minimal information. I tried to put everything in a test file, but I was not successful.

  
  
What is the overall structure of your document? The setups look ok, so
it is more likely something relating to your use (or not..) of section
blocks. For example, it could be that your headings do not work inside
appendices or backmatter?
  

I don't use appendices or a backmatter (yet), the overall structure of
all my documents look like this

\startproject chn
\mainlanguage[nl]
\enablemode[withsections,font-normal]

\input ../global

\startbodymatter
\input chn-chapter1
\input chn-chapter2
\input chn-chapter3
\input chn-chapter4
\input chn-chapter5
\input chn-chapter6
\input chn-chapter7
\stopbodymatter
\stopproject chn


  
  
  
I tried to attach the last three pages of my document, which demostrates the problem
but I exceeded the 40 KB. Is there another way of uploading documents 
which are more than 40 KB in size ?

  
  
Putting them on the wiki temporarily is an option.
  

I will try to do that

Thanks so far
Wim

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




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


Re: [NTG-context] XeTeX and \placefigure

2006-08-24 Thread Pepe Barbe
On 8/24/06, Hans Hagen [EMAIL PROTECTED] wrote:

 Pepe Barbe wrote:
  I've been trying to compile my document using XeTeX and it gives me
  the following error:
 
 you probably need a newer context

This is what I am running right now:

Output written on texexec.pdf (1 page, 18244 bytes).
Transcript written on texexec.log.
TeXExec | runtime: 0.317321
TeXExec | end of analysis
TeXExec |
TeXExec | TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD
TeXExec | TeXUtil   | version 9.1.0 - 1997-2005 - PRAGMA ADE/POD
TeXExec | CtxTools | version 1.3.3 - 2004/2006 - PRAGMA ADE/POD
TeXExec |
TeXExec | testing interface en
TeXExec | pdfeTeX Version 3.141592-1.30.4-2.2 (Web2C 7.5.5)
TeXExec | ConTeXt ver: 2006.08.22 16:28 fmt: 2006.8.24 int: english mes: english
TeXExec |
TeXExec | testing interface nl
TeXExec | pdfeTeX Version 3.141592-1.30.4-2.2 (Web2C 7.5.5)
TeXExec | ConTeXt ver: 2006.08.22 16:28 fmt: 2006.8.24 int: dutch mes: dutch
TeXExec |
TeXExec | testing interface en
TeXExec | pdfeTeX Version 3.141592-1.30.4-2.2 (Web2C 7.5.5)
TeXExec | ConTeXt ver: 2006.08.22 16:28 fmt: 2006.8.24 int: english mes: english
TeXExec |
TeXExec | testing interface nl
TeXExec | pdfeTeX Version 3.141592-1.30.4-2.2 (Web2C 7.5.5)
TeXExec | ConTeXt ver: 2006.08.22 16:28 fmt: 2006.8.24 int: dutch mes: dutch

Is there anything more recent? If not what else could be the problem?

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


Re: [NTG-context] XeTeX and \placefigure

2006-08-24 Thread Pepe Barbe
On 8/24/06, Mojca Miklavec [EMAIL PROTECTED] wrote:

 (From time to time it helps to delete the whole ConTeXt and then
 istall it again. I have no idea what went wrong before, but at least
 the document compiles now, although I don't get the images yet.)

I have reinstalled ConTeXt several times in the last few days and I
think I have a pretty recent version of ConTeXt.

I tried including miscellaneous PNG and JPG archives, and the only
thing it would show when using XeTeX was a dummy box. When using TeX
proper it would include the images correctly.

Any ideas?

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


Re: [NTG-context] XeTeX and \placefigure

2006-08-24 Thread Mojca Miklavec
On 8/24/06, Pepe Barbe wrote:
 On 8/24/06, Hans Hagen wrote:
 
  Pepe Barbe wrote:
   I've been trying to compile my document using XeTeX and it gives me
   the following error:
  
  you probably need a newer context

 This is what I am running right now:

 TeXExec | TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD
 TeXExec | TeXUtil   | version 9.1.0 - 1997-2005 - PRAGMA ADE/POD
 TeXExec | CtxTools | version 1.3.3 - 2004/2006 - PRAGMA ADE/POD

 TeXExec | testing interface en
 TeXExec | pdfeTeX Version 3.141592-1.30.4-2.2 (Web2C 7.5.5)
 TeXExec | ConTeXt ver: 2006.08.22 16:28 fmt: 2006.8.24 int: english mes: 
 english
 Is there anything more recent? If not what else could be the problem?

- You need to install ImageMagic if you don't have it yet.

- My files didn't want to compile either. I deleted everything and
installed ConTeXt from scratch (mswintex.zip, justtex.zip, XeTeX from
W32TeX + ctxtools --update + remake formats for XeTeX). Don't ask me
why it didn't work before (complained as in your case) - now it works
perfectly.

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


Re: [NTG-context] XeTeX and \placefigure

2006-08-24 Thread Pepe Barbe
On 8/24/06, Mojca Miklavec [EMAIL PROTECTED] wrote:

 Can you take a look at write18 (or shell-escape)? Try to google for it
 since I don't know MacOS, but I'm sure you'll find it. You have to
 enable it on your computer, usually it's residing in texmf.cnf, but
 that depends on the system used (on windows it's under miktex.ini for
 example).

Thanks! That did it.

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


Re: [NTG-context] 2DOWN imposition gives blank pages

2006-08-24 Thread Taco Hoekwater
Sanjoy Mahajan wrote:
 
 Once I understand what's going on, I'll wikify!

Unfortunately, I do not understand it either. I wrote my
'dont you need..' based on symptoms, not on understanding.


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


Re: [NTG-context] XeTeX and \placefigure

2006-08-24 Thread Hans Hagen
Pepe Barbe wrote:
 On 8/24/06, Mojca Miklavec [EMAIL PROTECTED] wrote:
   
 (From time to time it helps to delete the whole ConTeXt and then
 istall it again. I have no idea what went wrong before, but at least
 the document compiles now, although I don't get the images yet.)
 

 I have reinstalled ConTeXt several times in the last few days and I
 think I have a pretty recent version of ConTeXt.

 I tried including miscellaneous PNG and JPG archives, and the only
 thing it would show when using XeTeX was a dummy box. When using TeX
 proper it would include the images correctly.
   
can you run rlxtools? 

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] XeTeX and \placefigure

2006-08-24 Thread Hans Hagen
Pepe Barbe wrote:how does you rlog (of the tex run look), i.e. the real log

texexec --xetex yourfile  some.log

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] Layout and textwidth/textmargin

2006-08-24 Thread nico
Hello,

I wonder if it is possible to setup a layout with these requirements:

- it can be doublesided, that is, when doublesided the left margin (LM)  
and right margin (RM) are different and mirrored on right/left pages.

- the headings (section, etc.) start just after the left margin.

- the text body has an extra left text margin (TM) that is not mirrored.

Here is an example of the expected output in doublesided mode:

Left Page:
 LM  TM  RM
|--7 8--  -5-|
|   1. This is a Title |
|  |
|   This is the text body  |
|   that has a bigger left |
|   margin.|

Right Page:

RMTMLM
|-5--- 8--  --7--|
| The test continues on|
| This page.   |
|  |
| 2. Another Title |
|  |

For singlesided documents I can play with a setup like this (the  
margindistances should be taken into account too):

\setuphead[section][margin=-TM]
\setuplayout[leftmargin=TM+LM,
  rightmargin=RM,
  backspace=TM+LM,
  width=\paperwidth-(RM+TM+LM)]

For doublesided documents I thought about using textwidth or textmargin,  
but in this case the text margin is applied on left and right (the text is  
in the middle).

Should I play with other setup parameters? What is the best way to achieve  
this?

Thanks for any hint,

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


Re: [NTG-context] XeTeX and \placefigure

2006-08-24 Thread Jeff Smith
On 8/24/06, Mojca Miklavec [EMAIL PROTECTED] wrote:
 - You need to install ImageMagic if you don't have it yet.

 - My files didn't want to compile either. I deleted everything and
 installed ConTeXt from scratch (mswintex.zip, justtex.zip, XeTeX from
 W32TeX + ctxtools --update + remake formats for XeTeX). Don't ask me
 why it didn't work before (complained as in your case) - now it works
 perfectly.

I've followed this thread with interest What about the windows
stand-alone distribution, here? Would it be any different? I installed
ImageMagick and enabled the shell-escape, but I still get the dummy
boxes.

Thanks,
Jeff Smith
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] XeTeX and \placefigure

2006-08-24 Thread Mojca Miklavec
On 8/24/06, Jeff Smith wrote:
 On 8/24/06, Mojca Miklavec wrote:
  - You need to install ImageMagic if you don't have it yet.
 
  - My files didn't want to compile either. I deleted everything and
  installed ConTeXt from scratch (mswintex.zip, justtex.zip, XeTeX from
  W32TeX + ctxtools --update + remake formats for XeTeX). Don't ask me
  why it didn't work before (complained as in your case) - now it works
  perfectly.

 I've followed this thread with interest What about the windows
 stand-alone distribution, here? Would it be any different? I installed
 ImageMagick and enabled the shell-escape, but I still get the dummy
 boxes.

Can you send the logs? The only explanation that I might have is that either:

- texmfstart.exe hasn't been updated for some time (cont-win.zip has
to be fetched and the old exe file has to be replaced every now and
then)

- or you need at least ConTeXt beta version 2006-08-16 (so you really
need to ctxtools --update or to unzip the latest beta over existing
files)

- which version of XeTeX do you use (I have 0.995, but I doubt that
some major change has been made recently; contrary: making diff
against the latest stable ConTeXt version resulted in a file of
approximate size 660 kB)

(I'm also working with the standalone distro on Windows.)

But what exactly do you mean by I enabled the shell-escape? Isn't it
enabled by default already (contrary to other distributions such as
MikTeXt)?

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


Re: [NTG-context] New math feature requests

2006-08-24 Thread Aditya Mahajan
On Tue, 8 Aug 2006, Aditya Mahajan wrote:
 3. Formula tagging

 amsmath allows formulas to be tagged. I will explain amsmath's
 behaviour and hope that Hans can come up with the context way of doing
 such things.

 Occasionally, one wants to tag a formula, e.g.

 \placefomrula[a] \startformula
   a x = b
 \stopformula

 \placetaggedformula[b]{*} \startformula
   x = \frac {b}{a}
 \stopformula

 should come out as

 a x = b  (1)
 x = b/a  (*)

 Notice that ( and ) correspond to left and right in setupformulas. It
 should also be possible to place a tag without these brackets, so

 \placetaggedformulawithoutbrackets[c]{**} \startformula
   b = ax
 \stopformula

 should come out as
b = ax   ** --- no brackets here

 Maybe, instead of placetaggedformulawithout brackets, one can simply
 have

 \placetaggedformula[c][left=,right=]{**}

 but in such cases it is easy to get confused with the reference and
 options. I am not sure what is a good way to do this.

 It should also be possible to refer to these tagged formulas. So
 \in{formula}[b] should give * and \in{formula}[c] should give **.

 The tag should be set in text mode, so that one can say
 \placetagformula {Answer} and the Answer will come out in text 
mode.

I got an idea of using conversion for formula tagging. For single line 
formulas, the idea is pretty simple. I define a dummyconversion which 
always maps to the tag and set the formula conversion to 
dummyconversion. Then, I save the formula number, let startformula, 
work as normal and refine stopformula to restore formula number. 
The internal macros take care of referencing.

This is my first attempt

%8--
\def\placeformulatag%
   {\dosingleempty\doplaceformulatag}

\def\doplaceformulatag[#1]#2%
   {\let\normalstopformula\stopformula
\def\stopformula%
 {\normalstopformula
  \restorenumber[formula]
  \egroup
  \let\stopformula\normalstopformula}
  \bgroup
  \savenumber[formula]
  \def\dummyconversion##1{#2}
  \defineconversion[dummyconversion][\dummyconversion]
  \setupformulas[conversion=dummyconversion]
  \placeformula[#1]}


\starttext
\placeformulatag[tag]{test} \startformula
   E = mc^2
\stopformula

See \in formula[tag] for a tagged formula
\stoptext
%8-

This one places (test) with the brackets in place of the formula 
number. It is easy to get rid of the brackets by using 
\setupformulas[left=,right=]. However, I do not know what will be a 
good interface for this.

In Latex, \tag{whatever} give (whatever) and \tag*{whatever} gives 
whatever without the brackets. But context does not use starred form 
of commands, and I do not want to introduce them here. One way is

\placeformulatag[ref][left=,right=] {my tag} 

Is this fine? We can also have tagleft=... and tagright=... as part of 
setupformulas, or, if that is too confusion, have 
\setupformulatagging[left=...,right=...].

However, this idea does not work inside \startmathalignment as the 
conversion can not be changed inside a formula.

\placeformula \startformula \startalign
   \NC a \NC = b \NR[+]
   \setupformulas[conversion=set 1]
   \NC c \NC = d \NR[+]
\stopalign \stopformula

Is there some better way to achieve the same effect inside a 
mathalignment?

Aditya



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


Re: [NTG-context] New math feature requests

2006-08-24 Thread Aditya Mahajan
On Tue, 8 Aug 2006, Aditya Mahajan wrote:

[ A long list of feature requests ]

Here is something that was not in my original list: subformula 
numbering.

Context allows one to number subformulas by specifying the subnumber. 
Thus, if I want (1a) (1b) and (1c), I need to do

\placesubformula[+]{a} 

\placesubformula[+]{b} 

\placesubformula[+]{c} 


Basically, do the numbering by hand. This is fine if there are only a 
few formulas, but there are some drawbacks of this approach. Firstly, 
if at a later stage you decide to move the equations around, you need 
to retype the formula numbers. Also, you need to remember to increment 
the formula numbers at the right time.

I was thinking of a better (rather more familar) way of treating 
subformulas by imitating the \begin{subequations}  
\end{subeqations} environment of latex.

I propose a \startsubformula  \stopsubformula environment, so 
that inside it, I will get subformula numbers rather than formula 
numbers. Having discovered conversions (see my previous mail on tagged 
formulas), I tried to implement it using conversions. The following 
straightforward approach works fine. This is just a stop gap code, I 
do not take care of inherting the right settings for formulas, but 
it conveys the idea.

%--8
\definenumber[tempformula]
\def\subformulaconversion#1{\getnumber[tempformula]\character{#1}}
% character should be modifiable using \setupsubformulas

\defineconversion[subformulaconversion][\subformulaconversion]

\def\startsubformulas%
   {\incrementnumber[formula]
\expanded{\setupnumber[tempformula][start={\rawnumber[formula]}]}
\savenumber[formula]
\setupformulas[conversion=subformulaconversion]
% way should be set to bytext
\resetnumber[formula]
}

\def\stopsubformulas%
   {\setupformulas[conversion=numbers]
% conversion should be inherited from setupformulas
% way should be restored to whatever it was earlier
\restorenumber[formula]}

\startbuffer
\placeformula \startformula
   a^2 + b^2 = c^2
\stopformula
\stopbuffer

\starttext

\dorecurse{3}{\getbuffer}

Lets start subformulas

\startsubformulas
\dorecurse{3}{\getbuffer}
\stopsubformulas

Also works inside alignments

\startsubformulas
\placeformula \startformula \startalign
   \NC A \EQ B + C \NR[first]
   \NC D \EQ E + F \NR[+]
\stopalign \stopformula
\stopsubformulas

Notice that in \in formula[first] we get the correct reference.

\dorecurse{3}{\getbuffer}

\stoptext
%8---

Hans and Taco, can something like this be added to the core? If so, I 
will try to make this macro more robust (correct inheritence, etc.)

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