ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* images in table - luatex freezed
@ 2007-08-13 21:57 zs
  2007-08-14  7:08 ` luigi scarso
  0 siblings, 1 reply; 5+ messages in thread
From: zs @ 2007-08-13 21:57 UTC (permalink / raw)
  To: ntg-context

[-- Attachment #1: Type: text/plain, Size: 957 bytes --]

Hi

This code causes context/luatex to freeze using 100% of CPU.


\useexternalfigure[img_a][img1.png][type=png]
\useexternalfigure[img_b][img2.png][type=png]

\starttext

\placefigure[][]{Two images, itemized decsription}
{
\setupbodyfont[9pt]
\starttable[|cs(1cm)|c|]
\NC \externalfigure[img_a][height=5cm]
\NC \externalfigure[img_b][height=5cm] \NC\NR \NC (a) \NC (b) \SR \NC
\use{2}\ReFormat[l]{\hskip 4em (a) A very nice woman.} \AR \NC
\use{2}\ReFormat[l]{\hskip 4em (b) An ugly man.} \AR
\stoptable
}

\stoptext

Any idea why?

The code worked in context/pdftex from texlive.
It has nothing to do with particular images (tried different png, jpg).
Source code and sample images are attached.

ZS




PS. Something similar to following should be produced:


\placefigure[][]{Two images}
{
\startcombination[2*1]
  {\externalfigure[img_a][height=5cm]}{(a) A very nice woman.}
  {\externalfigure[img_b][height=5cm]}{(b) An ugly man.}
\stopcombination
}

[-- Attachment #2: pokus.tex --]
[-- Type: text/x-tex, Size: 456 bytes --]



\useexternalfigure[img_a][img1.png][type=png]
\useexternalfigure[img_b][img2.png][type=png]


\starttext


\placefigure[][]{Two images, itemized decsription}
{
\setupbodyfont[9pt]
\starttable[|cs(1cm)|c|]
\NC \externalfigure[img_a][height=5cm] \NC \externalfigure[img_b][height=5cm] \NC\NR
\NC (a) \NC (b) \SR
\NC \use{2}\ReFormat[l]{\hskip 4em (a) A very nice woman.} \AR
\NC \use{2}\ReFormat[l]{\hskip 4em (b) An ugly man.} \AR
\stoptable
}

\stoptext

[-- Attachment #3: img1.png --]
[-- Type: image/png, Size: 2367 bytes --]

[-- Attachment #4: img2.png --]
[-- Type: image/png, Size: 3041 bytes --]

[-- Attachment #5: Type: text/plain, Size: 487 bytes --]

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

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

^ permalink raw reply	[flat|nested] 5+ messages in thread
* images in table - luatex freezed
@ 2007-08-13 22:31 zs
  0 siblings, 0 replies; 5+ messages in thread
From: zs @ 2007-08-13 22:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 957 bytes --]

Hi

This code causes context/luatex to freeze using 100% of CPU.


\useexternalfigure[img_a][img1.png][type=png]
\useexternalfigure[img_b][img2.png][type=png]

\starttext

\placefigure[][]{Two images, itemized decsription}
{
\setupbodyfont[9pt]
\starttable[|cs(1cm)|c|]
\NC \externalfigure[img_a][height=5cm]
\NC \externalfigure[img_b][height=5cm] \NC\NR \NC (a) \NC (b) \SR \NC
\use{2}\ReFormat[l]{\hskip 4em (a) A very nice woman.} \AR \NC
\use{2}\ReFormat[l]{\hskip 4em (b) An ugly man.} \AR
\stoptable
}

\stoptext

Any idea why?

The code worked in context/pdftex from texlive.
It has nothing to do with particular images (tried different png, jpg).
Source code and sample images are attached.

ZS




PS. Something similar to following should be produced:


\placefigure[][]{Two images}
{
\startcombination[2*1]
  {\externalfigure[img_a][height=5cm]}{(a) A very nice woman.}
  {\externalfigure[img_b][height=5cm]}{(b) An ugly man.}
\stopcombination
}

[-- Attachment #2: pokus.tex --]
[-- Type: text/x-tex, Size: 456 bytes --]



\useexternalfigure[img_a][img1.png][type=png]
\useexternalfigure[img_b][img2.png][type=png]


\starttext


\placefigure[][]{Two images, itemized decsription}
{
\setupbodyfont[9pt]
\starttable[|cs(1cm)|c|]
\NC \externalfigure[img_a][height=5cm] \NC \externalfigure[img_b][height=5cm] \NC\NR
\NC (a) \NC (b) \SR
\NC \use{2}\ReFormat[l]{\hskip 4em (a) A very nice woman.} \AR
\NC \use{2}\ReFormat[l]{\hskip 4em (b) An ugly man.} \AR
\stoptable
}

\stoptext

[-- Attachment #3: img1.png --]
[-- Type: image/png, Size: 2367 bytes --]

[-- Attachment #4: img2.png --]
[-- Type: image/png, Size: 3041 bytes --]

[-- Attachment #5: Type: text/plain, Size: 487 bytes --]

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

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-08-14 11:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-13 21:57 images in table - luatex freezed zs
2007-08-14  7:08 ` luigi scarso
2007-08-14  9:03   ` zs
2007-08-14 11:11     ` Taco Hoekwater
2007-08-13 22:31 zs

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