Wiki source for Latex


Show raw source

=====""LaTeX""=====

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

LaTeX is like konwing you get later what you want.


==a==Anleitungen==a==

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

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


==a==Tools==a==

- [[http://miktex.org 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
- [[http://www.wmf2eps.de.vu wmf2eps]] - wmf-Grafiken in eps konvertieren
- [[http://www.projectory.de/emftoeps/index.html 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]]



==a==Templates==a==

http://www.math.duke.edu/computing/tex/templates.html
[[LatexJoinPdfs How to join PDF files with Latex?]]


==a==Pakete und Erweiterungen==a==

Paket todonotes
http://www.texample.net/tikz/examples/todo-notes/
%%(latex)
\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


==a==Formeln==a==

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


==a==Referenzen==a==


||\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" ||


==a==Literaturverzecihnis mit Bibtex==a==

http://jabref.sourceforge.net

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


==a==Zeilenumbrüche==a==

||\\ 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||


==a==Einrückung verhindern==a==

einmal
%%(latex)\noindent%%

dauerhaft
%%(latex)\parindent 0pt%%


==a==Zeilenumbruch verhindern==a==

Unbreakable box
%%(latex)
\mbox{

}
%%


==a==Querformat==a==

%%(latex)
\usepackage{lscape}

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


==a==Copy and paste==a==

Code-Bausteine zum Kopieren und Einfügen

LatexCopyAndPaste
LatexTabellen
LatexCommands
[[LatexFormeln LaTeX math expressions]]


==a==Marginnote==a==

Notizen am Rand eines Dokuments

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

%%(latex)
\usepackage{marginnote}

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


==a==Skalierung==a==

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

% 10 cm breit
[width=10cm]

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


==a==Graphicspath==a==

%%(latex)\graphicspath{{figures/}}%%


==a==Conditions==a==

Define a variable //AutorenAlternative//
%%(latex)
\newcount\AutorenAlternative
\AutorenAlternative=1
%%

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


==a==Silbentrennung==a==

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

Zusätzliche Trennstellen einfügen
%%(latex)Konfigurations"-management%%

Nur an dieser Stelle trennen
%%(latex)Konfigurations\-management%%


==a==Besondere Zeichen==a==

||Häckchen||\checkmark||
||(R)||\circledR||
||Copyright||\copyright||
||§||\S||
||$||\$||

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


==a==""LaTeX""-Dateitypen==a==

LaTeX
~-tex
~-sty

TeXnicCenter
~-idx
~-tcp
~-tcs

Bibtex
~-bib
~-bst


==a==Micro==a==

- \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.


==a==Bereiche mit Schaltern auskommentieren==a==

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.

%%(latex)
% 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
%%(latex)
\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}
%%


==a==Change the line break in Windows==a==

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.
%%(text;;C:\Users\<username>\AppData\Local\Programs\MiKTeX<version>\miktex\config\texmfapp.ini)
[...]
;; 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 {{backlinks}}
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki