ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Portrait vs. landscape orientation for Tabloid paper
@ 2013-06-25 15:30 Pavneet Arora
  0 siblings, 0 replies; only message in thread
From: Pavneet Arora @ 2013-06-25 15:30 UTC (permalink / raw)
  To: ntg-context

I believe that the definitions for portrait and landscape orientation
for Tabloid/Ledger paper are flipped.

In the following MWE using Hans' clue to using \scaling directive, I am
having to specify landscape in order for the page to be set in portrait.
This observation is confirmed when I retrieve the document properties
using evince under Bodhi Linux and under Ubuntu 12.04 (<ALT><ENTER>
brings up the document properties).  With this MWE, the properties under
both systems is shown as "Tabloid, Portrait (11.00 x 17.00 inches)"

Have I got this right?

MWE:

\setuppapersize[tabloid,landscape][tabloid,landscape]
\setuplayout[
	backspace=0.5in,
	width=10in,
	topspace=1.0in,
	header=0in, 
	footer=0in,
	height=16.5in]
\setuppagenumbering[location=,state=stop]

\usemodule[simplefonts]
\setmainfont[schola]
\setupbodyfont[rm,16pt]
\setupinterlinespace[line=2.8ex]

\starttext
%\showlayout[in,pt]

\setupMPinstance
	[metafun]
	[extensions=yes,
	initializations=yes]

\startuseMPgraphic{Example}
u:=1cm;

pickup pencircle scaled 1pt;

draw (5u,0u) {dir 90}..(0u,5u) {dir 180};
draw (0u,5u) .. (-1.5u,10.5u) {dir 90} .. (0u,16u);
draw (0u,16u) {dir 0} .. (5u,21u) {dir 90};
draw (5u,21u) -- (39u,21u);
draw (39u,21u) {dir 270} .. (42u,18u) {dir 0};
draw (42u,18u) .. (43.5u,10.5u) {dir 270} .. (42u,3u);
draw (42u,3u) {dir 180} .. (39u,0u) {dir 270};
draw (39u,0u) -- (35u,0u);
draw (35u,0u) .. (22u,3u) {dir 180} .. (9u,0u);
draw (9u,0u) -- (5u,0u);
label(btex A POOL etex, (22u,10.5u));

\stopuseMPgraphic
\startalignment[middle]
\definedfont[Serif at 16pt]\setupinterlinespace
{\tfb\sc An Example Plumbing Schematic}
\blank[big]
{\tfb \tt [DRAFT---To Be Verified]}
\blank[2*big]
\stopalignment
\scale[width=10in]{\useMPgraphic{Example}}
\stoptext

-- 
----
Pavneet Arora           m: 647.406.6843
Waroc Informatik        t: 416.937.9276
___________________________________________________________________________________
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] only message in thread

only message in thread, other threads:[~2013-06-25 15:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-25 15:30 Portrait vs. landscape orientation for Tabloid paper Pavneet Arora

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