ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: zs <stryhal@sci.ujep.cz>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: images in table - luatex freezed
Date: Tue, 14 Aug 2007 00:31:03 +0200	[thread overview]
Message-ID: <20070814003103.2bc8932b@muj_linux> (raw)

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

             reply	other threads:[~2007-08-13 22:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-13 22:31 zs [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-08-13 21:57 zs
2007-08-14  7:08 ` luigi scarso
2007-08-14  9:03   ` zs
2007-08-14 11:11     ` Taco Hoekwater

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070814003103.2bc8932b@muj_linux \
    --to=stryhal@sci.ujep.cz \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).