ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \startpagefigure[]\stoppagefigure enlarges page by 1 mm
@ 2013-03-25 15:25 Procházka Lukáš Ing. - Pontex s. r. o.
  2013-03-25 16:35 ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2013-03-25 15:25 UTC (permalink / raw)
  To: ConTeXt

[-- Attachment #1: Type: text/plain, Size: 889 bytes --]

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

[-- Attachment #2: A4.pdf --]
[-- Type: application/pdf, Size: 9402 bytes --]

[-- Attachment #3: t.mkiv --]
[-- Type: application/octet-stream, Size: 66 bytes --]

\starttext
  \startpagefigure[A4.pdf]\stoppagefigure
\stoptext

[-- Attachment #4: t.pdf --]
[-- Type: application/pdf, Size: 9797 bytes --]

[-- Attachment #5: Type: text/plain, Size: 485 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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: \startpagefigure[]\stoppagefigure enlarges page by 1 mm
  2013-03-25 15:25 \startpagefigure[]\stoppagefigure enlarges page by 1 mm Procházka Lukáš Ing. - Pontex s. r. o.
@ 2013-03-25 16:35 ` Wolfgang Schuster
  2013-03-28 12:33   ` Procházka Lukáš Ing. - Pontex s. r. o.
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2013-03-25 16:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen


Am 25.03.2013 um 16:25 schrieb Procházka Lukáš Ing. - Pontex s. r. o. <LPr@pontex.cz>:

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: \startpagefigure[]\stoppagefigure enlarges page by 1 mm
  2013-03-25 16:35 ` Wolfgang Schuster
@ 2013-03-28 12:33   ` Procházka Lukáš Ing. - Pontex s. r. o.
  2013-03-28 12:42     ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2013-03-28 12:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 464 bytes --]

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

[-- Attachment #2: t.mkiv --]
[-- Type: application/octet-stream, Size: 63 bytes --]

\starttext
  %\input knuth
  \pagefigure[t2.pdf]
\stoptext

[-- Attachment #3: t.pdf --]
[-- Type: application/pdf, Size: 9789 bytes --]

[-- Attachment #4: t2.pdf --]
[-- Type: application/pdf, Size: 9398 bytes --]

[-- Attachment #5: Type: text/plain, Size: 485 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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: \startpagefigure[]\stoppagefigure enlarges page by 1 mm
  2013-03-28 12:33   ` Procházka Lukáš Ing. - Pontex s. r. o.
@ 2013-03-28 12:42     ` Wolfgang Schuster
  2013-03-28 12:57       ` Procházka Lukáš Ing. - Pontex s. r. o.
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2013-03-28 12:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 28.03.2013 um 13:33 schrieb Procházka Lukáš Ing. - Pontex s. r. o. <LPr@pontex.cz>:

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: \startpagefigure[]\stoppagefigure enlarges page by 1 mm
  2013-03-28 12:42     ` Wolfgang Schuster
@ 2013-03-28 12:57       ` Procházka Lukáš Ing. - Pontex s. r. o.
  0 siblings, 0 replies; 5+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2013-03-28 12:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-03-28 12:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-25 15:25 \startpagefigure[]\stoppagefigure enlarges page by 1 mm Procházka Lukáš Ing. - Pontex s. r. o.
2013-03-25 16:35 ` Wolfgang Schuster
2013-03-28 12:33   ` Procházka Lukáš Ing. - Pontex s. r. o.
2013-03-28 12:42     ` Wolfgang Schuster
2013-03-28 12:57       ` Procházka Lukáš Ing. - Pontex s. r. o.

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).