ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Text to edges of page
@ 2011-03-04 15:29 John Haltiwanger
  2011-03-04 15:40 ` John Haltiwanger
  0 siblings, 1 reply; 3+ messages in thread
From: John Haltiwanger @ 2011-03-04 15:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Hi all,

I would have though the following code would produce text flush to the edges
of the "paper", but there is significant whitespace on the right and bottom
sides. Probably there is an obvious setting, but it eludes me now:

\definepapersize[short][width=600px,height=440px]
\setuppapersize[short][short]

\setuplayout[
backspace=0mm,
topspace=0mm,
margin=0mm,
header=0mm,
footer=0mm
]

\setupindenting[none]

\setupwhitespace[medium]
\setupinterlinespace[22pt]

\starttext

\input Tufte

\input Knuth

\input Tufte

\stoptext

[-- Attachment #1.2: Type: text/html, Size: 1255 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 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] 3+ messages in thread

* Re: Text to edges of page
  2011-03-04 15:29 Text to edges of page John Haltiwanger
@ 2011-03-04 15:40 ` John Haltiwanger
  2011-03-04 15:50   ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: John Haltiwanger @ 2011-03-04 15:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Nevermind, the answer is simple:

\setuplayout[

backspace=0mm,
topspace=0mm,
margin=0mm,
header=0mm,
footer=0mm
                width=600px,
                height=440px
]



On Fri, Mar 4, 2011 at 4:29 PM, John Haltiwanger <john.haltiwanger@gmail.com
> wrote:

> Hi all,
>
> I would have though the following code would produce text flush to the
> edges of the "paper", but there is significant whitespace on the right and
> bottom sides. Probably there is an obvious setting, but it eludes me now:
>
> \definepapersize[short][width=600px,height=440px]
> \setuppapersize[short][short]
>
> \setuplayout[
> backspace=0mm,
>  topspace=0mm,
> margin=0mm,
> header=0mm,
>  footer=0mm
> ]
>
> \setupindenting[none]
>
> \setupwhitespace[medium]
> \setupinterlinespace[22pt]
>
> \starttext
>
> \input Tufte
>
> \input Knuth
>
> \input Tufte
>
> \stoptext
>

[-- Attachment #1.2: Type: text/html, Size: 2126 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 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] 3+ messages in thread

* Re: Text to edges of page
  2011-03-04 15:40 ` John Haltiwanger
@ 2011-03-04 15:50   ` Wolfgang Schuster
  0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Schuster @ 2011-03-04 15:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 04.03.2011 um 16:40 schrieb John Haltiwanger:

> Nevermind, the answer is simple:
> 
> \setuplayout[
> 
> 		backspace=0mm,
> 		topspace=0mm,
> 		margin=0mm,
> 		header=0mm,
> 		footer=0mm
>                 width=600px,
>                 height=440px
> ]

You can use “width=middle” and “height=middle” and don’t forget the “,” after the last value (i.e. “height=440px,”) but for a layout without margins you can just use “\setuplayout[page]”.

\setuplayout[page]
\starttext
\dorecurse{12}{\input tufte\par}
\stoptext

For a simple layout with equal margins you can use the fullpage module:

\usemodule[fullpage][style={margin,empty},margin=5mm]
\showframe
\starttext
\input tufte
\stoptext

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] 3+ messages in thread

end of thread, other threads:[~2011-03-04 15:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-04 15:29 Text to edges of page John Haltiwanger
2011-03-04 15:40 ` John Haltiwanger
2011-03-04 15:50   ` Wolfgang Schuster

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