* XeTeX and \placefigure
@ 2006-08-24 3:29 Pepe Barbe
2006-08-24 8:40 ` Hans Hagen
0 siblings, 1 reply; 15+ messages in thread
From: Pepe Barbe @ 2006-08-24 3:29 UTC (permalink / raw)
Hello,
I've been trying to compile my document using XeTeX and it gives me
the following error:
! 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
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: XeTeX and \placefigure
2006-08-24 3:29 XeTeX and \placefigure Pepe Barbe
@ 2006-08-24 8:40 ` Hans Hagen
2006-08-24 10:37 ` Mojca Miklavec
` (2 more replies)
0 siblings, 3 replies; 15+ messages in thread
From: Hans Hagen @ 2006-08-24 8:40 UTC (permalink / raw)
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
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: XeTeX and \placefigure
2006-08-24 8:40 ` Hans Hagen
@ 2006-08-24 10:37 ` Mojca Miklavec
2006-08-24 11:32 ` Ricard Roca
2006-08-24 13:36 ` Mojca Miklavec
2006-08-24 15:20 ` Pepe Barbe
2 siblings, 1 reply; 15+ messages in thread
From: Mojca Miklavec @ 2006-08-24 10:37 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: XeTeX and \placefigure
2006-08-24 10:37 ` Mojca Miklavec
@ 2006-08-24 11:32 ` Ricard Roca
0 siblings, 0 replies; 15+ messages in thread
From: Ricard Roca @ 2006-08-24 11:32 UTC (permalink / raw)
It works with jpg, pdf and png, with ConTeXt 2006-08-16 (beta).
Thanks,
Ricard
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: XeTeX and \placefigure
2006-08-24 8:40 ` Hans Hagen
2006-08-24 10:37 ` Mojca Miklavec
@ 2006-08-24 13:36 ` Mojca Miklavec
2006-08-24 15:47 ` Pepe Barbe
2006-08-24 15:20 ` Pepe Barbe
2 siblings, 1 reply; 15+ messages in thread
From: Mojca Miklavec @ 2006-08-24 13:36 UTC (permalink / raw)
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.)
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: XeTeX and \placefigure
2006-08-24 8:40 ` Hans Hagen
2006-08-24 10:37 ` Mojca Miklavec
2006-08-24 13:36 ` Mojca Miklavec
@ 2006-08-24 15:20 ` Pepe Barbe
2006-08-24 15:48 ` Mojca Miklavec
2006-08-24 18:24 ` Hans Hagen
2 siblings, 2 replies; 15+ messages in thread
From: Pepe Barbe @ 2006-08-24 15:20 UTC (permalink / raw)
On 8/24/06, Hans Hagen <pragma@wxs.nl> 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
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: XeTeX and \placefigure
2006-08-24 13:36 ` Mojca Miklavec
@ 2006-08-24 15:47 ` Pepe Barbe
[not found] ` <6faad9f00608240942r5ec952d4kcc9d70a5f46a8b17@mail.gmail.com>
2006-08-24 18:18 ` Hans Hagen
0 siblings, 2 replies; 15+ messages in thread
From: Pepe Barbe @ 2006-08-24 15:47 UTC (permalink / raw)
On 8/24/06, Mojca Miklavec <mojca.miklavec.lists@gmail.com> 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
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: XeTeX and \placefigure
2006-08-24 15:20 ` Pepe Barbe
@ 2006-08-24 15:48 ` Mojca Miklavec
2006-08-24 19:41 ` Jeff Smith
2006-08-24 18:24 ` Hans Hagen
1 sibling, 1 reply; 15+ messages in thread
From: Mojca Miklavec @ 2006-08-24 15:48 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: XeTeX and \placefigure
[not found] ` <6faad9f00608241006s1a9d7053wad19af4136c9570f@mail.gmail.com>
@ 2006-08-24 17:29 ` Pepe Barbe
0 siblings, 0 replies; 15+ messages in thread
From: Pepe Barbe @ 2006-08-24 17:29 UTC (permalink / raw)
Cc: mailing list for ConTeXt users
On 8/24/06, Mojca Miklavec <mojca.miklavec.lists@gmail.com> 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
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: XeTeX and \placefigure
2006-08-24 15:47 ` Pepe Barbe
[not found] ` <6faad9f00608240942r5ec952d4kcc9d70a5f46a8b17@mail.gmail.com>
@ 2006-08-24 18:18 ` Hans Hagen
1 sibling, 0 replies; 15+ messages in thread
From: Hans Hagen @ 2006-08-24 18:18 UTC (permalink / raw)
Pepe Barbe wrote:
> On 8/24/06, Mojca Miklavec <mojca.miklavec.lists@gmail.com> 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
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: XeTeX and \placefigure
2006-08-24 15:20 ` Pepe Barbe
2006-08-24 15:48 ` Mojca Miklavec
@ 2006-08-24 18:24 ` Hans Hagen
1 sibling, 0 replies; 15+ messages in thread
From: Hans Hagen @ 2006-08-24 18:24 UTC (permalink / raw)
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
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: XeTeX and \placefigure
2006-08-24 15:48 ` Mojca Miklavec
@ 2006-08-24 19:41 ` Jeff Smith
2006-08-24 23:04 ` Mojca Miklavec
2006-08-25 7:22 ` Hans Hagen
0 siblings, 2 replies; 15+ messages in thread
From: Jeff Smith @ 2006-08-24 19:41 UTC (permalink / raw)
On 8/24/06, Mojca Miklavec <mojca.miklavec.lists@gmail.com> 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
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: XeTeX and \placefigure
2006-08-24 19:41 ` Jeff Smith
@ 2006-08-24 23:04 ` Mojca Miklavec
2006-08-25 15:23 ` Jeff Smith
2006-08-25 7:22 ` Hans Hagen
1 sibling, 1 reply; 15+ messages in thread
From: Mojca Miklavec @ 2006-08-24 23:04 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: XeTeX and \placefigure
2006-08-24 19:41 ` Jeff Smith
2006-08-24 23:04 ` Mojca Miklavec
@ 2006-08-25 7:22 ` Hans Hagen
1 sibling, 0 replies; 15+ messages in thread
From: Hans Hagen @ 2006-08-25 7:22 UTC (permalink / raw)
Jeff Smith wrote:
> On 8/24/06, Mojca Miklavec <mojca.miklavec.lists@gmail.com> 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
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: XeTeX and \placefigure
2006-08-24 23:04 ` Mojca Miklavec
@ 2006-08-25 15:23 ` Jeff Smith
0 siblings, 0 replies; 15+ messages in thread
From: Jeff Smith @ 2006-08-25 15:23 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2006-08-25 15:23 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-24 3:29 XeTeX and \placefigure Pepe Barbe
2006-08-24 8:40 ` Hans Hagen
2006-08-24 10:37 ` Mojca Miklavec
2006-08-24 11:32 ` Ricard Roca
2006-08-24 13:36 ` Mojca Miklavec
2006-08-24 15:47 ` Pepe Barbe
[not found] ` <6faad9f00608240942r5ec952d4kcc9d70a5f46a8b17@mail.gmail.com>
[not found] ` <3e73596b0608240952h152fb5efgbae5d5bc3fe61ae8@mail.gmail.com>
[not found] ` <6faad9f00608241006s1a9d7053wad19af4136c9570f@mail.gmail.com>
2006-08-24 17:29 ` Pepe Barbe
2006-08-24 18:18 ` Hans Hagen
2006-08-24 15:20 ` Pepe Barbe
2006-08-24 15:48 ` Mojca Miklavec
2006-08-24 19:41 ` Jeff Smith
2006-08-24 23:04 ` Mojca Miklavec
2006-08-25 15:23 ` Jeff Smith
2006-08-25 7:22 ` Hans Hagen
2006-08-24 18:24 ` Hans Hagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).