diff options
Diffstat (limited to 'macros/latex/contrib/newspaper/newspaper.sty')
-rw-r--r-- | macros/latex/contrib/newspaper/newspaper.sty | 111 |
1 files changed, 111 insertions, 0 deletions
diff --git a/macros/latex/contrib/newspaper/newspaper.sty b/macros/latex/contrib/newspaper/newspaper.sty new file mode 100644 index 0000000000..80da56b954 --- /dev/null +++ b/macros/latex/contrib/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 %%%%%%%%%%%%%%% + |