Unwanted change of paper size; extra opt for \externalfigure
Hello, see the following example: ---- \starttext AAA \startTEXpage \rotate[rotation=-90]{\externalfigure[Model.pdf]} \stopTEXpage % Paper size is 297 * 297 mm from now?! BBB \stoptext ---- Why the last paper size becomes 297 x 297 mm? Suggestion: Wouldn't be good to have an option "rotation" (among "scale", "factor", width"...) to rotate the inserted figure, at least in multiples of 90 degrees? To allow something like: \externalfigure[Model.pdf][width=180mm,rotation=-90] Best regards, Lukas (ConTeXt ver: 2011.05.18 18:04 MKIV fmt: 2011.5.18, WinXP) -- Ing. Lukáš Procházka [mailto:LPr@pontex.cz] Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038
2011/6/8 Procházka Lukáš Ing. - Pontex s. r. o.
Hello,
see the following example:
---- \starttext AAA
\startTEXpage \rotate[rotation=-90]{\externalfigure[Model.pdf]} \stopTEXpage
% Paper size is 297 * 297 mm from now?!
BBB \stoptext ----
Why the last paper size becomes 297 x 297 mm? what are the dimensions of Model.pdf ? -- luigi
Not sure if it's a bug, but this fixes the situation (assuming A4 on A4) \starttext AAA \startTEXpage \rotate[rotation=-90]{\externalfigure[Model.pdf]} \stopTEXpage \setuppapersize[A4][A4] % Paper size is 297 * 297 mm from now?! BBB \stoptext -- luigi
On Wed, 08 Jun 2011 12:01:04 +0200, luigi scarso
Not sure if it's a bug, but this fixes the situation (assuming A4 on A4) \starttext AAA
\startTEXpage \rotate[rotation=-90]{\externalfigure[Model.pdf]} \stopTEXpage \setuppapersize[A4][A4] % Paper size is 297 * 297 mm from now?!
BBB \stoptext
OK, ... \stopTEXpage \setuppapersize[reset] works as well. So there is still the question - whether the behaviour is intended. Lukas -- Ing. Lukáš Procházka [mailto:LPr@pontex.cz] Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038
On 2011-06-08 Procházka Lukáš Ing. - Pontex s. r. o.
Hello,
see the following example:
---- \starttext AAA
\startTEXpage \rotate[rotation=-90]{\externalfigure[Model.pdf]} \stopTEXpage
% Paper size is 297 * 297 mm from now?!
BBB \stoptext
Shorter example: \starttext Foo \startTEXpage [height=21cm, width=40cm] \stopTEXpage Bar \stoptext When the width of the TeXpage is larger than the preceding page the following pages also get larger, a smaller size works. I don't thing this behaviour is intended. Marco
On 2011-06-08 Procházka Lukáš Ing. - Pontex s. r. o.
Wouldn't be good to have an option "rotation" (among "scale", "factor", width"...) to rotate the inserted figure, at least in multiples of 90 degrees? To allow something like:
\externalfigure[Model.pdf][width=180mm,rotation=-90]
Rotation and clipping is implemented as separate commands, I don't know about the reason, not to have them as well in \externalfigure. But it's implemented in \placefigure. Beware: \placefigure bites you if you provide negative angles ;) \placefigure[270][]{none}{\externalfigure[Model.pdf]} Marco
Am 10.06.2011 um 02:06 schrieb Marco:
On 2011-06-08 Procházka Lukáš Ing. - Pontex s. r. o.
wrote: Wouldn't be good to have an option "rotation" (among "scale", "factor", width"...) to rotate the inserted figure, at least in multiples of 90 degrees? To allow something like:
\externalfigure[Model.pdf][width=180mm,rotation=-90]
Rotation and clipping is implemented as separate commands, I don't know about the reason, not to have them as well in \externalfigure.
Clipping isn’t but rotation is (inherited from \framed): \externalfigure[...][orientation=-90] Wolfgang
Thanks, -
On Fri, 10 Jun 2011 09:00:32 +0200, Wolfgang Schuster
\externalfigure[...][orientation=-90]
Wolfgang
- "orientation" looks useful - I'll try it later. Anyway, I've added the option to wiki; it was not mentioned there. Best regards, Lukas -- Ing. Lukáš Procházka [mailto:LPr@pontex.cz] Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038
participants (4)
-
luigi scarso
-
Marco
-
Procházka Lukáš Ing. - Pontex s. r. o.
-
Wolfgang Schuster