Documentation
Toolset 4 Lin/Win
- Latex-Umgebung
- texlive (Lin)
texlive-bibtex-extra
- Mehrere Quellenverzeichnisse (
multibib.sty
)
- texlive-lang-german
- Silbentrennung für Sprache Deutsch (bibgerm.sty)
- Installationsordner:
/usr/share/texmf-texlive/..
- MikText (Win)
- Texmaker
Miktex
The MikTeX Directory Structure (TDS)
*.afm
go in root
\fonts\afm\supplier
\font
*.dvi
, *.ps
or *.pdf
go in root
\doc\latex\package
*.enc
go in root
\fonts\enc\syntax
\bundle
*.map
go in root
\fonts\map\syntax
\bundle
*.mf
go in root
\fonts\source\supplier
\font
*.pfb
go in root
\fonts\type1\supplier
\font
*.sty
, *.cls
or *.fd
go in root
\tex\latex\package
*.tfm
go in root
\fonts\tfm\supplier
\font
*.ttf
go in root
\fonts\truetype\supplier
\font
*.vf
go in root
\fonts\vf\supplier
\font
Learn more about the TDS: mthelp tds
Integrating Local Additions in Miktex
There are three solutions to include a custom Style-Directory [Quelle]:
- Command-line option
--include-directory=dir
(+Simple,-Tex-Editor-Assumption)
- Environment variable TEXINPUTS (+Simple,-OS-Assumption)
- Register a user-managed TEXMF directory (Recommended)
Useful Latex Packages 4 Debian / Ubuntu
Usual Bugs
STY not found
Error Description:
Package csquotes Info: ... configuration file loaded successfully.
(/usr/share/texmf-texlive/tex/latex/csquotes/csquotes.cfg
File: csquotes.cfg 2009/05/30 v4.4 csquotes configuration
)
Package csquotes Info: Enabling multilingual support.
Package csquotes Info: Redefining alias 'german' -> 'german/guillemets'.
)
! LaTeX Error: File `bibgerm.sty' not found.
Trys 2 enable multi lingual support and redefines alias german
2 german/guillemets
.
Afterwards bibgerm.sty
is not found, because it is not installed.
Solutions:
1. Manual Fix
sudo apt-get install texlive-lang-german
sudo texhash
sudo fmtutil --all
2. Automatic FIX
Why … Dynamically Update of needed STY-Packages without user trigger
Why not … Automatic updates are not a good idea regarding LaTeX, as an update may end up breaking your document an hour before you need to hand it in!!!
Conclusion: Always update manually!!!
Von Kommandozeiel Quickbuild ausführen
pdflatex -synctex=1 -interaction=nonstopmode DAStefanIllgen.tex | bibtex DAStefanIllgen.aux | bibtex inet.aux | pdflatex -synctex=1 -interaction=nonstopmode DAStefanIllgen.tex | makeindex -s DAStefanIllgen.ist -t DAStefanIllgen.alg -o DAStefanIllgen.acr DAStefanIllgen.acn | makeindex -s DAStefanIllgen.ist -t DAStefanIllgen.glg -o DAStefanIllgen.gls DAStefanIllgen.glo | pdflatex -synctex=1 -interaction=nonstopmode DAStefanIllgen.tex | okular DAStefanIllgen.pdf
// used to generate the ls-R databases used by the kpathsea library
$ sudo texhash
// configures teTeX or TeX Live
$ sudo texconfig ...
3. Installing Extra Packages (CTAN APPROACH)
- Search engine for Latex-Style-Packages: http://www.ctan.org/search
- Download the STY-Package (i.e. http://www.ctan.org/pkg/here) and save it under
The complete instruction set can be found here.
Placement of Images
Attention: Impl. code has been moved from latex package here.sty
2 float.sty
. [CTAN HERE]
1. PLACE HERE if fits on page
[H]
2. Place here and keep floats in the right order
[!ht]
Important Packages
Glossaries
Example: PRINT Akronym Glossary
\renewcommand{\glsnamefont}[1]{\textbf{#1}}
% custom row color
\rowcolors{1}{GlossaryBGColor}{}
\printglossary[type=\acronymtype , style=long, title=Abkürzungsverzeichnis, toctitle=Abkürzungsverzeichnis]
Sectioning, Headings and TOC Options
- toc=true|false (Add the glossaries to the table of contents)
- numberline= (align the toc entry with the numbered section titles)
- section=chapter | subsection | … (This will make the glossaries appear in the named sectional unit, otherwise each glossary will appear in a chapter, if chapters exist, otherwise in a section)
style = list | long | super | tree
- may only be used for styles defined in glossary-list, glossary-long, glossary-super or glossary-tree
- style=long > set glossary entry names in bold font: \renewcommand{\glsnamefont}[1]{\textbf{#1}}
- numberedsection=false|nolabel(default)|autolabel (Indexierung in Inhaltsverzeichnis mit Zahl oder nicht)
- nonumberlist=true|false (determines if this glossary should have a number list)
longtable: Allow tables to flow over page boundaries
Example:
\begin{center}
\rowcolors[]{5}{TableOddBGColor}{TableEvenBGColor}
\setlongtables
%\tiny
\scriptsize
%\footnotesize
%\small
\arrayrulecolor{white}
\begin{longtable}{m{1.8cm}>{\centering\arraybackslash}m{1.2cm}>{\centering\arraybackslash}m{1.1cm}>{\arraybackslash}m{2.2cm}>{\centering\arraybackslash}m{1.2cm}>{\centering\arraybackslash}m{1.0cm}>{\centering\arraybackslash}m{1.9cm}>{\centering\arraybackslash}m{1.1cm}}
\multicolumn{3}{|>{\columncolor{TableHeaderBGColor}}c|}{\color{white} \textbf{Service Level Objective (SLO)}} & \multicolumn{3}{|>{\columncolor{TableHeaderBGColor}}c|}{\color{white} \textbf{Qualify Condition (QC)}} & \multicolumn{2}{|>{\columncolor{TableHeaderBGColor}}c|}{\color{white} \textbf{Wichtung}} \\ \hline
% row 2
\multicolumn{1}{|>{\columncolor{TableHeaderBGColor}}l|}{\color{white} Eigenschaft} & \multicolumn{1}{|>{\columncolor{TableHeaderBGColor}}c|}{\color{white} Prädikat} & \multicolumn{1}{|>{\columncolor{TableHeaderBGColor}}c|}{\color{white} Wert} & \multicolumn{1}{|>{\columncolor{TableHeaderBGColor}}l|}{\color{white} Eigenschaft} & \multicolumn{1}{|>{\columncolor{TableHeaderBGColor}}c|}{\color{white} Prädikat} & \multicolumn{1}{|>{\columncolor{TableHeaderBGColor}}c|}{\color{white} Wert} & \multicolumn{1}{|>{\columncolor{TableHeaderBGColor}}c|}{\color{white} Kompensation} & \multicolumn{1}{|>{\columncolor{TableHeaderBGColor}}c|}{\color{white} Intervall} \\ \hline
\endhead
% ROWSPAN
\multicolumn{8}{|>{\columncolor{TableHeaderBGColor}}l|}{\color{white} \textbf{Generische NFE-Parameter}} \\
% ROW 1
\texttt{Availability} & \texttt{>=} & \texttt{99.9\%} & \texttt{ResponseTime} & \texttt{<} & \texttt{40ms} & \texttt{25\%{}} & \texttt{5min} \\
\texttt{Throughput} & \texttt{>=} & \texttt{100Mbps} & \textbf{\texttt{NetworkBandwith}} & \texttt{>=} & \texttt{100Mbps} & \texttt{10\%{}} & \texttt{1m} \\
% ROWSPAN
\multicolumn{8}{|>{\columncolor{TableHeaderBGColor}}l|}{\color{white} \textbf{Domäne: Cloud Storage}} \\
% ROW 2
\texttt{Capacity} & \texttt{>=<} & \texttt{0-9999GB} & \textbf{\texttt{}} & & & \texttt{100\%{}} & \texttt{1m} \\ \texttt{Redundancy} & \texttt{>=} & \texttt{200,00\%} & \textbf{\texttt{}} & & & \texttt{30\%{}} & \texttt{1m} \\
\caption{Definition der Garantien des Easy Storage Service}\\
\end{longtable}
\label{tab:szenarioEasyStorageSLOQCBVL}
\end{center}
Bibliographien
Existing Bibliography Databases
BibTex
How to change the bibliography title names?
\renewcommand{\bibname}{%NEW_BIBO_NAME%}
How to prevent bibtex from parsing an attibute value?
author={{Wirtschaftsministerium Baden-Württemberg}},
How 2 specify et.al. in Authors?
@MISC{wspol07,
author = {Vedamuthu, A.S. and Orchard, D. and others},
...
}
Styles
- BibTeX (Default):
plain:
- sorts the entries according to the name of their authors and year
unsrt:
alpha:
- Surnames not abbreviated
- Cite-Mark: [ill98] (author-year)
abbrv:
- Surnames abbreviated (+)
- Cite-Mark: [1]
- Further Packages:
- alphaabbr: combination of alpha and abbr
- natbib:
- jurabib:
- din1505:
- Cite-Mark: (Aldi 2004) (Author Year)
- Styles:
- abbrvdin
- alphadin
- natdin (Nat Bib for German)
- plaindin
- unsrtdin
- germbib (Deutsche Literaturliste):
- Styles
- geralpha
- gerabbrv
- gerplain
- gerunsrt
- gerapali
- Evaluation: strange author name behaviour for all styles (name1, surname1 and surname2 name2 )
- Further Web Pages 4 Comparing Styles:
Weitere Quellen:
Change Default Style Alpha to show surnames abbreviated
- In C:\Program Files (x86)\MiKTeX 2.9\doc\bibtex\btxbst.doc change variable NAME_FULL from 1 to 0 for ALPHA style
- Compile the Style file: cpp -P -DALPHA btxbst.doc alphaabbr.bst
- Add bst to latex: see “Integrating Local Additions in Miktex”
- Use it: \bibliographystyle{alphaabbr}
IN btxbst.doc:
% alpha style (sorted short alphabetics)
# define LAB_ALPH 1
# define SORTED 1
-# define NAME_FULL 1
+# define NAME_FULL 0
# define ATIT_LOWER 1
# define MONTH_FULL 1
# define JOUR_FULL 1
http://gcc.gnu.org/
Indexierung
Multiple BibTex Biliographies
Example with 2 Bibliographies using multibib and StandarD BibTeX
1. Define extra cite (default cite don’t need to be referenced, because it’s already included bei source book (KOMA script))
\documentclass[..]{scrbook}
\usepackage[ngerman]{babel}
\usepackage{multibib}
\newcites{inet}{Internet-Referenzen}
2. Cite
\cite{abc10} % gets into default bibliography
\citeinet{abc10} % gets into internet refs
3. Display both …
\begin{center}
\bibliographystyle{alphadin}
\bibliography{bib/DAStefanIllgen}
\end{center}
\begin{center}
\bibliographystyleinet{alphadin}
\bibliographyinet{bib/DAStefanIllgen}
\end{center}
Multilingual Support
Silbentrennung steuern [Quelle]
- \- … Wort kann nur an der betreffenden Stelle getrennt werden kann.
- “- … Mittels dieser Anweisung wird eine zusätzliche Trennstelle angegeben.
- “= … Dies erzeugt einen Bindestrich, der die sonstigen Trennstellen im Wort weiterhin erlaubt
- “” … Diese Anweisung erlaubt einen Umbruch, ohne dass ein Bindestrich gesetzt wird.
- “~ … Mit dieser Anweisung setzt man einen Bindestrich, an dem nicht getrennt werden soll
Achtung: Diese Befehle erfordert das Paket german oder ngerman.
URLs umbrechen
- Package breakurl (Nur mit latex und nicht mit pdflatex!!!)
- \usepackage[hyphens]{url}
- hyphens bricht auch – um (sonst nur ., /, usw.)
- Bei gleichzeitiger Verwendung mit hyperref, muss url Package zuerst kommen
URL / Hyperlinks
Further Links
and others