[texhax] article page-1 template
Fehd, Ronald J. (CDC/CCHIS/NCPHI)
rjf2 at CDC.GOV
Fri Mar 16 15:36:40 CET 2007
Krewe:
I would appreciate your considerate feedback
on the following page-1 template which I have been
using in my SAS User Group conference papers.
This template is combination of my 2005 and 2006 styles:
Two Macros to Show Calling Sequence and Parameters of Routines
http://www2.sas.com/proceedings/sugi30/004-30.pdf
How to Use Proc SQL select into for List Processing
http://www.pnwsug.com/Conference_2006/Procedings/PNWSUGotherfiles/PN12Fe
hdSQL.pdf
Q: in line:
\settowidth {\textwidthSection}{\FontSizeSection{Introduction }}%note
space
why is the space after Introduction necessary?
Ron Fehd the {SAS} macro maven CDC Atlanta GA USA RJF2 at cdc dot gov
%% 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