Security Consulting
  Fun     PGP     HOAX     Java     SPAM     Books     Linux     Windows     Privacy     Switches     Back    

Latex

I was once talking about putting together a little summary for LateX ...
Here we go:

Basics
  • Text is just written as usual. A new paragraph is started with TWO newlines
  • Commands do start with a "\".
  • Arguments are enclosed in curly-brackets:{}. Examples below2. Headings

    \chapter{Preface}             % This would generate a chapter with the name Preface
    \section{To my love}
    \subsection{still not enough}
    \subsubsection{this is how far we go}
    Text facing

    \emph{whatever you want in italics}
    \textbf{whatever you need bold}
    For sourcecode

    (this is like in HTML... In COURIER and non-proportional!)
    \begin{verbatim}
    \end{verbatim}
    Itemizations and Enumerations
    \begin{itemize}
    \item First item
    \item Second item
    \end{itemize}
    This creates just bullets. If you need numbers, use "enumerate" instead of itemize Centering
    \begin{center}
    \end{center}
    Tables
    \begin{table}[tb]      
    \begin{center}      
    \begin{tabular}{|r|l|}        % two columns (| is the line betweenthe cells), (r means right aligned, l left aligned and c centered)      
    \hline                        % horizontale Linie der Tabelle ganzoben            
    \bf Fragment Size&\bf Explanation\\       % bf here stands forboldface / & separates the columns \\ is the end of the line            
    \hline            
    20 bytes&A ``normal'' IP header is 20 bytes in size. Exceedingthis size \\            
    &does not make sense, as the IP header would have to be split,\\            
    &which is not possible.\\            
    28 bytes&IP allows a minimum of 8 bytes for an IP fragment. \\
    &(20 bytes IP header + 8 byes IP fragment = 28 bytes)\\
    42 bytes&42 is the answer to the Great Question of Life, \\          
    &the Universe and Everything, as we know from \emph{TheHitchhiker's}\\
    &\emph{Guide to the Galaxy} by Douglas Adams.\\
    attack lengtl&The length of the attack string in the IPpayload.\\       
    \hline
    \end{tabular}
    \caption{Interpretation of the Boundaries shown in Figure\ref{fig:Result}.}                  
    % should be clear... Name of table      
    \label{tab:result}% this is used for referencing the table in the text      
    \end{center}
    \end{table}
    Ok. This is the most complicated thing to do.... References to other chapters
    \ref{label}          
    Cites and Bibliography
    \cite{RM001}
    \cite{RM001, PE002}           % for citing two papers
    
    To generate the entry in the bibliography we place at the end, use the following
    \bibitem{RM001} Raffael Marty, \emph{The great work he never did},
    \url{http://www.nowhere.com}, December 2000.
    Here we have a strict format we follow:
    Author, \emph{title}, [URL], [Verlag], Year (evtl. Month), [ISBN].
    Indexing (Reference :http://www.lrz-muenchen.de/services/software/textverarbeitung/makeindex/makeindex-2.html)
    Here are the things which are important:
    page  1:  \index{Maus|(}                     Maus, 1-3, 22  
    page  3:  \index{Maus|)}         -->  
    page 22:  \index{Maus}
    The command on the left is what you enter in the text to generate the refeence. The first example makes an index across multiple pages.
    page  4:  \index{Tier!Maus|see{Ratte}}       Tier  
    page  8:  \index{Tier!Maus!Beine}              Maus, siehe Ratte  
    page 10:  \index{Tier!Maus!Schwanz}    -->       Beine, 8  
    page 25:  \index{Tier!Ratte}                     Schwanz, 10  
    page 29:  \index{Tier!Pferd}                   Pferd, 29                                                  Ratte, 25
    A little more complicated. Note the see{}.


    CopyLeft (l) 2003 by Raffael Marty