\documentclass[dvips,a4paper,english]{article}
% some packages maybe needed for you, experiment
\usepackage{alltt}
\usepackage{version}
\usepackage{fancyheadings}
\usepackage{babel}
\usepackage{t1enc}
\usepackage{isolatin1}
\usepackage{times}
\usepackage{graphicx}
\usepackage[usenames]{color}
\usepackage{hyperref}

% tekijäinfo alaviittenä
\newcommand{\authorinfo}[1]{
	\renewcommand{\thefootnote}{\fnsymbol{footnote}}  
	\footnotetext[0]{#1}
	\renewcommand{\thefootnote}{\arabic{footnote}}}

\setlength{\hoffset}{-1in} % left margin - 1 inch
\setlength{\voffset}{-1in} % top margin - 1 inch
\addtolength{\hoffset}{1cm} % top margin - 1 inch
\setlength{\textheight}{28.7cm}
\addtolength{\textheight}{-\topmargin}
\addtolength{\textheight}{-\headheight}
\addtolength{\textheight}{-\headsep}
\addtolength{\textheight}{-\footskip}
\setlength{\textwidth}{19cm}
\addtolength{\textwidth}{-\oddsidemargin}
\addtolength{\textwidth}{-\marginparsep}
\addtolength{\textwidth}{-\marginparwidth}

\newcommand{\urlurl}[1]{\url{#1}}

\newcommand{\txtonly}[1]{#1}
\newcommand{\slideonly}[1]{}
\newcommand{\smalliftext}{\small}
\includeversion{onlytxt}

\newlength{\figwidth}
\setlength{\figwidth}{0.7\columnwidth}
\newlength{\bigfigwidth}
\setlength{\bigfigwidth}{\columnwidth}

\newcommand{\foilhead}[1]{\section*{#1}}
\newenvironment{slide2c}[1]
 {\foilhead{#1}}
 {}
\newenvironment{slide}[1]
 {\foilhead{#1}}
 {}
% some compamibilty for FoilTeX
\newcommand{\leftheader}[1]{\lhead{#1}}
\newcommand{\rightheader}[1]{\rhead{#1}}
\newcommand{\MyLogo}[1]{\lfoot{#1}}
\newcommand{\rightfooter}[1]{\rfoot{#1}}
\newcommand{\Restriction}[1]{}

\input{#SOURCE_DOCUMENT#}
% put name of your own bibtex file(s) here
\bibliography{bibs,rfc}
  % you can also change citation style to suit for you
  \bibliographystyle{plain}
\end{document}
