Teknisk dokumentationsmall

Från Täpp-Anders
Hoppa till: navigering, sök
  • Stillmallen letar efter en bild kallad "logotype"
    • som eps om man genererar DVI eller PS
    • som PDF om man genererar PDF.

Kombinera med Svensk stilmall för bästa resultat!

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% LaTeX Template Version 2.2
%%
%% Anders Sikvall
%% Valhall Development
%%
%% (C)2003 - Free for personal use, please email me improvements to
%% ichi@ichimusai.org
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% Preamble
    % Packages included
    \documentclass[swedish,a4paper,10pt]{article}
    \usepackage{a4}
    \usepackage[ansinew]{inputenc}
    \usepackage[swedish]{babel}
    \usepackage{graphics}
    \usepackage{fancyheadings}
    \usepackage{amsmath}	
    \usepackage{graphicx}
    \pagestyle{fancy}
    \sloppy
    \nonfrenchspacing
    \renewcommand{\baselinestretch}{1.0}
    \clubpenalty=9999    % Not higher!
    \widowpenalty=9999   % Not higher!
    \setcounter{secnumdepth}{4}
    \setcounter{tocdepth}{3}
%    \makeindex
    \addtolength{\skip\footins}{5mm}

% Some custom macros
    % Titlerule is a FAT ruler
    \newcommand{\titlerule}{\rule{\linewidth}{1.5mm}}

    % For comments in the draft - work in progress
    \newcommand{\betainsert}[2]{\fbox{#1}\marginnote{\textsf{#2}}}

    % Notes in the margin are nicer this way.
    \newcommand{\marginnote}[1]{\marginpar{\scriptsize\raggedright #1}}

% Do you want to have the possibility of including color in your PDFs?
    \usepackage{color}

% Check if in PDFLaTeX or ``normal''
    \newif\ifpdf
      \ifx\pdfoutput\undefined
      \pdffalse
    \else
      \pdfoutput=1
      \pdftrue
    \fi
    
% Set up PDF specific. These are used when the file is compiled with 
% pdflatex instead of ordinary latex.
    \ifpdf
      % if PDFLaTeX use these parameters
      \usepackage[pdftex,colorlinks=true,urlcolor=blue,pdfstartview=FitH]{hyperref}
      \pdfcompresslevel=9
      \hypersetup{
                   pdftitle={ENTER TITLE HERE},
		   pdfauthor={ENTER AUTHOR HERE},
		   pdfsubject={ENTER SUBJECT HERE},
		   pdfkeywords={ENTER KEYWORDS HERE}
      } 
    \else
      % Ordinary tex use these parameters
      \usepackage{hyperref}
    \fi


\begin{document}

% Setting up pagestyles for ``fancy''
  \lhead{\textbf{DOCUMENT NAME}\\\textbf{Subtitle}}
  \rhead{\includegraphics[width=4cm]{logotype}}
  \chead{}
  \headrulewidth 1.3pt
  \footrulewidth 1.3pt
  \lfoot{\today}
  \cfoot{\textcopyright\ COMPANY NAME}
  \rfoot{Sida \thepage}

% Making a nice TITLEPAGE
\begin{titlepage}
    \thispagestyle{empty}
    \begin{center}
    \includegraphics[width= 8cm]{logotype}
    \end{center}
    \vspace*{\stretch{1}}
    \begin{center}
        \titlerule\\[3mm]
        \Huge \textsc{DOCUMENT TITLE\\Subtitle}\\[5mm]
        \begin{center}
		\huge COMPANY NAME\\[3.5mm]
    	\end{center}
       	\titlerule\\
    \end{center}
    \scriptsize \today
    \vspace*{\stretch{2}}
    \begin{center}
        \textsf{\textcopyright COMPANY NAME}
    \end{center}
\end{titlepage}

\pagestyle{fancy}

\tableofcontents
\newpage

% If this is put in front of the table of contents etc it will look
% rather funny so refrain from doing that. To do something like that
% you could always reset the length of the \parskip.
\setlength{\parindent}{0em}
\addtolength{\parskip}{\baselineskip}

% --- DOCUMENT START ---

%% Your LaTeX Here!

\end{document}