ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Page with minimum margins, maximum text width/textheight
@ 2012-01-13 22:59 Gerben Wierda
  2012-01-13 23:06 ` Aditya Mahajan
  0 siblings, 1 reply; 5+ messages in thread
From: Gerben Wierda @ 2012-01-13 22:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users

How do I create a page with maximum text width, text height? I tried using \setuplayout with stuff like [textwidth=\pagewidth-1cm], but nothing happens. I need empty pages with minimum margins, just to be able to put other PDF's in that space.

G
___________________________________________________________________________________
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: Page with minimum margins, maximum text width/textheight
  2012-01-13 22:59 Page with minimum margins, maximum text width/textheight Gerben Wierda
@ 2012-01-13 23:06 ` Aditya Mahajan
  2012-01-13 23:43   ` Gerben Wierda
  0 siblings, 1 reply; 5+ messages in thread
From: Aditya Mahajan @ 2012-01-13 23:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Fri, 13 Jan 2012, Gerben Wierda wrote:

> How do I create a page with maximum text width, text height? I tried 
> using \setuplayout with stuff like [textwidth=\pagewidth-1cm], but 
> nothing happens. I need empty pages with minimum margins, just to be 
> able to put other PDF's in that space.

\setuplayout[page], or if you want to do this for only one page, 
\adaptlayout[page]

Aditya
___________________________________________________________________________________
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: Page with minimum margins, maximum text width/textheight
  2012-01-13 23:06 ` Aditya Mahajan
@ 2012-01-13 23:43   ` Gerben Wierda
  2012-01-14  0:20     ` Philipp Gesang
  0 siblings, 1 reply; 5+ messages in thread
From: Gerben Wierda @ 2012-01-13 23:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users

I was already trying a lot of stuff with \setuplayout. I've found mentioning somewhere that you can adapt the backspace, topspace, height and width.So it must be something like 

\setuplayout[backspace=1cm,topspace=1cm,height=\paperheight,width=\paperwidth] but I forgot how to do something like  width=\paperwidth-2cm (not like that obviously, but I have forgotten how to do simple addition and subtraction with dimensions in TeX)

So, how do I set a margin of 1cm all around the makeup area?

G

On 14 Jan 2012, at 00:06, Aditya Mahajan wrote:

> On Fri, 13 Jan 2012, Gerben Wierda wrote:
> 
>> How do I create a page with maximum text width, text height? I tried using \setuplayout with stuff like [textwidth=\pagewidth-1cm], but nothing happens. I need empty pages with minimum margins, just to be able to put other PDF's in that space.
> 
> \setuplayout[page], or if you want to do this for only one page, \adaptlayout[page]
> 
> Aditya
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________

___________________________________________________________________________________
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: Page with minimum margins, maximum text width/textheight
  2012-01-13 23:43   ` Gerben Wierda
@ 2012-01-14  0:20     ` Philipp Gesang
  2012-01-14  0:31       ` Gerben Wierda
  0 siblings, 1 reply; 5+ messages in thread
From: Philipp Gesang @ 2012-01-14  0:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2529 bytes --]

Hi Gerben!

On 2012-01-14 00:43, Gerben Wierda wrote:
> but I forgot how to do something like  width=\paperwidth-2cm (not
> like that obviously, but I have forgotten how to do simple
> addition and subtraction with dimensions in TeX)

See TeXbook p. 118f.

> So, how do I set a margin of 1cm all around the makeup area?

Does the following fit your needs?

·································································

\newdimen\myborderoffset \myborderoffset=1cm

\definelayout[mypage][page]
\setuplayout [mypage][
  backspace=\myborderoffset,
  topspace=\myborderoffset,
]

\setuplayout[mypage]

\showframe

\def\docowpage{%
  \rotate[rotation=90]{\externalfigure[cow][width=\vsize,height=\hsize]}\page%
}

\starttext

\dorecurse{5}{\docowpage}
\stoptext

·································································

Regards, Philipp

> 
> G
> 
> On 14 Jan 2012, at 00:06, Aditya Mahajan wrote:
> 
> > On Fri, 13 Jan 2012, Gerben Wierda wrote:
> > 
> >> How do I create a page with maximum text width, text height? I tried using \setuplayout with stuff like [textwidth=\pagewidth-1cm], but nothing happens. I need empty pages with minimum margins, just to be able to put other PDF's in that space.
> > 
> > \setuplayout[page], or if you want to do this for only one page, \adaptlayout[page]
> > 
> > Aditya
> > ___________________________________________________________________________________
> > 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
> > ___________________________________________________________________________________
> 
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

[-- Attachment #1.2: Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: 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: Page with minimum margins, maximum text width/textheight
  2012-01-14  0:20     ` Philipp Gesang
@ 2012-01-14  0:31       ` Gerben Wierda
  0 siblings, 0 replies; 5+ messages in thread
From: Gerben Wierda @ 2012-01-14  0:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Thanks.

My external figures are PDFs with all weird sizes, the smaller ones, I want to print on portrait A4 (if they are more landscape than portrait, they will be rotated) and the larger ones on landscape A3 (again, rotated when they are more portrait than landscape). Distorting is not allowed. So far I am doing stuff like

\externalfigure[foo.pdf][factor=max]

\page\setuppapersize[A4,portrait][A4,portrait]
\setuplayout[backspace=10mm,topspace=10mm,width=277mm,height=190mm,header=5mm,footer=1mm]
\externalfigure[bar.pdf][orientation=90]

\page\setuppapersize[A3,landscape][A3,landscape]
\setuplayout[backspace=10mm,topspace=10mm,width=400mm,height=277mm,header=5mm,footer=1mm]
\externalfigure[foobar.pdf][factor=max]

\externalfigure[foo2.pdf][orientation=90]

\externalfigure[foo3.pdf][orientation=90]

But thanks to your suggestion, I am now doing

\rotate[rotation=90]{\externalfigure[foo.pdf][width=\vsize]}

The 'orientation' stuff of external figure doesn't work at all. It messes up size to fit and it rotates around points such that images are rotated partly out of the page. Your method works.

G


On 14 Jan 2012, at 01:20, Philipp Gesang wrote:

> Hi Gerben!
> 
> On 2012-01-14 00:43, Gerben Wierda wrote:
>> but I forgot how to do something like  width=\paperwidth-2cm (not
>> like that obviously, but I have forgotten how to do simple
>> addition and subtraction with dimensions in TeX)
> 
> See TeXbook p. 118f.
> 
>> So, how do I set a margin of 1cm all around the makeup area?
> 
> Does the following fit your needs?
> 
> ·································································
> 
> \newdimen\myborderoffset \myborderoffset=1cm
> 
> \definelayout[mypage][page]
> \setuplayout [mypage][
>  backspace=\myborderoffset,
>  topspace=\myborderoffset,
> ]
> 
> \setuplayout[mypage]
> 
> \showframe
> 
> \def\docowpage{%
>  \rotate[rotation=90]{\externalfigure[cow][width=\vsize,height=\hsize]}\page%
> }
> 
> \starttext
> 
> \dorecurse{5}{\docowpage}
> \stoptext
> 
> ·································································
> 
> Regards, Philipp
> 
>> 
>> G
>> 
>> On 14 Jan 2012, at 00:06, Aditya Mahajan wrote:
>> 
>>> On Fri, 13 Jan 2012, Gerben Wierda wrote:
>>> 
>>>> How do I create a page with maximum text width, text height? I tried using \setuplayout with stuff like [textwidth=\pagewidth-1cm], but nothing happens. I need empty pages with minimum margins, just to be able to put other PDF's in that space.
>>> 
>>> \setuplayout[page], or if you want to do this for only one page, \adaptlayout[page]
>>> 
>>> Aditya
>>> ___________________________________________________________________________________
>>> 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
>>> ___________________________________________________________________________________
>> 
>> ___________________________________________________________________________________
>> 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
>> ___________________________________________________________________________________
> 
> -- 
> ()  ascii ribbon campaign - against html e-mail
> /\  www.asciiribbon.org   - against proprietary attachments
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________

___________________________________________________________________________________
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:[~2012-01-14  0:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-13 22:59 Page with minimum margins, maximum text width/textheight Gerben Wierda
2012-01-13 23:06 ` Aditya Mahajan
2012-01-13 23:43   ` Gerben Wierda
2012-01-14  0:20     ` Philipp Gesang
2012-01-14  0:31       ` Gerben Wierda

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