From: Andreas Becker <abecker@physik.tu-berlin.de>
To: ntg-context@ntg.nl
Subject: Bug: Figures in columnset not displayed or compilation fails
Date: Sat, 11 Jul 2015 09:17:00 +0200 [thread overview]
Message-ID: <47707.0109606304$1436771658@news.gmane.org> (raw)
ConTeXt version: 2015.07.10 00:05
When I attempt to compile the minimal examples listed below with «context», wrong
behavior can be observed. No problems occur if it is compiled with «texexec».
The problems seem to arise when there are figures in a columnset in proximity to a
page break. If there are two consecutive figures at the page end, the compilation
fails in some cases.
In example #1, if the figure height is large enough that the figure does not fit on
the first page, the figure is not displayed at all. I tried different position keys
and observed no difference. The last occurence of «\input lorem» is mandatory for
this behavior.
In example #2, if the height of either of the figures so large, that is it not
possible to put both figures on the first page, and the size of the other figure is
small enough, that this single figure would fit on the page, the compilation error #1
occurs. This is independent of the consecutive text, i. e. the last «\input lorem»
line. If the position keyword «top» is assigned to the smaller figure, it is
displayed, unlike the other, large figure. If both figure heights are large, no
figure is displayed (like in example #1) unless we remove the last «\input lorem»
line.
By the way, the path in \externalfigure does not point to an existing file.
Regards, Andreas
Example #1:
\starttext
\startcolumnset
\chapter{chap}
\input lorem \input lorem
\input lorem
\placefigure[][]{}{\externalfigure[bla][height=7cm]}
\input lorem
\stopcolumnset
\stoptext
Example #2:
\starttext
\startcolumnset
\chapter{chap}
\input lorem \input lorem
\input lorem
\placefigure[][]{}{\externalfigure[bla][height=2cm]}
\placefigure[][]{}{\externalfigure[bla][height=9cm]}
\input lorem
\stopcolumnset
\stoptext
Error #1:
lua error > lua error on line 9 in file /home/user/contest/bla.tex:
...ext-minimals/texmf-context/tex/context/base/node-aux.lua:92: You cannot set field list in a node of type glue_spec
stack traceback:
[C]: in function 'setfield'
...ext-minimals/texmf-context/tex/context/base/node-aux.lua:92: in function 'takebox'
...ext-minimals/texmf-context/tex/context/base/node-aux.lua:100: in function 'textakebox'
...ext-minimals/texmf-context/tex/context/base/page-flt.lua:137: in function <...ext-minimals/texmf-context/tex/context/base/page-flt.lua:133>
(...tail calls...)
1 \starttext
2 \startcolumnset
3 \chapter{chap}
4 \input lorem \input lorem
5 \input lorem
6 \placefigure[][]{}{\externalfigure[bla][height=2cm]}
7 \placefigure[][]{}{\externalfigure[bla][height=9cm]}
8 \input lorem
9 >> \stopcolumnset
10 \stoptext
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next reply other threads:[~2015-07-11 7:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-11 7:17 Andreas Becker [this message]
[not found] <E1ZDp1y-0004kY-2w@mailfrontend-7.mail.tu-berlin.de>
2015-07-13 18:35 ` Hans Hagen
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='47707.0109606304$1436771658@news.gmane.org' \
--to=abecker@physik.tu-berlin.de \
--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).