LaTeX


ProgWord Word is like WYSIWYG even if you would like something else.

LaTeX is like konwing you get later what you want.


1. Anleitungen


Formatierung
http://en.wikibooks.org/wiki/LaTeX/Formatting

Cheat Sheet
http://www.stdout.org/~winston/latex/latexsheet.pdf


2. Tools




3. Templates

4. Pakete und Erweiterungen


Paket todonotes
http://www.texample.net/tikz/examples/todo-notes/
\usepackage[colorinlistoftodos]{todonotes}


Paket circuitikz
http://www.texample.net/tikz/examples/circuitikz/

Paket tikz-timing
Timing-Diagramme

Paket pdfcomment
http://tug.ctan.org/tex-archive/macros/latex/contrib/pdfcomment/doc/pdfcomment_de.pdf

Paket tabulary
Tabelle mit L,C, R und J ausrichten; bessere Ergebnisse als mit X bei tabularx
http://www.tex.ac.uk/tex-archive/macros/latex/contrib/tabulary/tabulary.pdf

Grafikpakete und Programme
https://packages.debian.org/de/squeeze/texlive-pictures


5. Formeln

6. Referenzen



\footnote{}Fußnoten
\footnotetext{} \footnotemarkFußnoten
\cite[S. 15]{ObjektSpektrumDerWegIstDasZiel}Literaturzitat
\nocite[S. 15]{ObjektSpektrumDerWegIstDasZiel}Wer nicht zitiert hat, aber eine Quelle nennen will
\ref{fig:AnforderungenUeberblick}Referenz auf eine Abbildung oder ein Kapitel; erfordert \label{fig:AnforderungenUeberblick}
\pageref{chap:Ausblick}Seite auf der sich das Label befindet
\autoref{chap:Methods}MAcht automatisch "chapter 3", oder "section 4.2"


7. Literaturverzecihnis mit Bibtex


http://jabref.sourceforge.net

Table
% Bibliography styles according to DIN
% get from: http://www.ctan.org/tex-archive/biblio/bibtex/contrib/german/din1505/
\bibliographystyle{alphadin}



8. Zeilenumbrüche


\\ oder \\* Zeilenumbruch. Der * verhindert einen Seitenumbruch nach dem Zeilenumbruch
\newline Wie \\ jedoch nicht im Blocksatz
\\[abstand]Erzwingt einen Zeilenumbruch mit zuätzlichem abstand. * geht hier auch Beispiel \\[3cm]
\nopagebreak[4]Die nächsten vier Zeilen kein Zeilenumbruch


9. Einrückung verhindern


einmal
\noindent


dauerhaft
\parindent 0pt



10. Zeilenumbruch verhindern


Unbreakable box
\mbox{  

}



11. Querformat


\usepackage{lscape}

\begin{landscape}
   Seiteninhalt in Querformat...
\end{landscape
}



12. Copy and paste

13. Marginnote


Notizen am Rand eines Dokuments

ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf

\usepackage{marginnote}

\marginpar{In Arbeit}
\marginpar{\includegraphics[width=0.05\textwidth]{images/test.jpg}
}



14. Skalierung


% 50% der Originalgröße
[scale=0.5]

% 10 cm breit
[width=10cm]

% 90% der TExtbreite
[width=0.9\textwidth]



15. Graphicspath


\graphicspath{{figures/}}



16. Conditions


Define a variable AutorenAlternative
\newcount\AutorenAlternative
\AutorenAlternative=1


Conditional code
\ifnum\AutorenAlternative=0
\begin{figure}[hb]
\else
\begin{figure
}[hbtp]
\fi



17. Silbentrennung


http://de.wikibooks.org/wiki/LaTeX-W%C3%B6rterbuch:_Silbentrennung

Zusätzliche Trennstellen einfügen
Konfigurations"-management


Nur an dieser Stelle trennen
Konfigurations\-management



18. Besondere Zeichen


Häckchen\checkmark
\circledR
Copyright\copyright
§\S
$\$

http://www.ctan.org/tex-archive/info/symbols/comprehensive/symbols-a4.pdf


19. LaTeX-Dateitypen


LaTeX
  • tex
  • sty

TeXnicCenter
  • idx
  • tcp
  • tcs

Bibtex
  • bib
  • bst


20. Micro

  • \mu in Formeln
  • \micro im SI-Paket
  • \textmu im Fließtext


Sie alle sahen unterschiedlich aus, waren sich aber doch im Grunde sehr ähnlich. Und sie lebten glücklich und zufrieden.


21. Bereiche mit Schaltern auskommentieren


Wer kennt das nicht. Ihr wollt eurem Professor eine Version schicken. Es ist natürlich viele Baustelle, aber einige Absätze würdet ihr gerne ausblenden. Ihr könnt natürlich alles temporär auskommentieren und dann wieder für euch rückgängig machen. oder ihr setzt euch einen Schalter.

% Schalter definieren
\usepackage{ifthen}
\newboolean{editing}
\setboolean{editing}{false
}

% Ab hier beginnt das Dokument
\begin{document}

\section{Motivation}
\ifediting
In Bearbeitung
\fi

\section{Contributions}
Schöner Text

\end{document
}




2 Images side by side
\begin{figure}[!h]
    \centering
   \begin{minipage}{0.53\textwidth}
    \centering
     \includegraphics[height=110pt]{ULPSEK2}
     \caption{ULPSEK -- a modular development kit for ULP wearable sensors (\ac{PCB} size 260 mm x 125 mm).}
         \label{fig:ULPSEKintro}
   \end{minipage}
   \begin {minipage}{0.43\textwidth}
    \centering
     \includegraphics[height=110pt]{MyBodySensorHousing3}
        \caption{Miniaturized derivative of ULPSEK as sensor belt worn at the chest (\ac{PCB} size 60 mm x 32 mm).}
     \label{fig:MiniaturizedIntro}
   \end{minipage}
\end{figure
}



22. Change the line break in Windows


Latex and luatex breaks the message output while compiling 79 characters by default.
However, its hard to read and it requires to extra work when copying the error messages to a search engine.
For solution go to texmfapp.ini and change error_line and max_print_line to 500 or more if you want.
[...]
;; Width of context lines on terminal error messages.
error_line = 500
[...]
;; Width of longest text lines output; should be at least 60.
max_print_line = 500
[...]





Siehe auch
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki