summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/newspaper
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2007-12-19 08:09:14 +0000
committerNorbert Preining <preining@logic.at>2007-12-19 08:09:14 +0000
commit24b2c4a7eacb29f9bdf0380bf7dea1864080796a (patch)
tree6ced8286f45d8af1af6d6d121cc95f0c473d84ec /Master/texmf-dist/tex/latex/newspaper
parentffe2955d194551e56c5f196c64d1c13cc6907a42 (diff)
new package newspaper 07-12-19, latexextra
git-svn-id: svn://tug.org/texlive/trunk@5811 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/newspaper')
-rw-r--r--Master/texmf-dist/tex/latex/newspaper/newspaper.sty111
1 files changed, 111 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/newspaper/newspaper.sty b/Master/texmf-dist/tex/latex/newspaper/newspaper.sty
new file mode 100644
index 00000000000..80da56b954c
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/newspaper/newspaper.sty
@@ -0,0 +1,111 @@
+%%% Matthew Allen
+%%% January 14, 2007
+%%%
+%%% This package provides a newspaper style heading
+%%% for the standard Article class. The default plain
+%%% page style is redefined to accomodate headings
+%%% at the top of all subsequent pages.
+%%%
+%%% a good idea to use with this package is
+%%% the multicols package and the picinpar package
+%%%
+%%%
+
+%******* Identification *****
+\ProvidesPackage{newspaper}
+\NeedsTeXFormat{LaTeX2e}
+
+%******* Declaration of options *****
+
+% no options at this time
+
+%******* Execution of options *****
+
+%****** Package Loading *****
+\RequirePackage{yfonts} % used for the paper title font
+
+%****** main code *****
+
+%define font for page title
+\DeclareFontFamily{LYG}{bigygoth}{}
+\DeclareFontShape{LYG}{bigygoth}{m}{n}{<->s*[2.5]ygoth}{}
+
+%%%%%%%%%%% Define Text Dimensions %%%%%%%
+
+\setlength\topmargin{-48pt} % article default = -58pt
+\setlength\headheight{0pt} % article default = 12pt
+\setlength\headsep{34pt} % article default = 25pt
+\setlength\marginparwidth{-20pt} % article default = 121pt
+\setlength\textwidth{7.0in} % article default = 418pt
+\setlength\textheight{9.5in} % article default = 296pt
+\setlength\oddsidemargin{-30pt}
+
+%%%% counters for volume and number %%%%
+
+\newcounter{volume}
+\newcommand\currentvolume[1]{\setcounter{volume}{#1}}
+\newcounter{issue}
+\newcommand\currentissue[1]{\setcounter{issue}{#1}}
+
+%%%% set internal variables %%%%
+
+\def\@papername{Committee Times:}
+\def\@headername{Committee Times} % because of the yfonts you may need both papername and headername
+\def\@paperlocation{Washington DC}
+\def\@paperslogan{``All the News I Feel Like Printing.''}
+\def\@paperprice{Zero Dollars}
+
+\newcommand\SetPaperName[1]{%
+ \def\@papername{#1}}
+\newcommand\SetHeaderName[1]{%
+ \def\@headername{#1}}
+\newcommand\SetPaperLocation[1]{%
+ \def\@paperlocation{#1}}
+\newcommand\SetPaperSlogan[1]{%
+ \def\@paperslogan{#1}}
+\newcommand\SetPaperPrice[1]{%
+ \def\@paperprice{#1}}
+
+
+%%%%%%%%%%% Redefine \maketitle %%%%%%%
+
+\renewcommand{\maketitle}{\thispagestyle{empty}
+\vspace*{-40pt}
+\begin{center}
+{\setlength\fboxsep{3mm}\raisebox{12pt}{\framebox[1.2\width]{\parbox[c]{1.15in}{\begin{center}\small \@paperslogan\end{center}}}}}\hfill%
+{\textgoth{\huge\usefont{LYG}{bigygoth}{m}{n} \@papername}}\hfill%
+\raisebox{12pt}{\textbf{\footnotesize \@paperlocation}}\\
+\vspace*{0.1in}
+\rule[0pt]{\textwidth}{0.5pt}\\
+{\small VOL.\MakeUppercase{\roman{volume}}\ldots No.\arabic{issue}} \hfill \MakeUppercase{\small\it\@date} \hfill {\small\MakeUppercase{\@paperprice}}\\
+\rule[6pt]{\textwidth}{1.2pt}
+\end{center}
+\pagestyle{plain}
+}
+
+%%%%%%% redefine plain page style %%%%%%%
+\renewcommand{\ps@plain}{%
+ \renewcommand\@oddfoot{}% % empty recto footer
+ \let\@evenfoot\@oddfoot % empty verso footer
+ \renewcommand\@evenhead
+ {\parbox{\textwidth}{\vspace*{4pt}
+ {\small VOL.\MakeUppercase{\roman{volume}}\ldots No.\arabic{issue}}\hfill\normalfont\textbf{\@headername}\quad\MakeUppercase{\it\@date}\hfill\textrm{\thepage}\\
+ \rule{\textwidth}{0.5pt}
+ \vspace*{12pt}}}%
+ \let\@oddhead\@evenhead}
+
+
+%%%%%%%%%%% Headline (with byline) command %%%%%%%%%
+
+\newcommand\headline[1]{\begin{center} #1\\ %
+ \rule[3pt]{0.4\hsize}{0.5pt}\\ \end{center} \par}
+\newcommand\byline[2]{\begin{center} #1 \\%
+ {\footnotesize\bf By \MakeUppercase{#2}} \\ %
+ \rule[3pt]{0.4\hsize}{0.5pt}\\ \end{center} \par}
+\newcommand\closearticle{{\begin{center}\rule[6pt]{\hsize}{1pt}\vspace*{-16pt}
+ \rule{\hsize}{0.5pt}\end{center}}}
+
+
+
+%%%%%%%%%%%%%%%%%%%% End of Package %%%%%%%%%%%%%%%
+