[texhax] article page-1 template

Fehd, Ronald J. (CDC/CCHIS/NCPHI) rjf2 at CDC.GOV
Fri Mar 16 19:08:57 CET 2007


LOL
it's nice to know that people care enough to test
immediately!

thanx to Phil Taylor for suggesting a repost
without so many spaces for alignment
Ron

%%       name: C:\LaTeX\tests\3columns\demo3columns.tex
%%description: testing of 3-column hanging indent
%%                     of Abstract + Intro
%%    purpose: a modest proposal
%%RJF2 3/16/2007 9:18AM
%%expected output:
%%Abstract     This is the Abstract  Contents
%%             This is the Abstract  1 A      1
%%             This is the Abstract    1.1    2
%%   Audience: advanced users
%%   Keywords: LaTeX 3-columns
%%Introduction This is the introduction. ......
%
\documentclass{article}
\pdfoutput=0%out=job.dvi
%\pdfoutput=1%out=job.pdf
\title{\jobname}%
\author{R. J. Fehd}
%\date{today}
%
\setlength{\parindent}{0pt}%
%%or.use.\hspace{-\parindent}\textbf{Abstract}
%
\newlength{\textwidthNote}
\setlength{\textwidthNote}{1in}
\addtolength{\hoffset}{-\textwidthNote}
\addtolength{\textwidth}{\textwidthNote}
%
\newcommand{\marginNote}[1]{%
\settowidth{\textwidthNote}{\textbf{#1}}%
\addtolength{\textwidthNote}{1em}%
\hspace{-\textwidthNote}%
\textbf{#1}\hspace{1em}%
}%end marginNote
%
%\newcommand{\FontSizeToC}{\tiny}
\newcommand{\FontSizeToC}{\footnotesize}
%\newcommand{\FontSizeToC}{\small}
%
\newcommand{\FontSizeSection}{\large}
%\newcommand{\FontSizeSection}{\Large}
%
\newlength{\textwidthSection}
\settowidth{\textwidthSection}%
{\FontSizeSection{Introduction %
}}%note.space
%\addtolength{\textwidthSection}{\marginparsep}
\addtolength{\textwidthSection}{1.618em}
%%note:.is.kludge;.note.space.above
%
\newlength{\textwidthColDouble}
\setlength{\textwidthColDouble}{\textwidth}
\addtolength{\textwidthColDouble}{-\textwidthSection}
%
\newlength{\textwidthColSingle}
\setlength{\textwidthColSingle}{\textwidthColDouble}
%\addtolength{\textwidthColSingle}{-\columnsep}
\addtolength{\textwidthColSingle}{-2em}%
%%sep.between.abstract.and.ToC
\setlength{\textwidthColSingle}{0.5\textwidthColSingle}
%
\begin{document}%%%%%%%%%%%%%%%%%%%%%%%%
\maketitle

\begin{minipage}[t]{\textwidthSection}
%\section{Abstract}%
\textbf{\FontSizeSection Abstract}\hfill%
%\hspace{-\parindent}%
%\textbf{\FontSizeSection Abstract}\hfill%
\end{minipage}%
\begin{minipage}[t]{\textwidthColSingle}
This is the Abstract. This is the Abstract.
The quick \LaTeX\ document processing user
jumps over the lazy word .doc user.
\medskip

\marginNote{Audience:}advanced users.

\marginNote{Keywords:}\LaTeX\ 3-column format

\end{minipage}\hfill
\begin{minipage}[t]{\textwidthColSingle}
   \FontSizeToC{\tableofcontents}
   \end{minipage}\medskip

\begin{minipage}[t]{\textwidthSection}
%\begin{\FontSizeSection}
%\section{Introduction}%
\textbf{\FontSizeSection Introduction}\hfill%
%\end{\FontSizeSection}
\end{minipage}%\hfill%
\begin{minipage}[t]{\textwidthColDouble}
This is the Introduction.
This is the Introduction.
This is the Introduction.
This is the Introduction.
This is the Introduction.
This is the Introduction.
\end{minipage}

\section{A}
This is Section A discussion.
This is Section A discussion.
This is Section A discussion.
This is Section A discussion.
This is Section A discussion.
This is Section A discussion.

\subsection{a}\subsection{b}\subsection{c}

\section{B}
\subsection{a}\subsection{b}\subsection{c}

\section{C}
\subsection{a}\subsection{b}\subsection{c}

\end{document}



More information about the texhax mailing list