ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [***SPAM***] Page layout mechanics
@ 2013-10-09 12:29 hwitloc
  2013-10-09 12:38 ` Marco Patzer
  0 siblings, 1 reply; 4+ messages in thread
From: hwitloc @ 2013-10-09 12:29 UTC (permalink / raw)
  To: ntg-context


I am trying to create a papersize for a business card (Japanese sized).
I want a 3 mm border/edge and the rest of the space available for text space.

I'm able to get new this for the vertical dimension, but the horizontal text area is about 20 mm shorter than desired or (intented) setyp values.

How can I get this to provide a text are width of 85 mm and not the 65 mm I am currently getting, even tough I only spacife 3mm right and left edges?

Thanks


% Minimal example follows:

\definepapersize[business-card][width=91mm,height=55mm]
\setuppapersize[business-card][business-card]
\setuppagenumbering[location=] 

\setuplayout[leftedge=0mm, leftedgedistance=0mm, leftmargin=0mm, leftmargindistance=0mm,
             backspace=3mm,
             rightedge=0mm,rightedgedistance=0mm,rightmargin=0mm,rightmargindistance=0mm,
             topspace=3mm, top=0mm, topdistance=0mm, header=0mm, headerdistance=0mm,
             footerdistance=0mm, footer=0mm,bottomdistance=0mm, bottom=0mm,
             makeupwidth=85mm ]
\starttext

    \showframe

    \midaligned{Hello World!}

    \showlayout

\stoptext
___________________________________________________________________________________
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] 4+ messages in thread

* Re: [***SPAM***] Page layout mechanics
  2013-10-09 12:29 [***SPAM***] Page layout mechanics hwitloc
@ 2013-10-09 12:38 ` Marco Patzer
  2013-10-09 14:10   ` Wolfgang Schuster
  2013-10-10  0:08   ` hwitloc
  0 siblings, 2 replies; 4+ messages in thread
From: Marco Patzer @ 2013-10-09 12:38 UTC (permalink / raw)
  To: ntg-context


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

On 2013–10–09 hwitloc@gmail.com wrote:

> I want a 3 mm border/edge and the rest of the space available for text space.

\definepapersize
  [business-card]
  [width=91mm,
   height=55mm]

\setuppapersize
  [business-card]

\setuplayout
  [backspace=3mm,
   topspace=3mm,
   margin=0mm,
   header=0mm,
   footer=0mm,
   width=middle,
   height=middle]

\starttext
  \showframe
  \midaligned{Hello World!}
  \showlayout
\stoptext

Marco

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 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] 4+ messages in thread

* Re: [***SPAM***] Page layout mechanics
  2013-10-09 12:38 ` Marco Patzer
@ 2013-10-09 14:10   ` Wolfgang Schuster
  2013-10-10  0:08   ` hwitloc
  1 sibling, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2013-10-09 14:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 09.10.2013 um 14:38 schrieb Marco Patzer <lists@homerow.info>:

> On 2013–10–09 hwitloc@gmail.com wrote:
> 
>> I want a 3 mm border/edge and the rest of the space available for text space.
> 
> \definepapersize
>  [business-card]
>  [width=91mm,
>   height=55mm]
> 
> \setuppapersize
>  [business-card]
> 
> \setuplayout
>  [backspace=3mm,
>   topspace=3mm,
>   margin=0mm,
>   header=0mm,
>   footer=0mm,
>   width=middle,
>   height=middle]


You can also modify the “page” layout.

\setuplayout[page][backspace=3mm,topspace=3mm]
\setuplayout[page]

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

* Re: [***SPAM***] Page layout mechanics
  2013-10-09 12:38 ` Marco Patzer
  2013-10-09 14:10   ` Wolfgang Schuster
@ 2013-10-10  0:08   ` hwitloc
  1 sibling, 0 replies; 4+ messages in thread
From: hwitloc @ 2013-10-10  0:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users



Marco,
   thanks for demonstrating a clean way to set up custom layout sizes.
This is very usefull and will be applied to various target documents and paper sizes depending on the need.

Regards

Marco Patzer wrote:

> On 2013–10–09 hwitloc@gmail.com wrote:
> 
> > I want a 3 mm border/edge and the rest of the space available for text space.
> 
> \definepapersize
>   [business-card]
>   [width=91mm,
>    height=55mm]
> 
> \setuppapersize
>   [business-card]
> 
> \setuplayout
>   [backspace=3mm,
>    topspace=3mm,
>    margin=0mm,
>    header=0mm,
>    footer=0mm,
>    width=middle,
>    height=middle]
> 
> \starttext
>   \showframe
>   \midaligned{Hello World!}
>   \showlayout
> \stoptext
> 
> Marco
> ___________________________________________________________________________________
> 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] 4+ messages in thread

end of thread, other threads:[~2013-10-10  0:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-09 12:29 [***SPAM***] Page layout mechanics hwitloc
2013-10-09 12:38 ` Marco Patzer
2013-10-09 14:10   ` Wolfgang Schuster
2013-10-10  0:08   ` hwitloc

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