summaryrefslogtreecommitdiff
path: root/Master
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
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')
-rw-r--r--Master/texmf-dist/doc/context/third/fullpage/fullpage-doc.pdfbin0 -> 33969 bytes
-rw-r--r--Master/texmf-dist/tex/context/third/fullpage/t-fullpage.tex108
-rwxr-xr-xMaster/tlpkg/bin/tlpkg-ctan-check2
-rwxr-xr-xMaster/tlpkg/libexec/ctan2tds1
-rw-r--r--Master/tlpkg/tlpsrc/collection-context.tlpsrc1
-rw-r--r--Master/tlpkg/tlpsrc/context-fullpage.tlpsrc1
6 files changed, 112 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/context/third/fullpage/fullpage-doc.pdf b/Master/texmf-dist/doc/context/third/fullpage/fullpage-doc.pdf
new file mode 100644
index 00000000000..418345b6b40
--- /dev/null
+++ b/Master/texmf-dist/doc/context/third/fullpage/fullpage-doc.pdf
Binary files differ
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
diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check
index 24cc6cfaef4..38b36e1c350 100755
--- a/Master/tlpkg/bin/tlpkg-ctan-check
+++ b/Master/tlpkg/bin/tlpkg-ctan-check
@@ -77,7 +77,7 @@ my @TLP_working = qw(
concmath concmath-fonts confproc constants
context-account context-algorithmic context-bnf context-chromato
context-construction-plan context-degrade context-fixme
- context-french context-games context-gnuplot
+ context-french context-fullpage context-games context-gnuplot
context-letter context-lettrine context-lilypond context-mathsets
context-notes-zh-cn context-ruby
context-simplefonts context-simpleslides
diff --git a/Master/tlpkg/libexec/ctan2tds b/Master/tlpkg/libexec/ctan2tds
index f3295462b83..57d831b22f7 100755
--- a/Master/tlpkg/libexec/ctan2tds
+++ b/Master/tlpkg/libexec/ctan2tds
@@ -169,6 +169,7 @@ $Master = "$mydir/../..";
'context-degrade', "&MAKEcopy",
'context-fixme', "&MAKEcopy",
'context-french', "&MAKEcopy",
+ 'context-fullpage', "&MAKEcopy",
'context-games', "&MAKEcopy",
'context-gnuplot', "&MAKEcopy",
'context-letter', "&MAKEcopy",
diff --git a/Master/tlpkg/tlpsrc/collection-context.tlpsrc b/Master/tlpkg/tlpsrc/collection-context.tlpsrc
index 0a622acbdb9..f85424c21e3 100644
--- a/Master/tlpkg/tlpsrc/collection-context.tlpsrc
+++ b/Master/tlpkg/tlpsrc/collection-context.tlpsrc
@@ -13,6 +13,7 @@ depend context-construction-plan
depend context-degrade
depend context-fixme
depend context-french
+depend context-fullpage
depend context-games
depend context-gnuplot
depend context-letter
diff --git a/Master/tlpkg/tlpsrc/context-fullpage.tlpsrc b/Master/tlpkg/tlpsrc/context-fullpage.tlpsrc
new file mode 100644
index 00000000000..8e194d47208
--- /dev/null
+++ b/Master/tlpkg/tlpsrc/context-fullpage.tlpsrc
@@ -0,0 +1 @@
+category ConTeXt