diff options
author | Karl Berry <karl@freefriends.org> | 2006-07-23 23:45:04 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-07-23 23:45:04 +0000 |
commit | 6945ff103627bf3b736e3b2031cf071c77743dfb (patch) | |
tree | 145b8f451f4d3d04b604a385720206a293b2ecfb /Master/texmf-dist/tex/latex | |
parent | 89114e81d794b77c9f395402ab1c2901b4d15089 (diff) |
new (latex) package coverpage (26feb06)
git-svn-id: svn://tug.org/texlive/trunk@1906 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/coverpage/CoverPage.cfg | 29 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/coverpage/CoverPage.sty | 194 |
2 files changed, 223 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/coverpage/CoverPage.cfg b/Master/texmf-dist/tex/latex/coverpage/CoverPage.cfg new file mode 100644 index 00000000000..a3c29b9a1f3 --- /dev/null +++ b/Master/texmf-dist/tex/latex/coverpage/CoverPage.cfg @@ -0,0 +1,29 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% +%% Config file for ExtraTitlePage +%% +%% This file "CoverPage.cfg" is read by "CoverPage.sty" +%% (if it exists). Use it to define default settings, e.g. for your +%% institute or your group logo. +%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%% set institute +%% (the only information which cannot be extracted from BibTeX entry) +\CoverPageSetup{institute = {Institute of Applied Nonsense}} + +%% redefine header, body, or footer with \renewcommand +\renewcommand{\CoverPageHeader}{% + \LARGE\bfseries% + \dotfill{} This is my header \dotfill} +\renewcommand{\CoverPageFooterLogo}{% + \Huge\sffamily% + L-O-G-O} + +%% These are "our" settings: +%%\CoverPageSetup{institute = {Institute of Imaging and Computer Vision\\ +%% RWTH Aachen University, 52056 Aachen, Germany\\ +%% tel: +49 241 80 27860, fax: +49 241 80 22200\\ +%% web: www.lfb.rwth-aachen.de}} +%%\renewcommand{\CoverPageHeader}{\includegraphics[width=\textwidth]{lfbheader}} +%%\renewcommand{\CoverPageFooterLogo}{\includegraphics[width=.35\textwidth]{rwthlogo}} diff --git a/Master/texmf-dist/tex/latex/coverpage/CoverPage.sty b/Master/texmf-dist/tex/latex/coverpage/CoverPage.sty new file mode 100644 index 00000000000..d1d497aedc7 --- /dev/null +++ b/Master/texmf-dist/tex/latex/coverpage/CoverPage.sty @@ -0,0 +1,194 @@ +%% +%% This is file `CoverPage.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% CoverPage.dtx (with options: `CoverPage') +%% +%% LaTeX package for generating a cover page for scientific papers. This +%% cover page contains bibliographical information and a copyright notice. +%% +%% Copyright (C) 2006 Matthias Mühlich +%% +%% This file may be distributed and/or modified under the conditions of +%% the LaTeX Project Public License, either version 1.2 of this license +%% or (at your option) any later version. The latest version of this +%% license is in: +%% +%% http://www.latex-project.org/lppl.txt +%% +%% and version 1.2 or later is part of all distributions of LaTeX version +%% 1999/12/01 or later. +%% +\NeedsTeXFormat{LaTeX2e}[1999/12/01] +\ProvidesPackage{CoverPage}% + [2006/02/23 v1.01 automatic cover page generation (MM)] +\RequirePackage{keyval} +\RequirePackage{textcomp} +\RequirePackage{url} +\RequirePackage{verbatim} +\newif\ifCP@nobib\CP@nobibfalse +\gdef\CP@BibRef{See also \BibTeX{} entry below.} +\gdef\CP@In{in:} +\let\CP@AdvancePageTwoSided\relax +\DeclareOption{german}{\gdef\CP@BibRef{Siehe auch \BibTeX{} Eintrag unten.}} +\DeclareOption{english}{\gdef\CP@BibRef{See also \BibTeX{} entry below.}} +\DeclareOption{twoside}{\gdef\CP@AdvancePageTwoSided{\setbox255\vbox{}\shipout\box255}} +\DeclareOption{nobib}{\CP@nobibtrue} +\ProcessOptions\relax +\newdimen\CP@CoverPageWidth +\newdimen\CP@CoverPageHeight +\CP@CoverPageWidth=\paperwidth +\CP@CoverPageHeight=\paperheight +\advance\CP@CoverPageWidth by -1.5in +\advance\CP@CoverPageHeight by -1.5in +\def\CP@Title{title undefined} +\def\CP@Author{author undefined} +\def\CP@Institute{institute undefined} +\def\CP@InSource{source undefined} +\def\CP@Copyright{\textcopyright{} copyright by the author(s)} +\def\CP@Year{(unknown year)} +\def\CP@Source{(unknown source)} +\@ifundefined{BibTeX} + {\def\BibTeX{{\rmfamily B\kern-.05em% + \textsc{i\kern-.025em b}\kern-.08em% + T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}}{} +\gdef\CP@ParseArg{dummy,} +\ifCP@nobib +\else + \IfFileExists{\jobname.BibTeX.txt}{% + \bgroup + \catcode`\@0 + \bgroup + \def\inproceedings##1{\xdef\CP@ParseArg{##1}}% + \def\article##1{\xdef\CP@ParseArg{##1}}% + \def\incollection##1{\xdef\CP@ParseArg{##1}}% + \def\misc##1{\xdef\CP@ParseArg{##1}}% + \input{\jobname.BibTeX.txt}% + \egroup + \egroup + }{% + \PackageError{CoverPage}{No BibTeX file (\jobname.BibTeX.txt) found!}% + {you must provide a \jobname.BibTeX.txt file}% + } +\fi +\def\CP@SourceGiven{\gdef\CP@InSource{\CP@In\ \CP@Source. \CP@BibRef}} +\define@key{CoverPage}{booktitle}{\gdef\CP@Source{#1}\CP@SourceGiven} +\define@key{CoverPage}{journal}{\gdef\CP@Source{#1}\CP@SourceGiven} +\define@key{CoverPage}{title}{\gdef\CP@Title{#1}} +\define@key{CoverPage}{author}{\gdef\CP@Author{#1}} +\define@key{CoverPage}{institute}{\gdef\CP@Institute{#1}} +\define@key{CoverPage}{insource}{\gdef\CP@InSource{#1}} +\define@key{CoverPage}{copyright}{\gdef\CP@Copyright{#1}} +\define@key{CoverPage}{year}{\gdef\CP@Year{#1}} +\define@key{CoverPage}{publisher}{% + \edef\CP@Publisher{#1}% + \def\CP@Compare{Springer}% + \ifx\CP@Publisher\CP@Compare + \gdef\CP@Copyright{\textcopyright\ \CP@Year\ Springer-Verlag.\\ + See also LNCS-Homepage: \url{http://www.springeronline.com/lncs}}% + \else + \def\CP@Compare{IEEE}% + \ifx\CP@Publisher\CP@Compare + \gdef\CP@Copyright{\textcopyright\ \CP@Year\ IEEE. Personal use of this + material is permitted. However, permission to reprint/republish this + material for advertising or promotional purposes or for creating new + collective works for resale or redistribution to servers or lists, or + to reuse any copyrighted component of this work in other works must + be obtained from the IEEE.}% + \else + \def\CP@Compare{SPIE}% + \ifx\CP@Publisher\CP@Compare + \gdef\CP@Copyright{\textcopyright\ \CP@Year\ Society of Photo-Optical + Instrumentation Engineers. This paper was published in \CP@Source\ + and is made available as an electronic reprint with permission of + SPIE. One print or electronic copy may be made for personal use only. + Systematic or multiple reproduction, distribution to multiple + locations via electronic or other means, duplication of any material + in this paper for a fee or for commercial purposes, or modification + of the content of the paper are prohibited.}% + \else + \def\CP@Compare{Kluwer}% + \ifx\CP@Publisher\CP@Compare + \gdef\CP@Copyright{\textcopyright\ \CP@Year\ Kluwer Academic Publishers}% + \else + \CPPublisherCheck + \fi + \fi + \fi + \fi +} +\def\CPPublisherCheck{\relax} +\gdef\CPProcessBibEntry{% + \edef\temp{\noexpand\CP@killBibTeXKeyword\CP@ParseArg\par}% + \def\CP@killBibTeXKeyword##1,##2\par{##2}% + \edef\tempii{\noexpand\setkeys{CoverPage}{\temp}}% + \bgroup + \def\KV@errx##1{\relax}% keyval: ignore unknown keys + \tempii + \egroup +} +\newcommand{\CP@PrintCoverPage}{\bgroup\global\setbox255\vbox{% + \vspace*{-.25in}% + \noindent\hspace*{-.25in}% + \rlap{\begin{minipage}[t][\CP@CoverPageHeight][c]{\CP@CoverPageWidth}% + {\CoverPageHeader}% + \vfill% + {\CoverPageBody}% + \vfill% + {\CoverPageFooter}% + \end{minipage}}% +}\egroup\shipout\box255} +\AtBeginDocument{\CP@PrintCoverPage\CP@AdvancePageTwoSided} +\newcommand{\CPTitleFont}{\Huge\sffamily\bfseries\upshape} +\newcommand{\CPAuthorFont}{\LARGE\sffamily\mdseries\upshape} +\newcommand{\CPInstituteFont}{\Large\sffamily\mdseries\upshape} +\newcommand{\CPInSourceFont}{\large\sffamily\mdseries\upshape} +\newcommand{\CPCopyrightFont}{\large\sffamily\mdseries\upshape} +\newcommand{\CoverPageSetup}[1]{\setkeys{CoverPage}{#1}} +\newcommand{\CoverPageHeader}{} +\newcommand{\CoverPageBody}{% + \parbox{\linewidth}{% + \centering% + \rule{\linewidth}{1.5pt}\par + \vspace*{2mm} + {\CPTitleFont\CP@Title\par} + \vspace{5mm} + {\CPAuthorFont\CP@Author\par} + \vspace{1mm} + {\CPInstituteFont\CP@Institute\par} + \vspace{5mm} + {\CPInSourceFont\CP@InSource\par} + \vspace*{2mm} + \rule{\linewidth}{1.5pt}\par + }% +} +\newcommand{\CoverPageFooter}{% + \normalfont + \ifCP@nobib + \else + \noindent\textsf{\large \BibTeX:} + {\small\verbatiminput{\jobname.BibTeX.txt}\par}% + \vspace{5mm}% + \fi + {\CPCopyrightFont\CP@Copyright\par} + \vspace{10mm} + {\CoverPageFooterInfo\hfill\CoverPageFooterLogo} +} +\newcommand{\CoverPageFooterInfo}{% + \parbox[b]{.5\textwidth}{% + \tiny document created on: \today\\ + created from file: \texttt{\jobname.tex}\\ + cover page automatically created with \texttt{CoverPage.sty}\\ + (available at your favourite CTAN mirror)% + }% +} +\newcommand{\CoverPageFooterLogo}{} +\CPProcessBibEntry +\IfFileExists{CoverPage.cfg}% + {\input{CoverPage.cfg}}% + {\PackageWarning{CoverPage}{No config file (CoverPage.cfg) found!}} +\endinput +%% +%% End of file `CoverPage.sty'. |