| 1 |
\documentclass{article} |
| 2 |
|
| 3 |
|
| 4 |
\usepackage{newspaper} |
| 5 |
\date{\today} |
| 6 |
\currentvolume{1} |
| 7 |
\currentissue{1} |
| 8 |
\usepackage{times} |
| 9 |
\usepackage{graphicx} |
| 10 |
\usepackage{multicols} |
| 11 |
|
| 12 |
\usepackage{picinpar} |
| 13 |
%uasage of picinpar: |
| 14 |
%\begin{window}[1,l,\includegraphics{},caption]xxxxx\end{window} |
| 15 |
|
| 16 |
%%%%%%%%% Front matter %%%%%%%%%% |
| 17 |
|
| 18 |
\begin{document} |
| 19 |
\maketitle |
| 20 |
|
| 21 |
\begin{multicols}{3}{ |
| 22 |
|
| 23 |
\byline{\sc\Large Geek Designs New \LaTeX{} Package}{Matthew Allen} |
| 24 |
|
| 25 |
The package is basically a redefinition of the \verb+\maketitle+ command. The model was the New York Times---hopefully I haven't violated any copyright laws. I also had to redefine the plain pagestyle. It kept me busy for a few nights after work. The rest is packages other people have written. |
| 26 |
|
| 27 |
\begin{window}[2,r,\includegraphics[width=1.0in]{atom.jpg},\centerline{The Atom}] The \verb+multicols+ package allows using multiple columns without starting a new page. Using floats is not possible in a columns environment, however with the \verb+picinpar+ package, I can set a picture inside a block of text---just like you one you see here. Isn't \LaTeX{} cool? |
| 28 |
And now we're just filling more space, and yet more space. |
| 29 |
\end{window} |
| 30 |
\closearticle |
| 31 |
|
| 32 |
|
| 33 |
\headline{\it\huge Another Headline} |
| 34 |
This is just an example to fill up some space, but as long as I have your attention, I'll give some newspaper advice. |
| 35 |
|
| 36 |
It's good to use different fonts for each headline. This particular font was accomplished with the command \verb+\headline{\it\huge Another Headline}+. The headline in the preceding article was accomplished with the command \verb+\byline{\sc\Large Geek Designs New \LaTeX{} Package}{Matthew Allen}+. |
| 37 |
|
| 38 |
Of course the commands don't look so nice when they're set in column format. Look at the example file if you have any questions as to how this example was created. |
| 39 |
|
| 40 |
I suppose we could also show how an equation is type set: |
| 41 |
\begin{displaymath} |
| 42 |
x=\frac{-b\pm\sqrt{b^2-4ac}}{2a} |
| 43 |
\end{displaymath} |
| 44 |
and there you have it. \closearticle |
| 45 |
} |
| 46 |
\end{multicols} |
| 47 |
|
| 48 |
\end{document} |