From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: fullpage and XeTeX typescript
Date: Tue, 23 Dec 2008 20:11:53 +0100 [thread overview]
Message-ID: <A2107C09-6415-4E90-8E9A-F0A876C9A195@gmail.com> (raw)
In-Reply-To: <gir81v$qsu$1@ger.gmane.org>
Am 23.12.2008 um 18:44 schrieb Mohamed Bana:
> hi,
>
> 1.
>
> what's the equivalent of the \usepackage{fullpage} for ConTeXt?
<file name="example.tex">
\usemodule[fullpage][style={cm,empty}]
%\showframe
\starttext
\input knuth
\stoptext
</file>
<file name="p-fullpage.tex">
%D \module
%D [ file=p-fullpage,
%D version=2008.12.23,
%D title=\CONTEXT\ User Module,
%D subtitle=Fullpage documents,
%D author=Wolfgang Schuster,
%D date=\currentdate,
%D copyright=Wolfgang Schuster,
%D license=Public Domain]
\unprotect
\startinterface all
\setinterfacevariable {fullpage} {fullpage}
\setinterfacevariable {in} {in}
\setinterfacevariable {cm} {cm}
\setinterfacevariable {plain} {plain}
\setinterfacevariable {headings} {headings}
\stopinterface
\startmodule[\v!fullpage]
\setupmodule
[\c!style={\v!in,\v!plain}]
\startsetups[\v!fullpage:\v!in]
\setuplayout
[\c!backspace=1in,
\c!width=\v!middle,
\c!topspace=1in,
\c!height=\v!middle]
\stopsetups
\startsetups[\v!fullpage:\v!cm]
\setuplayout
[\c!backspace=15mm,
\c!width=\v!middle,
\c!topspace=15mm,
\c!height=\v!middle]
\stopsetups
\startsetups[\v!fullpage:\v!plain]
\setuplayout
[\c!header=0pt,
\c!footer=.5in]
\stopsetups
\startsetups[\v!fullpage:\v!empty]
\setuplayout
[\c!header=0pt,
\c!footer=0pt]
\stopsetups
\startsetups[\v!fullpage:\v!headings]
\setuplayout
[\c!header=.5in,
\c!footer=.5in]
\stopsetups
\def\dofullpagelayout#1%
{\directsetup{\v!fullpage:#1}}
\processcommacommand[\currentmoduleparameter\c!style]\dofullpagelayout
\stopmodule
\protect \endinput
</file>
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2008-12-23 19:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-23 17:44 Mohamed Bana
2008-12-23 18:32 ` Wolfgang Schuster
2008-12-23 19:11 ` Wolfgang Schuster [this message]
2008-12-24 4:50 ` Yue Wang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=A2107C09-6415-4E90-8E9A-F0A876C9A195@gmail.com \
--to=schuster.wolfgang@googlemail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).