summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2007-05-31 18:36:33 +0000
committerKarl Berry <karl@freefriends.org>2007-05-31 18:36:33 +0000
commit5150bb77cb9cc5d66a2432a9adb57bf2d58e04c7 (patch)
tree64443a1da917939746b955f51e17c9bbc0718693
parent614d179dbc40c1718ce6284e7232d99a3bbba953 (diff)
new latex package gcard
git-svn-id: svn://tug.org/texlive/trunk@4382 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-xBuild/tools/tpm-ctan-check2
-rw-r--r--Master/texmf-dist/doc/latex/gcard/README21
-rw-r--r--Master/texmf-dist/doc/latex/gcard/gcard.pdfbin0 -> 138641 bytes
-rw-r--r--Master/texmf-dist/doc/latex/gcard/gcardex.tex54
-rw-r--r--Master/texmf-dist/doc/latex/gcard/gcardminexample.tex19
-rw-r--r--Master/texmf-dist/tex/latex/gcard/gcard.sty83
-rw-r--r--Master/texmf-dist/tpm/gcard.tpm28
-rw-r--r--Master/texmf/lists/gcard9
-rw-r--r--Master/texmf/tpm/collection-latexextra.tpm1
9 files changed, 216 insertions, 1 deletions
diff --git a/Build/tools/tpm-ctan-check b/Build/tools/tpm-ctan-check
index 360a2a56500..696a5e717ac 100755
--- a/Build/tools/tpm-ctan-check
+++ b/Build/tools/tpm-ctan-check
@@ -50,7 +50,7 @@ my @WorkingTPM = qw(
fourier fouriernc
fp frankenstein free-math-font-survey
frenchle fribrief fullpict functan
- galois gastex gatech-thesis genmisc genmpage germbib ginpenc
+ galois gastex gatech-thesis gcard genmisc genmpage germbib ginpenc
glossaries gmdoc gmeometric
gmiflink gmutils gmverb gnuplottex gost graphics
graphicx-psmin greenpoint
diff --git a/Master/texmf-dist/doc/latex/gcard/README b/Master/texmf-dist/doc/latex/gcard/README
new file mode 100644
index 00000000000..335c665ed1a
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/gcard/README
@@ -0,0 +1,21 @@
+gcard.sty provides a simple LaTeX2e package for producing greeting cards.
+It arranges four panels onto a single sheet (typically, A4 or letter)
+so that when the sheet is folded twice the four panels are
+arranged as front cover, inside left and right pages, and back
+cover. It uses the textpos package for placement on the sheet
+and the graphicx package for the necessary rotation. The four
+panels are set in minipages for formatting by the user.
+
+The package is distributed under the LaTeX Public Project License.
+
+File list:
+
+gcard.sty % main package file
+gcard.pdf % main documentation
+README % this file
+gcardminex.tex % minimal example as shown in gcard.pdf
+gcardex.tex % slightly more complicated example
+
+29 May 2007
+George McBane
+mcbaneg@gvsu.edu
diff --git a/Master/texmf-dist/doc/latex/gcard/gcard.pdf b/Master/texmf-dist/doc/latex/gcard/gcard.pdf
new file mode 100644
index 00000000000..b87116e5ebb
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/gcard/gcard.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/gcard/gcardex.tex b/Master/texmf-dist/doc/latex/gcard/gcardex.tex
new file mode 100644
index 00000000000..c947875b964
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/gcard/gcardex.tex
@@ -0,0 +1,54 @@
+% greeting card document using gcard package, showing basic techniques of size
+% selection and horizontal and vertical placement of text
+
+% G. C. McBane 19 May 2007
+
+\documentclass[12 pt]{article}
+\usepackage{palatino}
+\usepackage{gcard}
+
+% user should set next four lengths to taste; defined for a single panel
+% after folding. All four panels use the same margins.
+% Here, edge and gutter are set the same, as are top and bottom; that's
+% not required, and it's okay to use 4 different values.
+\setlength{\guttermargin}{8 mm} % inside edge of textblock
+\setlength{\edgemargin}{\guttermargin} % outside edge
+\setlength{\gctopmargin}{6 mm} % top
+\setlength{\gcbottommargin}{\gctopmargin} % bottom
+
+
+\begin{document}
+
+\begin{frontcover}
+\centering
+\huge
+\textit{We hope you're\\
+having a\ldots}
+\end{frontcover}
+
+
+% back cover; pushed down to 0.5 cm above bottom margin
+\begin{backcover}
+\centering
+\vfill
+McB\"{u}chau Family Productions
+\vspace{.5 cm}
+\end{backcover}
+
+% inside left
+\begin{insideleft}
+\centering
+\small
+THIS SPACE INTENTIONALLY LEFT BLANK
+\end{insideleft}
+
+% inside right
+\begin{insideright}
+ \begin{center} % same effect as \centering used for front cover
+\Huge
+\textit{Happy\\
+Mother's Day!}
+ \end{center}
+\end{insideright}
+
+\end{document}
diff --git a/Master/texmf-dist/doc/latex/gcard/gcardminexample.tex b/Master/texmf-dist/doc/latex/gcard/gcardminexample.tex
new file mode 100644
index 00000000000..0d86b828587
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/gcard/gcardminexample.tex
@@ -0,0 +1,19 @@
+% minimalist greeting card document using gcard package
+% Sets text in 12 pt CMR (not exactly traditional for cards!)
+% G. C. McBane 21 May 2007
+\documentclass[12 pt]{article}
+\usepackage{gcard}
+
+\begin{document}
+
+\begin{frontcover}
+Dear Sir,\\
+I am sending two sardine tins. Please make me a motor-bicycle and a telescope.
+\end{frontcover}
+
+\begin{insideright}
+Happy
+Father's Day!
+\end{insideright}
+
+\end{document}
diff --git a/Master/texmf-dist/tex/latex/gcard/gcard.sty b/Master/texmf-dist/tex/latex/gcard/gcard.sty
new file mode 100644
index 00000000000..9acc5927d59
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/gcard/gcard.sty
@@ -0,0 +1,83 @@
+% package file for gcard package: typeset four ``panels'' on a single
+% sheet so that sheet can be folded twice to produce a greeting card.
+% Uses \rotatebox command from the graphicx package to invert two
+% of the panels, and the textpos package to place all four panels on
+% the page.
+
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{gcard}[2007/05/21 simple greeting card package]
+\DeclareOption{showboxes}{\PassOptionsToPackage{showboxes}{textpos}}
+\ProcessOptions
+\RequirePackage[absolute]{textpos}
+\RequirePackage{graphicx}
+\RequirePackage{calc}
+
+% main code begins here; each panel will be typeset and stored in
+% the box register \paneltext
+\newsavebox{\paneltext}
+
+% Define lengths
+\newlength{\guttermargin}
+\newlength{\edgemargin}
+\newlength{\gctopmargin}
+\newlength{\gcbottommargin}
+\newlength{\panelwidth}
+\newlength{\panelheight}
+
+% Set default values for margins. These are the apparent margins after
+% the card has been folded. The user should set these four to taste.
+% All four panels use the same margins.
+% Here, edge and gutter are set the same, as are top and bottom; that's
+% not required, and it's okay to use 4 different values.
+\setlength{\guttermargin}{0.2 in} % inside of panel
+\setlength{\edgemargin}{\guttermargin} % outside
+\setlength{\gctopmargin}{0.2 in} % top
+\setlength{\gcbottommargin}{\gctopmargin} % bottom
+
+% Define environments for four panels. The two outside ones (frontcover and
+% backcover) need to be rotated.
+% These environments place the user's material vertically centered in a minipage
+% of width \panelwidth and height \panelheight.
+\newenvironment{frontcover}{%
+\begin{lrbox}{\paneltext}\begin{minipage}[t][\panelheight][c]{\panelwidth}}
+{\end{minipage}\end{lrbox}
+\begin{textblock*}{\panelwidth}(0pt,0pt)
+\noindent
+\rotatebox[origin=c]{180}{\usebox{\paneltext}}
+\end{textblock*}}
+
+\newenvironment{backcover}{%
+\begin{lrbox}{\paneltext}\begin{minipage}[t][\panelheight][c]{\panelwidth}}
+{\end{minipage}\end{lrbox}
+\begin{textblock*}{\panelwidth}(\TPHorizModule,0pt)
+\noindent
+\rotatebox[origin=c]{180}{\usebox{\paneltext}}
+\end{textblock*}}
+
+\newenvironment{insideleft}{%
+\begin{textblock*}{\panelwidth}(0pt,\TPVertModule)
+\noindent
+\begin{minipage}[t][\panelheight][c]{\panelwidth}}
+{\end{minipage}\end{textblock*}}
+
+\newenvironment{insideright}{%
+\begin{textblock*}{\panelwidth}(\TPHorizModule,\TPVertModule)
+\noindent
+\begin{minipage}[t][\panelheight][c]{\panelwidth}}
+{\end{minipage}\end{textblock*}}
+
+\AtBeginDocument{
+% turn off page numbering
+\pagestyle{empty}
+% User should have chosen margins by now; compute panel sizes
+% and ``step sizes'' for placing panels
+\setlength{\panelwidth}{(\paperwidth-2\guttermargin-2\edgemargin)/2}
+\setlength{\panelheight}{(\paperheight-2\gctopmargin-2\gcbottommargin)/2}
+\setlength{\TPHorizModule}{\panelwidth + 2\guttermargin}
+\setlength{\TPVertModule}{\panelheight + 2\gctopmargin}
+% Set position of upper left corner of upper left panel (front cover)
+% with command from textpos package.
+\textblockorigin{\edgemargin}{\gcbottommargin}
+
+}
+
diff --git a/Master/texmf-dist/tpm/gcard.tpm b/Master/texmf-dist/tpm/gcard.tpm
new file mode 100644
index 00000000000..bdbdff715a2
--- /dev/null
+++ b/Master/texmf-dist/tpm/gcard.tpm
@@ -0,0 +1,28 @@
+<!DOCTYPE rdf:RDF SYSTEM "../../support/tpm.dtd">
+<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:TPM="http://texlive.dante.de/">
+ <rdf:Description about="http://texlive.dante.de/texlive/Package/gcard.zip">
+ <TPM:Name>gcard</TPM:Name>
+ <TPM:Type>Package</TPM:Type>
+ <TPM:Date>2007/05/30 01:48:00</TPM:Date>
+ <TPM:Version></TPM:Version>
+ <TPM:Creator>karl</TPM:Creator>
+ <TPM:Title>The gcard package.</TPM:Title>
+ <TPM:Description></TPM:Description>
+ <TPM:Author></TPM:Author>
+ <TPM:Size>144205</TPM:Size>
+ <TPM:License></TPM:License>
+ <TPM:Build/>
+ <TPM:RunFiles size="4023">
+texmf-dist/tex/latex/gcard/gcard.sty
+texmf-dist/tpm/gcard.tpm
+ </TPM:RunFiles>
+ <TPM:DocFiles size="141156">
+texmf-dist/doc/latex/gcard/README
+texmf-dist/doc/latex/gcard/gcard.pdf
+texmf-dist/doc/latex/gcard/gcardex.tex
+texmf-dist/doc/latex/gcard/gcardminexample.tex
+ </TPM:DocFiles>
+ <TPM:Provides>Package/gcard</TPM:Provides>
+ </rdf:Description>
+</rdf:RDF>
+
diff --git a/Master/texmf/lists/gcard b/Master/texmf/lists/gcard
new file mode 100644
index 00000000000..44207e0af2d
--- /dev/null
+++ b/Master/texmf/lists/gcard
@@ -0,0 +1,9 @@
+texmf-dist/doc/latex/gcard/README
+texmf-dist/doc/latex/gcard/gcard.pdf
+texmf-dist/doc/latex/gcard/gcardex.tex
+texmf-dist/doc/latex/gcard/gcardminexample.tex
+
+texmf-dist/tex/latex/gcard/gcard.sty
+texmf-dist/tpm/gcard.tpm
+
+texmf/lists/gcard
diff --git a/Master/texmf/tpm/collection-latexextra.tpm b/Master/texmf/tpm/collection-latexextra.tpm
index 0d99ed1dd5c..e9d48769988 100644
--- a/Master/texmf/tpm/collection-latexextra.tpm
+++ b/Master/texmf/tpm/collection-latexextra.tpm
@@ -199,6 +199,7 @@ A large collection of add-on packages for LaTeX.
<TPM:Package name="fundus"/>
<TPM:Package name="g-brief"/>
<TPM:Package name="gauss"/>
+ <TPM:Package name="gcard"/>
<TPM:Package name="genmpage"/>
<TPM:Package name="geomsty"/>
<TPM:Package name="ginpenc"/>