Re: [NTG-context] XeTeX and \placefigure

2006-08-25 Thread Jeff Smith
Huh...lo and behold! This morning, it works. But I have done nothing?!
That's really strange... but I sure won't complain. :-)

One thing...

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

Yes, well... actually I just wanted to say that I had _checked_ if it
were enabled, but somehow it got worded very poorly. Sorry!

Anyway thanks again all, you're very helpful.
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-25 Thread Hans Hagen
Jeff Smith wrote:
> 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.
>   
hm, i only test xetex on windows (two broken macs now) and it works ok; is 
rlxtools called ? if not you can try 

rlxtools --ident somefile.jpg 

to see what happens 

btw, make sure that you use 

texexec --xtx somefile

i.e. use dvipdfmx and not the other one 

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


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 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] 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:
>
> (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 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 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] 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] 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...
 \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...
 \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] 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.
> 
>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