\startpagefigure[]\stoppagefigure enlarges page by 1 mm
Hello, \startpagefigure[...] ... \stoppagefigure enlarges page by 1 mm in both directions. This is an undesired effect as when the printer has auto-select-page mode on (which is useful when printing a document with mixed A4 and A3 pages) and an A4 page (210 x 297 mm) is enlarged to 211 x 298, the printer doesn't (auto)choose A4 but a nearest BIGGER page (8.5 x 13 in page in my case). Try the code: ---- t.mkiv \starttext \startpagefigure[A4.pdf]\stoppagefigure \stoptext ---- Is that a wanted behavior? How to avoid enlarging the inserted page? TIA. Best regards, Lukas NB: "This is LuaTeX, Version beta-0.70.2-2012111114 (TeX Live 2012/W32TeX)" -- 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
Am 25.03.2013 um 16:25 schrieb Procházka Lukáš Ing. - Pontex s. r. o.
Hello,
\startpagefigure[...] ... \stoppagefigure enlarges page by 1 mm in both directions.
It’s 0.25ex on each side.
This is an undesired effect as when the printer has auto-select-page mode on (which is useful when printing a document with mixed A4 and A3 pages) and an A4 page (210 x 297 mm) is enlarged to 211 x 298, the printer doesn't (auto)choose A4 but a nearest BIGGER page (8.5 x 13 in page in my case).
The definition of \startpagefigure in page-app.mkiv needs a change because \externalfigureparameter\c!offset uses always the global setting. % \def\page_figures_start[#1][#2]% % {\bgroup % \setupexternalfigure[\v!page:\v!figure][\c!offset=\v!overlay,#2]% % \startTEXpage[\c!offset=\externalfigureparameter\c!offset]% % \externalfigure[#1][\v!page:\v!figure]\ignorespaces} % so we can put some text below the graphic \def\page_figures_start[#1][#2]% {\bgroup \def\currentexternalfigure{\v!page:\v!figure}% \setupcurrentexternalfigure[\c!offset=\v!overlay,#2]% \startTEXpage[\c!offset=\externalfigureparameter\c!offset]% \externalfigure[#1]\ignorespaces} % so we can put some text below the graphic \def\page_figures_start[#1][#2]% {\bgroup \setupexternalfigure[\v!page:\v!figure][\c!offset=\v!overlay,#2]% \startTEXpage[\c!offset=\namedexternalfigureparameter{\v!page:\v!figure}\c!offset]% \externalfigure[#1]\ignorespaces} % so we can put some text below the graphic BTW: You can use \pagefigure[<image>] instead of \startpagefigure[<image>]\stoppagefigure. Wolfgang
Hello,
BTW: You can use \pagefigure[<image>] instead of \startpagefigure[<image>]\stoppagefigure.
Wolfgang
it seems \placefigure adds some extra space around, too. Should this be corrected, too? See my example... 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
Am 28.03.2013 um 13:33 schrieb Procházka Lukáš Ing. - Pontex s. r. o.
Hello,
BTW: You can use \pagefigure[<image>] instead of \startpagefigure[<image>]\stoppagefigure.
Wolfgang
it seems \placefigure adds some extra space around, too.
Should this be corrected, too?
See my example…
I can’t reproduce this, do you use the current beta on your system? Wolfgang
it seems \placefigure adds some extra space around, too.
Should this be corrected, too?
See my example…
I can’t reproduce this, do you use the current beta on your system?
Wolfgang
Unfortunately no, I'm using: ConTeXt ver: 2012.11.26 13:31 MKIV fmt: 2012.11.27 int: english/english - I'm often using LuaXML.dll which exists only for Lua 5.1 so far (I contacted the author who doesn't maintain this lib any more). I'm planning to bring it to Lua 5.2, too - but necessity to "upgrade" a .dll from Lua 5.1 to 5.2 concerns more libs I'm using, too, and I'm "collecting" time to rebuild (upgrade) them all. - So, that's the reason I'm still keeping "ConTeXt ver: 2012.11.26". 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 (2)
-
Procházka Lukáš Ing. - Pontex s. r. o.
-
Wolfgang Schuster