Re: [NTG-context] Full-page Figure?

2022-03-31 Thread Michael Urban via ntg-context


> On Mar 30, 2022, at 11:38 PM, Hans Hagen  wrote:
> 
> does adding page=no help?
> 
Yes.  Once again, everyone’s help has been spot on.

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Full-page Figure?

2022-03-31 Thread Hans Hagen via ntg-context

On 3/30/2022 11:41 PM, Michael Urban via ntg-context wrote:

Almost there.  But if I add \setuppagenumbering  [alternative=doublesided]
to the example, there is a blank page before the makeup page, and an unnumbered 
blank page after.  If I add doublesided=no to the
\setupmakeup options, the unnumbered blank page is not there, but there is 
still a blank page before.  It is seemingly forcing
a right-hand page for some reason I do not understand.

does adding page=no help?

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Full-page Figure?

2022-03-30 Thread śrīrāma via ntg-context
On Tuesday, March 29, 2022 4:18 AM Michael Urban via ntg-context wrote:
> Is there a simple way to accomplish this?

Aside from the other solution using makeup, a simpler way might be to just use 
the 'page' option for positioning the float. The following MWE achieves the 
same result as that with the makeup:

  \setuppagenumbering[alternative=doublesided]
  \setupexternalfigures[location=default]

  \setupheadertexts[]
  \setupheadertexts[chapter][\date]
  \setupfootertexts[pagenumber]

  \starttext
  \startchapter [title={Chapter title}]
  \dorecurse{2}{\samplefile{knuth}}
  \placefigure[page]{a floating cow}{\externalfigure[cow]} 
  \dorecurse{4}{\samplefile{knuth}}
  \blank

  \dorecurse{2}{\samplefile{tufte}}
  \stopchapter
  \stoptext

  Sreeram


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Full-page Figure?

2022-03-30 Thread śrīrāma via ntg-context
On Thursday, March 31, 2022 3:11 AM Michael Urban via ntg-context wrote:
> Almost there.  But if I add \setuppagenumbering  [alternative=doublesided]
> to the example, there is a blank page before the makeup page, and an 
> unnumbered blank page after.  If I add doublesided=no to the
> \setupmakeup options, the unnumbered blank page is not there, but there is 
> still a blank page before.  It is seemingly forcing
> a right-hand page for some reason I do not understand.

That is an easy fix: \setupmakeup, just like \setuphead, has a 'page' key which 
controls this. So, using the below setup for the 'FloatPage' makeup you can get 
rid of the unwanted page:

  \setupmakeup
[FloatPage]
[ headerstate=normal,
pagestate=start,
align=middle,
  footerstate=normal,
page=no,
  doublesided=no]

  Sreeram


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Full-page Figure?

2022-03-30 Thread Michael Urban via ntg-context
Almost there.  But if I add \setuppagenumbering  [alternative=doublesided]
to the example, there is a blank page before the makeup page, and an unnumbered 
blank page after.  If I add doublesided=no to the
\setupmakeup options, the unnumbered blank page is not there, but there is 
still a blank page before.  It is seemingly forcing
a right-hand page for some reason I do not understand.

Mike


> On Mar 28, 2022, at 6:37 PM, śrīrāma via ntg-context  
> wrote:
> 
> On Tuesday, March 29, 2022 4:18 AM Michael Urban via ntg-context wrote:
>> Is there a simple way to accomplish this?
> 
> I suppose you need 'postponing'. See
>  https://wiki.contextgarden.net/Command/startpostponing
> [One can specify a page explicitly, or, more conveniently, an offset]
> 
> First, we define a makeup and enable header, footer and page for it. Then we 
> can put the float inside the makeup and wrap it with 
> \start...\stoppostponing. Here is a MWE:
> 
> %%% start example
>  \setupexternalfigures[location=default]
>  \definemakeup
>[FloatPage]
>  \setupmakeup
>[FloatPage]
>[headerstate=normal,
>   pagestate=start,
>   align=middle,
> footerstate=normal]
> 
>  \setupheadertexts[]
>  \setupheadertexts[chapter][\date]
>  \setupfootertexts[pagenumber]
> 
>  \starttext
>  \startchapter [title={Chapter title}]
>\startpostponing[+1]
>  \startFloatPagemakeup
>  \placefigure{a floating cow}{\externalfigure[cow]}
>  \stopFloatPagemakeup
>\stoppostponing
>  \dorecurse{6}{\samplefile{knuth}}
>  \blank
> 
>  \dorecurse{2}{\samplefile{tufte}}
>  \stopchapter
>  \stoptext
> %%% stop example
> 
> Of course, I think some manual hand-tuning is required (in the final stages 
> of the document) in deciding the right place to put the postponing block and 
> in deciding what offset is best.
> 
> Sreeram
> 
> 
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Full-page Figure?

2022-03-28 Thread śrīrāma via ntg-context
On Tuesday, March 29, 2022 4:18 AM Michael Urban via ntg-context wrote:
> Is there a simple way to accomplish this?

I suppose you need 'postponing'. See
  https://wiki.contextgarden.net/Command/startpostponing
[One can specify a page explicitly, or, more conveniently, an offset]

First, we define a makeup and enable header, footer and page for it. Then we 
can put the float inside the makeup and wrap it with \start...\stoppostponing. 
Here is a MWE:

%%% start example
  \setupexternalfigures[location=default]
  \definemakeup
[FloatPage]
  \setupmakeup
[FloatPage]
[headerstate=normal,
   pagestate=start,
   align=middle,
 footerstate=normal]

  \setupheadertexts[]
  \setupheadertexts[chapter][\date]
  \setupfootertexts[pagenumber]

  \starttext
  \startchapter [title={Chapter title}]
\startpostponing[+1]
  \startFloatPagemakeup
  \placefigure{a floating cow}{\externalfigure[cow]}
  \stopFloatPagemakeup
\stoppostponing
  \dorecurse{6}{\samplefile{knuth}}
  \blank

  \dorecurse{2}{\samplefile{tufte}}
  \stopchapter
  \stoptext
%%% stop example

Of course, I think some manual hand-tuning is required (in the final stages of 
the document) in deciding the right place to put the postponing block and in 
deciding what offset is best.

Sreeram


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Full-page Figure?

2022-03-28 Thread Michael Urban via ntg-context
I want to have a float (illustration for fiction, with caption) that takes up 
just one page, irrespective of the size of the image in the figure.   This can 
be done with a \startmakeup, but makeup pages do not float, as near as I can 
tell; they interrupt the text (leaving a partly blank page); and of course they 
will not include headers and footers.   And a float with [page] will start the 
figure on a new page as desired, but if the image is too small, other text will 
end up on the page, which is not the desired result.  I want to vertically (and 
horizontally) center the figure on the page, with no other content but glue, in 
the main text block.  Headers and footers should appear as normal.

Is there a simple way to accomplish this?

Mike


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Full page figure

2012-09-25 Thread Procházka Lukáš Ing . - Pontex s . r . o .

... Maybe you should resize the page layout to full page with 
\setuplayout[page].

Lukas


On Tue, 25 Sep 2012 08:37:05 +0200, Mikoláš Štrajt stra...@seznam.cz wrote:


Hello everybody in list.

I have drawn title page for my book on paper, later scanned it. And now I want 
to add it to my book as a first page. But there is the a problem.

When I place it as a figure it is too large to fit on page. I have discovered 
[size=fit] argument, but this places it inside the page and margins remains.

So how can I place this title page without margins? (A4 scanned page to A4 PDF 
page)

I have scan in two formats PNG and PDF (A4 paper size).

Regards
--
Mikoláš Štrajt



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


Re: [NTG-context] Full page figure

2012-09-25 Thread Sietse Brouwer
Hi Mikoláš,

 So how can I place this title page without margins? (A4 scanned page to A4 
 PDF page)

There are commands to insert PDF pages directly:
http://wiki.contextgarden.net/Including_pages_from_PDF_documents

\filterpages[file.pdf][1]

should do the trick for you. For including page-sized figures as their
own page in general,
(not just PDFs, although that's the example I give), you want
\startTEXpage
\externalfigure[file.pdf][page=1,width=...]
\stopTEXpage

Kind regards,
Sietse
___
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] Full page figure

2012-09-25 Thread luigi scarso
On Tue, Sep 25, 2012 at 8:37 AM, Mikoláš Štrajt stra...@seznam.cz wrote:

 Hello everybody in list.

 I have drawn title page for my book on paper, later scanned it. And now I
 want to add it to my book as a first page. But there is the a problem.

 When I place it as a figure it is too large to fit on page. I have
 discovered [size=fit] argument, but this places it inside the page and
 margins remains.

 So how can I place this title page without margins? (A4 scanned page to A4
 PDF page)

 I have scan in two formats PNG and PDF (A4 paper size).


see
http://wiki.contextgarden.net/Layers
http://wiki.contextgarden.net/Simple_Cover_Page
-- 
luigi
___
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
___