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
- MiKTeX - implementation of TeX and related programs for Windows
- TeXnicCenter - integrated environment for creating LaTeX documents
- BildBearbeitung Tools für die Bildbearbeitung
- mimetex - Debian package to convert LatexFormeln LaTeX math expressions to anti-aliased images converter
- matplotlib - Python-Erweiterung zum Plotten von Diagrammen
- wmf2eps - wmf-Grafiken in eps konvertieren
- emf2eps - emf-Grafiken in eps konvertieren
- Für den Export größerer Matrizen z.B. in Form von Ergebnissen aus Octave oder Matlab nach LaTex könnte dieses kleine Skript nützlich sein: MatrixToLatex
- Ein weiteres Skript, welche sich gerne mich geschrieben habe, konvertiert Excel oder OpenOffice Calc in ein Tabellenformat von Tex/Latex: excel2tex
- lualatex
3. Templates
http://www.math.duke.edu/computing/tex/templates.html
LatexJoinPdfs How to join PDF files with Latex?
4. Pakete und Erweiterungen
Paket todonotes
http://www.texample.net/tikz/examples/todo-notes/
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
http://www.hosi.de/latex/mathe.htm
http://hausheer.osola.com/latex2png
http://de.wikipedia.org/wiki/Hilfe:TeX
http://www.artofproblemsolving.com/LaTeX/AoPS_L_GuideSym.php
6. Referenzen
\footnote{} | Fußnoten |
\footnotetext{} \footnotemark | Fuß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}
% 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
11. Querformat
12. Copy and paste
Code-Bausteine zum Kopieren und Einfügen
LatexCopyAndPaste
LatexTabellen
LatexCommands
LatexFormeln LaTeX math expressions
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}}
\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]
[scale=0.5]
% 10 cm breit
[width=10cm]
% 90% der TExtbreite
[width=0.9\textwidth]
15. Graphicspath
16. Conditions
Define a variable AutorenAlternative
\newcount\AutorenAlternative
\AutorenAlternative=1
\AutorenAlternative=1
Conditional code
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
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}
\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}
\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
[...]
;; 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 • • • • • • • • • • • •