summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-04-27 01:14:10 +0000
committerKarl Berry <karl@freefriends.org>2010-04-27 01:14:10 +0000
commitda04ecae801c385bfbd25890479bce1ebb66c4eb (patch)
tree17ae93305463cef25b88afa536e3b6827aeeea01 /Master/texmf-dist/tex/context
parent27641243bb80c512247076301649db517d4eb35d (diff)
new context-fullpage package (24apr10)
git-svn-id: svn://tug.org/texlive/trunk@18021 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/context')
-rw-r--r--Master/texmf-dist/tex/context/third/fullpage/t-fullpage.tex108
1 files changed, 108 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/context/third/fullpage/t-fullpage.tex b/Master/texmf-dist/tex/context/third/fullpage/t-fullpage.tex
new file mode 100644
index 00000000000..43daa65fe80
--- /dev/null
+++ b/Master/texmf-dist/tex/context/third/fullpage/t-fullpage.tex
@@ -0,0 +1,108 @@
+%D \module
+%D [ file=t-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]
+
+%D \subject{Documentation}
+%D
+%D This module tries to copy the behaviour of the \filename {fullpage} package
+%D for \LaTeX, Mohamed Bana asked on the \ConTeXt\ mailing list if a module
+%D with the same functions is available and this module was the result.
+%D
+%D To use this module load it with the \type {\usemodule} commmand and pass
+%D a option with the \type {style} key in the optional argument.
+%D
+%D \starttyping
+%D \usemodule[fullpage][style={cm,empty}]
+%D
+%D \starttext
+%D \input knuth
+%D \stoptext
+%D \stoptyping
+%D
+%D The module provides the following styles:
+%D
+%D \starttable[|Bl|l|]
+%D \HL
+%D \NC in \NC set the margins to 1in \NC\AR
+%D \NC cm \NC set the margins to 1.5cm \NC\AR
+%D \NC plain \NC no header and narrow footer with 0.5cm \NC\AR
+%D \NC headings \NC narrow header and footer with 0.5cm \NC\AR
+%D \NC empty \NC no header and footer \NC\AR
+%D \HL
+%D \stoptable
+%D
+%D \subject{Implementation}
+
+\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