Re: [NTG-context] \startpagefigure[file.pdf][page=1, ...]\stoppagefigure

2013-12-12 Thread Xan
 Am 09.12.2013 um 11:19 schrieb Xan dxpublica at telefonica.net:
 
  Hi,
  
  When I use:
  
  \startpagefigure[file.pdf][page=X]\stoppagefigure
  
  with page = 2 does not work. Always it puts the first page.
  
  I run MKIV.
  
  Is it a bug?
 
 It’s a change of the behavior of the command and I won’t say it’s a bad 
 change.
 
 To understand the change you have to know that pagefigure is combination
 of \startTeXpage and \externalfigure and you get the same result with
 
 \startTEXpage
   \externalfigure[filename]
 \stopTEXpage
 
 
 The first parameter of the page figure command is the name of the graphic
 and the second argument let you change the values for TeXpage, in the old
 MkII code the second parameter was also used as second argument for
 \externalfigure. A problem in MkII was that you had something in the second
 parameter which was used by \startTEXpage *and* \externalfigure and the
 output wasn’t what you expected. I guess to avoid this Hans doesn’t pass
 the values of the second argument to \externalfigure anymore.
 
 
 To select now a certain page from your external document just use
 the \startTEXpage and \externalfigure combination:
 
 \startTEXpage
   \externalfigure[filename][page=number]
 \stopTEXpage
 
 Wolfgang

Thanks, Wolfgang, for all.
So there is a real bug with the command which previously I used. @Hans could be 
fix it

Thanks,
Xan
___
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
___

[NTG-context] \startpagefigure[file.pdf][page=1, ...]\stoppagefigure

2013-12-09 Thread Xan
Hi,

When I use:

\startpagefigure[file.pdf][page=X]\stoppagefigure

with page = 2 does not work. Always it puts the first page.

I run MKIV.

Is it a bug?

Thanks in advance,
Xan.
___
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
___


Re: [NTG-context] \startpagefigure[file.pdf][page=1, ...]\stoppagefigure

2013-12-09 Thread Wolfgang Schuster

Am 09.12.2013 um 11:19 schrieb Xan dxpubl...@telefonica.net:

 Hi,
 
 When I use:
 
 \startpagefigure[file.pdf][page=X]\stoppagefigure
 
 with page = 2 does not work. Always it puts the first page.
 
 I run MKIV.
 
 Is it a bug?

It’s a change of the behavior of the command and I won’t say it’s a bad change.

To understand the change you have to know that pagefigure is combination
of \startTeXpage and \externalfigure and you get the same result with

\startTEXpage
  \externalfigure[filename]
\stopTEXpage


The first parameter of the page figure command is the name of the graphic
and the second argument let you change the values for TeXpage, in the old
MkII code the second parameter was also used as second argument for
\externalfigure. A problem in MkII was that you had something in the second
parameter which was used by \startTEXpage *and* \externalfigure and the
output wasn’t what you expected. I guess to avoid this Hans doesn’t pass
the values of the second argument to \externalfigure anymore.


To select now a certain page from your external document just use
the \startTEXpage and \externalfigure combination:

\startTEXpage
  \externalfigure[filename][page=number]
\stopTEXpage

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
___


Re: [NTG-context] \startpagefigure[]\stoppagefigure enlarges page by 1 mm

2013-03-28 Thread 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...

Best regards,

Lukas


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

t.mkiv
Description: Binary data


t.pdf
Description: Adobe PDF document


t2.pdf
Description: Adobe PDF document
___
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
___

Re: [NTG-context] \startpagefigure[]\stoppagefigure enlarges page by 1 mm

2013-03-28 Thread Wolfgang Schuster

Am 28.03.2013 um 13:33 schrieb Procházka Lukáš Ing. - Pontex s. r. o. 
l...@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
___


Re: [NTG-context] \startpagefigure[]\stoppagefigure enlarges page by 1 mm

2013-03-28 Thread Procházka Lukáš Ing . - Pontex s . r . o .

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:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@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
___

[NTG-context] \startpagefigure[]\stoppagefigure enlarges page by 1 mm

2013-03-25 Thread Procházka Lukáš Ing . - Pontex s . r . o .

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-201214 (TeX Live 2012/W32TeX)


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

A4.pdf
Description: Adobe PDF document


t.mkiv
Description: Binary data


t.pdf
Description: Adobe PDF document
___
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
___

Re: [NTG-context] \startpagefigure[]\stoppagefigure enlarges page by 1 mm

2013-03-25 Thread Wolfgang Schuster

Am 25.03.2013 um 16:25 schrieb Procházka Lukáš Ing. - Pontex s. r. o. 
l...@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
___