Start Personal record
(without picture)
Personal record
(with picture)
Study Imprint Further sides deutsche Seiten

Back to error documentation   Back to overview   Forward to short documentation 3

Short documentation for course 2

  • Example of Fancy
  • Larger documents
  • Title page
  • Structure
  • Listings
  • table of contents
  • list of figures
  • list of tables
  • bibliography
  • Text structure
  • Text structure
  • Verbatim and Co.
  • Footnotes
  • References
  • Own ideas
  • Own command
  • Usepackage
  • Counter

  • Example of Fancy

    \usepackage{fancyhdr}
    \pagestyle{fancy}
    \lhead{Sascha Frank}
    \chead{Short docu 2}
    \rhead{26.04.05}
    
    After this there has to be some written text, else there is no output.

    Larger documents

    Title page

    \title{\LaTeX-Course 2}
    \author{Sascha Frank} 
    \date{\today}
    \maketitle
    
    Note:

    Structure

    \begin{abstract} summary 
    \end{abstract} 
    \chapter{Introduction} 
    \section{What is \LaTeX ?} 
    a little text
    \subsection{\LaTeX for Linux } 
    more text 
    \subsection{\LaTeX for Windows} 
    \chapter{Project} 
    new chapter 
    ....
    \appendix
    
    Overview of commands for document structuring
    \begin{abstract} Begin of the summary
    \end{abstract}End of the summary
    \partPart
    \chapter Chapter
    \section Section
    \subsection Subsection
    \paragraph Paragraph
    \subparagraph Subparagraph
    \appendix Appendix
    Note:

    Listings

    Report and book make a new page for each listing.

    table of contents Table of contents \tableofcontents is made from the document structure, for e.g. \section{\LaTeX for Linux} there would been written "Latex for Linux", in the table of contens.

    list of figures To put a figure in list of figures, it must be in a figure environment.

    \begin{figure}
    \caption{Our new logo}
    \includegraphics[scale=0.5]{logo}
    \end{figure}
    
    The list of figures shows "Our new logo" p.?? .

    list of tables To put a table in list of tables, it must be in a table environment.

    \begin{table}
    \caption{\LaTeX \ course overview}
    \begin{tabular}{|c|c|c|}
    \hline
    time & course instructor & title \\
    \hline 
     ...   
    \end{tabular}
    \end{table}
    
    The list of table then shows that LaTeX course overview is located at page ??.

    Bibliography

    \begin{thebibliography}{9}
    \bibitem[Frank 04]{Kurs1} \emph{First steps with \LaTeX},
    Sascha Frank 2004
    \bibitem[Frank 05]{kurz1} \emph{short documentation for course 1}
    Sascha Frank 2005 
    \end{thebibliography}
    
    Qoute within text with e.g. \cite{Kurs1}
    Note: The document classes report and book, make a new page for each listing.

    Text structure

    Text structure

    \begin{flushleft} 
    Text may stand left
    \end{flushleft}
    
    \begin{flushright} 
    but also right. 
    \end{flushright}
    
    \begin{center} 
    or just mid. 
    

    Verbatim and Co.

    \begin{small} 
    \begin{verbatim} 
    \LaTeX 
    \end{verbatim} 
    \end{small}
    
    \Latex

    Fußnoten1

    Again something senseless \footnote{referring to  our problem} text.
    
    Again something senseless 2 text.
    Put a footnot within text with \footnote{Text}.

    References

    Own ideas

    To define new commands
    \newcommand{\newName}{Definition}
    z.B \newcommand{\kurs}{\LaTeX-Kurs}
    \kurs LaTeX-Kurs
    Note:

    If the command is already assigned in Latex, you have to take another command name.

    New commands can have up to 9 arguments.

    \newcommand{\newName}[Number of arguments]{Definition}
    z.B \newcommand{\kursnr}[1]{\LaTeX-Kurs #1}
    \kursnr{3} LaTeX-Kurs 3
    Commands which already assigned can be redefine.
    \renewcommand{\name}[Number]{Definition}
    Change existing enviroments
    \newenviroment{\name}[Number]{Begin}{End}

    Usepackage

    With quantity of short cuts, new commands and new enviroments, which were frequently used, you can build your own usepackage instead of copy and paste the code. A usepackage got the ending .sty e.g. mypackage.sty and requires following details.

    \NeedsTeXFormat{LaTeX2e} 
    \ProvidesPackage{paketname} 
    \RequirePackage{...,...} 
    \endinput
    

    Counter

    LaTeX counst at many enviroments and commands. Standard counters are page and titles.
    Overview of counters
    InstructionEffect
    \newcounter{name}defines a new counter
    \setcounter{name}{new value}set a counter on a new value
    \addtocounter{name}{value}Adds a certain value to the counter
    \stepcounter{name}Adds 1 to the value of the counter
    \roman{name}counts with Roman numbers
    \arabic{name}counts with Arabic numerals
    \alph{name}counts with small latin letters
    Example of an alphabetical enumerating with Latex
    \newcounter{ale}
    
    \newcommand{\abc}{\item[\alph{ale})]\stepcounter{ale}}
    
    
    \newenvironment{liste}{\begin{itemize}}{\end{itemize}}
    \newcommand{\aliste}{\begin{liste} \setcounter{ale}{1}}
    \newcommand{\zliste}{\end{liste}}
    
    \newenvironment{abcliste}{\aliste}{\zliste}
    
    
    \begin{small}
    \begin{verbatim}
    \newcounter{ale}
    
    \newcommand{\abc}{\item[\alph{ale})]\stepcounter{ale}}
    
    \newenvironment{liste}{\begin{itemize}}{\end{itemize}}
    \newcommand{\aliste}{\begin{liste} \setcounter{ale}{1}}
    \newcommand{\zliste}{\end{liste}}
    
    \newenvironment{abcliste}{\aliste}{\zliste}
    
    \begin{abcliste}
    \abc 111 
    \abc 222
    \abc 333 
    \end{abcliste}
    
    
    Example of an alphabetical enumerating with Latex
    Back to error documentation   Back to overview   Forward to short documentation 3

    1. But within tables it works differently
    2. referring to our problem
    Sascha Frank
    Last modified: Tue Sep 6 10:41:10 MEST 2005