View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000580 | context | bug report | public | 2011-02-19 15:07 | 2017-03-27 17:15 |
Reporter | Peter | Assigned To | Hans Hagen | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Summary | 0000580: offset ignored in \externalfigure | ||||
Description | \starttext \placefigure[right]{Problem: offset=20pt ignored here!} {\externalfigure[sample/cow.pdf] [scale=500, frame=on, offset=20pt, background=color, backgroundcolor=lightgray]} \input knuth \placefigure[right]{This is ok!}{\framed[offset=20pt, background=color, backgroundcolor=lightgray]{\externalfigure[sample/cow.pdf][scale=500]}} \input knuth \stoptext | ||||
Tags | No tags attached. | ||||
|
Smaller test-file: \starttext \framed{\externalfigure[cow][offset=20pt]} % offset=20pt ignored here \framed[offset=20pt]{\externalfigure[cow]} % ok \stoptext |
|
that's on purpose (hard coded: overlay) |
|
Hi Hans, Could you explain please why? TIA, Peter |
|
external figure is a rather basic command and framed is only part of it because of tracing and basic backgrounds for e.g. transparent images providing backgrounds is normally done by instances of \placefigure and so also, not enforcing overlay mode could interfere with other features (as we use the calculated width in some places and not the 'framed' dimensions); for instance in cases where we stack things (in special pdf features) we better have predictable dimensions so ... maybe some day but it's pretty hard to predict (and avoid) side effects unless we add some extra framed wrapper (influenced by other offset parameters) in which case one could as well wrap the thing in an external framed command) [remark: images are not really included, but a reference node is; so, we operate in pdf coordinate space; adding offsets should then be taken into account, also in scaling and other applied operations] |
Date Modified | Username | Field | Change |
---|---|---|---|
2011-02-19 15:07 | Peter | New Issue | |
2011-03-25 21:22 | Peter | Note Added: 0000760 | |
2013-04-05 19:52 | Hans Hagen | Note Added: 0001062 | |
2013-04-05 19:52 | Hans Hagen | Status | new => closed |
2013-04-05 19:52 | Hans Hagen | Assigned To | => Hans Hagen |
2013-04-05 19:52 | Hans Hagen | Resolution | open => fixed |
2013-05-31 22:08 | Peter | Note Added: 0001090 | |
2013-05-31 22:08 | Peter | Status | closed => feedback |
2013-05-31 22:08 | Peter | Resolution | fixed => reopened |
2013-06-04 22:02 | Hans Hagen | Note Added: 0001095 | |
2017-03-27 17:15 | Hans Hagen | Status | feedback => closed |
2017-03-27 17:15 | Hans Hagen | Resolution | reopened => fixed |