von squard » Mi 11. Jan 2012, 21:35
Hallo zusammen!
Ich bin Latex-Anfänger und habe in den vergangenen Monaten erste Erfahrungen damit gesammelt. Ein Dokument welches vor kurzem noch problemlos kompiliert werden konnte, sorgt jetzt nachdem ich alle Pakete aktualisiert habe für einen Fehler.
Trotz intensiver Suche in der Dokumentation und diversen Forum komme ich der Lösung nicht näher. Seit dem Update hat sich wohl irgendeine Anforderung an die Einstellungen zu hypcap geändert.
Ich habe euch die nachfolgenden Informationen zusammen gestellt, und hoffe, dass ihr daraus schlauer werdet als ich. Sollte etwas wichtiges fehlen, reiche ich es gerne nach.
Ich nutze MikTex 2.9 unter Windows 7 Professional x64.
Vielen Dank für eure Antworten!
squard
Die erste Fehlermeldung im Log lautet:
! Package caption Error: hypcap undefined.
See the caption package documentation for explanation.
Type H <return> for immediate help.
...
l.119 }
If you do not understand this error, please take a closer look
at the documentation of the `caption' package, especially the
section about errors.
Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
Die Zeile 119 bezieht sich meines Erachtens auf die hier dick gedruckte Zeile aus der Datei preambel/styles.tex.
Unten ist diese nochmal vollständig aufgeführt.
% apply caption style
\captionsetup{
style=captionStyleTemplateDefault,
}
Mein Dokument sieht wie folgt aus:
% --- LaTeX Vorlage
% Dokumentenklasse (Koma Script)
\documentclass[%
%draft, % Entwurfsstadium
final, % fertiges Dokument
paper=a4, paper=portrait, pagesize=auto, % Papier Einstellungen
fontsize=11pt, % Schriftgröße
ngerman, % Sprache
]{scrartcl} % Classes: scrartcl, scrreprt, scrbook
% encoding
\usepackage[latin1]{inputenc}
% Encoding der Verzeichnisse (für Pfade mit Umlauten und Leerzeichne)
\usepackage[%
extendedchars, encoding, multidot, space,
filenameencoding=latin1,
]{grffile}
% Pakete und Stile
% Schriften
\input{preambel/fonts}
% Pakete Laden
\input{preambel/packages}
% Einstellungen und Layoutstile
\input{preambel/style}
% Eigene Befehle
\input{macros/newcommands}
% Eigene Befehle
\input{content/Silbentrennung}
\listfiles % schreibt alle verwendeten Dateien in die log Datei
%% Dokument Beginn %%
\begin{document}
% Deckblatt
\input{content/titel}
\clearpage
\tableofcontents
\clearpage
% Hauptteil
\input{content/Auswertung.tex}
\end{document}
%% Dokument ENDE %%
Die Datei preambel/packages.tex:
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% These packages must be loaded before all others
% (primarily because they are required by other packages)
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\usepackage{calc}
\usepackage{fixltx2e} % Fix known LaTeX2e bugs
\usepackage[ngerman]{babel} % Sprache
\usepackage[dvipsnames, table]{xcolor} % Farben
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Bilder, Gleitumgebungen und Platzierung
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\usepackage[]{graphicx} % Graphiken
\usepackage{epstopdf} % konvertiert eps in pdf
% provides new floats and enables H float modifier option
\usepackage{float}
% Floats immer erst nach der Referenz setzen
\usepackage{flafter}
% Alel Floats werden vor der nächsten section ausgegeben
\usepackage[section]{placeins}
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Beschriftungen (captions)
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\usepackage{caption}
\usepackage{subcaption}
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Math
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Base Math Package
\usepackage[fleqn]{amsmath}
% Warnt bei Benutzung von Befehlen die mit amsmath inkompatibel sind.
\usepackage[all, error]{onlyamsmath}
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Science
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Einheiten und Zahlenformatierung
\usepackage{siunitx}
% Datenreihen plotten (custom)
\usepackage[miktex]{gnuplottex}
% TikZ (custom)
%\makeatletter
% Tell gunuplottex to bring TikZ output in using \input rather
% than \includegraphics
%\def\gnuplottexextension@tikz{\string tex}
%\makeatother
%\usepackage{tikz}
%\usepackage{gnuplot-lua-tikz} % Generated by the createstyle option
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Tables (Tabular)
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\usepackage{booktabs}
\usepackage{ltxtable} % Longtable + tabularx
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% text related packages
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\usepackage{url} % Befehl \url{...}
\usepackage{enumitem} % Kompakte Listen
\usepackage{ulem} % unterstreichen
% Neue Befehle: \Centering, \RaggedLeft, and \RaggedRight, ...
\usepackage{ragged2e}
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Citations
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
%\usepackage[
% style=alphabetic, % Loads the bibliography and the citation style
% natbib=true, % define natbib compatible cite commands
%]{biblatex}
% Other options:
% style=numeric, %
% style=numeric-comp, % [1–3, 7, 8]
% style=numeric-verb, % [2]; [5]; [6]
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% layout packages
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
%
% Befehle für 1,5 und 2 zeilig:
% \singlespacing, \onehalfspacing und \doublespacing
\usepackage{setspace}
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Kopf und Fusszeile
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Kopf und Fusszeile mit scrpage2 einstellen
\usepackage[automark, komastyle, nouppercase]{scrpage2}
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% pdf packages
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Include pages from external PDF documents in LaTeX documents
\usepackage{pdfpages}
% Optischer Randausgleich mit pdfTeX
\usepackage{microtype}
%%% Doc: ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/doc/manual.pdf
\usepackage[
% % Farben fuer die Links
colorlinks=true, % Links erhalten Farben statt Kanten
urlcolor=pdfurlcolor, % \href{...}{...} external (URL)
filecolor=pdffilecolor, % \href{...} local file
linkcolor=pdflinkcolor, %\ref{...} and \pageref{...}
citecolor=pdfcitecolor, %
% % Links
raiselinks=true, % calculate real height of the link
breaklinks, % Links überstehen Zeilenumbruch
backref=page, % Backlinks im Literaturverzeichnis (section, slide, page, none)
pagebackref=true, % Backlinks im Literaturverzeichnis mit Seitenangabe
% verbose,
hyperindex=true, % backlinkex index
linktocpage=true, % Inhaltsverzeichnis verlinkt Seiten
% hyperfootnotes=false, % Keine Links auf Fussnoten
% % Bookmarks
bookmarks=true, % Erzeugung von Bookmarks fuer PDF-Viewer
bookmarksopenlevel=1, % Gliederungstiefe der Bookmarks
bookmarksopen=true, % Expandierte Untermenues in Bookmarks
bookmarksnumbered=true, % Nummerierung der Bookmarks
bookmarkstype=toc, % Art der Verzeichnisses
% % Anchors
plainpages=false, % Anchors even on plain pages ?
pageanchor=true, % Pages are linkable
% % PDF Informationen
pdftitle={Leistungsmessung an einem Wärmeübertrager im Gleich- und Gegenstrombetrieb}, % Titel
pdfauthor={Bernhard Schopfer}, % Autor
pdfcreator={LaTeX, KOMA-Script}, % Ersteller
pdfproducer={pdfeTeX 1.10b-2.1}, %Produzent
pdfdisplaydoctitle=true, % Dokumententitel statt Dateiname im Fenstertitel
pdfstartview=FitH, % Dokument wird Fit Width geaefnet
pdfpagemode=UseOutlines, % Bookmarks im Viewer anzeigen
pdfpagelabels=true, % set PDF page labels
% pdfpagelayout=TwoPageRight, % zweiseitige Darstellung: ungerade Seiten
% % rechts im PDF-Viewer
pdfpagelayout=SinglePage, % einseitige Darstellung
]{hyperref}
%\usepackage{hypcap}
Die Datei preambel/styles.tex:
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Colors
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\definecolor{sectioncolor}{RGB}{0, 0, 0} % black
% Farben fuer die Links im PDF
\definecolor{pdfurlcolor}{rgb}{0,0,0.6}
\definecolor{pdffilecolor}{rgb}{0.7,0,0}
\definecolor{pdflinkcolor}{rgb}{0,0.12,0.5}
\definecolor{pdfcitecolor}{rgb}{0,0,0.6}
%% PDF-Linkfarben auf schwarz für den Druck:
% \definecolor{pdfurlcolor}{rgb}{0,0,0}
% \definecolor{pdffilecolor}{rgb}{0,0,0}
% \definecolor{pdflinkcolor}{rgb}{0,0,0}
% \definecolor{pdfcitecolor}{rgb}{0,0,0}
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% text related
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
%% style of URL
\urlstyle{tt}
% Keine hochgestellten Ziffern in der Fussnote (KOMA-Script-spezifisch):
\deffootnote{1.5em}{1em}{\makebox[1.5em][l]{\thefootnotemark}}
% Limit space of footnotes to 10 lines
\setlength{\dimen\footins}{10\baselineskip}
% prevent continuation of footnotes
% at facing page
\interfootnotelinepenalty=10000
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Science
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\sisetup{%
mode = math, detect-family, detect-weight,
exponent-product = \cdot,
number-unit-separator=\text{\,},
output-decimal-marker={,},
}
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Citations / Style of Bibliography
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Kommentar entfernene wenn biblatex geladen wird
% \input{preambel/style-biblatex}
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% figures, placement, floats and captions
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Make float placement easier
\renewcommand{\floatpagefraction}{.75} % vorher: .5
\renewcommand{\textfraction}{.1} % vorher: .2
\renewcommand{\topfraction}{.8} % vorher: .7
\renewcommand{\bottomfraction}{.5} % vorher: .3
\setcounter{topnumber}{3} % vorher: 2
\setcounter{bottomnumber}{2} % vorher: 1
\setcounter{totalnumber}{5} % vorher: 3
%% ~~~ Captions ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Style of captions
\DeclareCaptionStyle{captionStyleTemplateDefault}
[ % single line captions
justification = centering
]
{ % multiline captions
% -- Formatting
format = plain, % plain, hang
indention = 0em, % indention of text
labelformat = default,% default, empty, simple, brace, parens
labelsep = colon, % none, colon, period, space, quad, newline, endash
textformat = simple, % simple, period
% -- Justification
justification = justified, %RaggedRight, justified, centering
singlelinecheck = true, % false (true=ignore justification setting in single line)
% -- Fonts
labelfont = {small,bf},
textfont = {small,rm},
% valid values:
% scriptsize, footnotesize, small, normalsize, large, Large
% normalfont, ip, it, sl, sc, md, bf, rm, sf, tt
% singlespacing, onehalfspacing, doublespacing
% normalcolor, color=<...>
%
% -- Margins and further paragraph options
margin = 10pt, %.1\textwidth,
% width=.8\linewidth,
% -- Skips
skip = 10pt, % vertical space between the caption and the figure
position = auto, % top, auto, bottom
% -- Lists
% list=no, % suppress any entry to list of figure
listformat = subsimple, % empty, simple, parens, subsimple, subparens
% -- Names & Numbering
figurename = Abb., %
tablename = Tab., %
% listfigurename=
% listtablename=
% figurewithin=chapter
% tablewithin=chapter
%-- hyperref related options
hypcap=true, % (true, false)
% true=all hyperlink anchors are placed at the
% beginning of the (floating) environment
%
hypcapspace=0.5\baselineskip
}
% apply caption style
\captionsetup{
style=captionStyleTemplateDefault, % base
}
% Predefinded skip setup for different floats
\captionsetup[table]{position=top}
\captionsetup[figure]{position=bottom}
% options for subcaptions
\captionsetup[sub]{ %
style = captionStyleTemplateDefault, % base
skip=6pt,
margin=5pt,
labelformat = parens,% default, empty, simple, brace
labelsep = space,
list=false,
hypcap=false
}
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% layout
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
%% Paragraph Separation =================================
\KOMAoptions{%
parskip=absolute, % do not change indentation according to fontsize
parskip=false % indentation of 1em
% parskip=half % parksip of 1/2 line
}%
%% line spacing =========================================
%\onehalfspacing % 1,5-facher Abstand
%\doublespacing % 2-facher Abstand
%% page layout ==========================================
\raggedbottom % Variable Seitenhoehen zulassen
% Koma Script text area layout
\KOMAoptions{%
DIV=11,% (Size of Text Body, higher values = greater textbody)
BCOR=5mm% (Bindekorrektur)
}%
%%% === Page Layout Options ===
\KOMAoptions{% (most options are for package typearea)
% twoside=true, % two side layout (alternating margins, standard in books)
twoside=false, % single side layout
%
headlines=2.1,%
}%
%\KOMAoptions{%
% headings=noappendixprefix % chapter in appendix as in body text
% ,headings=nochapterprefix % no prefix at chapters
% % ,headings=appendixprefix % inverse of 'noappendixprefix'
% % ,headings=chapterprefix % inverse of 'nochapterprefix'
% % ,headings=openany % Chapters start at any side
% % ,headings=openleft % Chapters start at left side
% ,headings=openright % Chapters start at right side
%}%
% reloading of typearea, necessary if setting of spacing changed
\typearea[current]{last}
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Titlepage
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\KOMAoptions{%
% titlepage=true %
titlepage=false %
}%
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% head and foot lines
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% \pagestyle{scrheadings} % Seite mit Headern
\pagestyle{scrplain} % Seiten ohne Header
% loescht voreingestellte Stile
\clearscrheadings
\clearscrplain
%
% Was steht wo...
% Bei headings:
% % Oben aussen: Kapitel und Section
% % Unten aussen: Seitenzahl
% \ohead{\pagemark}
% \ihead{\headmark}
% \ofoot[\pagemark]{} % Außen unten: Seitenzahlen bei plain
% Bei Plain:
\cfoot[\pagemark]{\pagemark} % Mitte unten: Seitenzahlen bei plain
% Angezeigte Abschnitte im Header
% \automark[section]{chapter} %[rechts]{links}
\automark[subsection]{section} %[rechts]{links}
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% headings / page opening
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\setcounter{secnumdepth}{2}
\KOMAoptions{%
%%%% headings
% headings=small % Small Font Size, thin spacing above and below
% headings=normal % Medium Font Size, medium spacing above and below
headings=big % Big Font Size, large spacing above and below
}%
% Titelzeile linksbuendig, haengend
\renewcommand*{\raggedsection}{\raggedright}
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% fonts of headings
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\setkomafont{sectioning}{\normalfont\sffamily} % \rmfamily
\setkomafont{descriptionlabel}{\itshape}
\setkomafont{pageheadfoot}{\normalfont\normalcolor\small\sffamily}
\setkomafont{pagenumber}{\normalfont\sffamily}
%%% --- Titlepage ---
%\setkomafont{subject}{}
%\setkomafont{subtitle}{}
%\setkomafont{title}{}
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% settings and layout of TOC, LOF,
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\setcounter{tocdepth}{3} % Depth of TOC Display
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Tabellen
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
%%% -| Neue Spaltendefinitionen 'columntypes' |--
%
% Belegte Spaltentypen:
% l - links
% c - zentriert
% r - rechts
% p,m,b - oben, mittig, unten
% X - tabularx Auto-Spalte
% um Tabellenspalten mit Flattersatz zu setzen, muss \\ vor
% (z.B.) \raggedright geschuetzt werden:
\newcommand{\PreserveBackslash}[1]{\let\temp=\\#1\let\\=\temp}
% Spalten mit Flattersatz und definierte Breite:
% m{} -> mittig
% p{} -> oben
% b{} -> unten
%
% Linksbuendig:
\newcolumntype{v}[1]{>{\PreserveBackslash\RaggedRight\hspace{0pt}}p{#1}}
\newcolumntype{M}[1]{>{\PreserveBackslash\RaggedRight\hspace{0pt}}m{#1}}
% % Rechtsbuendig :
% \newcolumntype{R}[1]{>{\PreserveBackslash\RaggedLeft\hspace{0pt}}m{#1}}
% \newcolumntype{S}[1]{>{\PreserveBackslash\RaggedLeft\hspace{0pt}}p{#1}}
% % Zentriert :
% \newcolumntype{Z}[1]{>{\PreserveBackslash\Centering\hspace{0pt}}m{#1}}
% \newcolumntype{A}[1]{>{\PreserveBackslash\Centering\hspace{0pt}}p{#1}}
\newcolumntype{Y}{>{\PreserveBackslash\RaggedLeft\hspace{0pt}}X}
%-- Einstellungen für Tabellen ----------
\providecommand\tablestyle{%
\renewcommand{\arraystretch}{1.4} % Groessere Abstaende zwischen Zeilen
\normalfont\normalsize %
\sffamily\small % Serifenlose und kleine Schrift
\centering% % Tabelle zentrieren
}
%--Einstellungen für Tabellen ----------
\colorlet{tablesubheadcolor}{gray!40}
\colorlet{tableheadcolor}{gray!25}
\colorlet{tableblackheadcolor}{black!60}
\colorlet{tablerowcolor}{gray!15.0}
Hallo zusammen!
Ich bin Latex-Anfänger und habe in den vergangenen Monaten erste Erfahrungen damit gesammelt. Ein Dokument welches vor kurzem noch problemlos kompiliert werden konnte, sorgt jetzt nachdem ich alle Pakete aktualisiert habe für einen Fehler.
Trotz intensiver Suche in der Dokumentation und diversen Forum komme ich der Lösung nicht näher. Seit dem Update hat sich wohl irgendeine Anforderung an die Einstellungen zu hypcap geändert.
Ich habe euch die nachfolgenden Informationen zusammen gestellt, und hoffe, dass ihr daraus schlauer werdet als ich. Sollte etwas wichtiges fehlen, reiche ich es gerne nach.
Ich nutze MikTex 2.9 unter Windows 7 Professional x64.
Vielen Dank für eure Antworten!
squard
Die erste Fehlermeldung im Log lautet:
[quote]
! Package caption Error: hypcap undefined.
See the caption package documentation for explanation.
Type H <return> for immediate help.
...
l.119 }
If you do not understand this error, please take a closer look
at the documentation of the `caption' package, especially the
section about errors.
Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
[/quote]
Die Zeile 119 bezieht sich meines Erachtens auf die hier dick gedruckte Zeile aus der Datei preambel/styles.tex.
Unten ist diese nochmal vollständig aufgeführt.
[quote]
% apply caption style
\captionsetup{
[b]style=captionStyleTemplateDefault,[/b]
}
[/quote]
Mein Dokument sieht wie folgt aus:
[code]
% --- LaTeX Vorlage
% Dokumentenklasse (Koma Script)
\documentclass[%
%draft, % Entwurfsstadium
final, % fertiges Dokument
paper=a4, paper=portrait, pagesize=auto, % Papier Einstellungen
fontsize=11pt, % Schriftgröße
ngerman, % Sprache
]{scrartcl} % Classes: scrartcl, scrreprt, scrbook
% encoding
\usepackage[latin1]{inputenc}
% Encoding der Verzeichnisse (für Pfade mit Umlauten und Leerzeichne)
\usepackage[%
extendedchars, encoding, multidot, space,
filenameencoding=latin1,
]{grffile}
% Pakete und Stile
% Schriften
\input{preambel/fonts}
% Pakete Laden
\input{preambel/packages}
% Einstellungen und Layoutstile
\input{preambel/style}
% Eigene Befehle
\input{macros/newcommands}
% Eigene Befehle
\input{content/Silbentrennung}
\listfiles % schreibt alle verwendeten Dateien in die log Datei
%% Dokument Beginn %%
\begin{document}
% Deckblatt
\input{content/titel}
\clearpage
\tableofcontents
\clearpage
% Hauptteil
\input{content/Auswertung.tex}
\end{document}
%% Dokument ENDE %%
[/code]
Die Datei preambel/packages.tex:
[code]
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% These packages must be loaded before all others
% (primarily because they are required by other packages)
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\usepackage{calc}
\usepackage{fixltx2e} % Fix known LaTeX2e bugs
\usepackage[ngerman]{babel} % Sprache
\usepackage[dvipsnames, table]{xcolor} % Farben
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Bilder, Gleitumgebungen und Platzierung
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\usepackage[]{graphicx} % Graphiken
\usepackage{epstopdf} % konvertiert eps in pdf
% provides new floats and enables H float modifier option
\usepackage{float}
% Floats immer erst nach der Referenz setzen
\usepackage{flafter}
% Alel Floats werden vor der nächsten section ausgegeben
\usepackage[section]{placeins}
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Beschriftungen (captions)
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\usepackage{caption}
\usepackage{subcaption}
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Math
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Base Math Package
\usepackage[fleqn]{amsmath}
% Warnt bei Benutzung von Befehlen die mit amsmath inkompatibel sind.
\usepackage[all, error]{onlyamsmath}
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Science
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Einheiten und Zahlenformatierung
\usepackage{siunitx}
% Datenreihen plotten (custom)
\usepackage[miktex]{gnuplottex}
% TikZ (custom)
%\makeatletter
% Tell gunuplottex to bring TikZ output in using \input rather
% than \includegraphics
%\def\gnuplottexextension@tikz{\string tex}
%\makeatother
%\usepackage{tikz}
%\usepackage{gnuplot-lua-tikz} % Generated by the createstyle option
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Tables (Tabular)
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\usepackage{booktabs}
\usepackage{ltxtable} % Longtable + tabularx
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% text related packages
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\usepackage{url} % Befehl \url{...}
\usepackage{enumitem} % Kompakte Listen
\usepackage{ulem} % unterstreichen
% Neue Befehle: \Centering, \RaggedLeft, and \RaggedRight, ...
\usepackage{ragged2e}
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Citations
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
%\usepackage[
% style=alphabetic, % Loads the bibliography and the citation style
% natbib=true, % define natbib compatible cite commands
%]{biblatex}
% Other options:
% style=numeric, %
% style=numeric-comp, % [1–3, 7, 8]
% style=numeric-verb, % [2]; [5]; [6]
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% layout packages
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
%
% Befehle für 1,5 und 2 zeilig:
% \singlespacing, \onehalfspacing und \doublespacing
\usepackage{setspace}
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Kopf und Fusszeile
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Kopf und Fusszeile mit scrpage2 einstellen
\usepackage[automark, komastyle, nouppercase]{scrpage2}
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% pdf packages
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Include pages from external PDF documents in LaTeX documents
\usepackage{pdfpages}
% Optischer Randausgleich mit pdfTeX
\usepackage{microtype}
%%% Doc: ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/doc/manual.pdf
\usepackage[
% % Farben fuer die Links
colorlinks=true, % Links erhalten Farben statt Kanten
urlcolor=pdfurlcolor, % \href{...}{...} external (URL)
filecolor=pdffilecolor, % \href{...} local file
linkcolor=pdflinkcolor, %\ref{...} and \pageref{...}
citecolor=pdfcitecolor, %
% % Links
raiselinks=true, % calculate real height of the link
breaklinks, % Links überstehen Zeilenumbruch
backref=page, % Backlinks im Literaturverzeichnis (section, slide, page, none)
pagebackref=true, % Backlinks im Literaturverzeichnis mit Seitenangabe
% verbose,
hyperindex=true, % backlinkex index
linktocpage=true, % Inhaltsverzeichnis verlinkt Seiten
% hyperfootnotes=false, % Keine Links auf Fussnoten
% % Bookmarks
bookmarks=true, % Erzeugung von Bookmarks fuer PDF-Viewer
bookmarksopenlevel=1, % Gliederungstiefe der Bookmarks
bookmarksopen=true, % Expandierte Untermenues in Bookmarks
bookmarksnumbered=true, % Nummerierung der Bookmarks
bookmarkstype=toc, % Art der Verzeichnisses
% % Anchors
plainpages=false, % Anchors even on plain pages ?
pageanchor=true, % Pages are linkable
% % PDF Informationen
pdftitle={Leistungsmessung an einem Wärmeübertrager im Gleich- und Gegenstrombetrieb}, % Titel
pdfauthor={Bernhard Schopfer}, % Autor
pdfcreator={LaTeX, KOMA-Script}, % Ersteller
pdfproducer={pdfeTeX 1.10b-2.1}, %Produzent
pdfdisplaydoctitle=true, % Dokumententitel statt Dateiname im Fenstertitel
pdfstartview=FitH, % Dokument wird Fit Width geaefnet
pdfpagemode=UseOutlines, % Bookmarks im Viewer anzeigen
pdfpagelabels=true, % set PDF page labels
% pdfpagelayout=TwoPageRight, % zweiseitige Darstellung: ungerade Seiten
% % rechts im PDF-Viewer
pdfpagelayout=SinglePage, % einseitige Darstellung
]{hyperref}
%\usepackage{hypcap}
[/code]
Die Datei preambel/styles.tex:
[code]
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Colors
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\definecolor{sectioncolor}{RGB}{0, 0, 0} % black
% Farben fuer die Links im PDF
\definecolor{pdfurlcolor}{rgb}{0,0,0.6}
\definecolor{pdffilecolor}{rgb}{0.7,0,0}
\definecolor{pdflinkcolor}{rgb}{0,0.12,0.5}
\definecolor{pdfcitecolor}{rgb}{0,0,0.6}
%% PDF-Linkfarben auf schwarz für den Druck:
% \definecolor{pdfurlcolor}{rgb}{0,0,0}
% \definecolor{pdffilecolor}{rgb}{0,0,0}
% \definecolor{pdflinkcolor}{rgb}{0,0,0}
% \definecolor{pdfcitecolor}{rgb}{0,0,0}
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% text related
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
%% style of URL
\urlstyle{tt}
% Keine hochgestellten Ziffern in der Fussnote (KOMA-Script-spezifisch):
\deffootnote{1.5em}{1em}{\makebox[1.5em][l]{\thefootnotemark}}
% Limit space of footnotes to 10 lines
\setlength{\dimen\footins}{10\baselineskip}
% prevent continuation of footnotes
% at facing page
\interfootnotelinepenalty=10000
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Science
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\sisetup{%
mode = math, detect-family, detect-weight,
exponent-product = \cdot,
number-unit-separator=\text{\,},
output-decimal-marker={,},
}
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Citations / Style of Bibliography
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Kommentar entfernene wenn biblatex geladen wird
% \input{preambel/style-biblatex}
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% figures, placement, floats and captions
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Make float placement easier
\renewcommand{\floatpagefraction}{.75} % vorher: .5
\renewcommand{\textfraction}{.1} % vorher: .2
\renewcommand{\topfraction}{.8} % vorher: .7
\renewcommand{\bottomfraction}{.5} % vorher: .3
\setcounter{topnumber}{3} % vorher: 2
\setcounter{bottomnumber}{2} % vorher: 1
\setcounter{totalnumber}{5} % vorher: 3
%% ~~~ Captions ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Style of captions
\DeclareCaptionStyle{captionStyleTemplateDefault}
[ % single line captions
justification = centering
]
{ % multiline captions
% -- Formatting
format = plain, % plain, hang
indention = 0em, % indention of text
labelformat = default,% default, empty, simple, brace, parens
labelsep = colon, % none, colon, period, space, quad, newline, endash
textformat = simple, % simple, period
% -- Justification
justification = justified, %RaggedRight, justified, centering
singlelinecheck = true, % false (true=ignore justification setting in single line)
% -- Fonts
labelfont = {small,bf},
textfont = {small,rm},
% valid values:
% scriptsize, footnotesize, small, normalsize, large, Large
% normalfont, ip, it, sl, sc, md, bf, rm, sf, tt
% singlespacing, onehalfspacing, doublespacing
% normalcolor, color=<...>
%
% -- Margins and further paragraph options
margin = 10pt, %.1\textwidth,
% width=.8\linewidth,
% -- Skips
skip = 10pt, % vertical space between the caption and the figure
position = auto, % top, auto, bottom
% -- Lists
% list=no, % suppress any entry to list of figure
listformat = subsimple, % empty, simple, parens, subsimple, subparens
% -- Names & Numbering
figurename = Abb., %
tablename = Tab., %
% listfigurename=
% listtablename=
% figurewithin=chapter
% tablewithin=chapter
%-- hyperref related options
hypcap=true, % (true, false)
% true=all hyperlink anchors are placed at the
% beginning of the (floating) environment
%
hypcapspace=0.5\baselineskip
}
% apply caption style
\captionsetup{
style=captionStyleTemplateDefault, % base
}
% Predefinded skip setup for different floats
\captionsetup[table]{position=top}
\captionsetup[figure]{position=bottom}
% options for subcaptions
\captionsetup[sub]{ %
style = captionStyleTemplateDefault, % base
skip=6pt,
margin=5pt,
labelformat = parens,% default, empty, simple, brace
labelsep = space,
list=false,
hypcap=false
}
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% layout
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
%% Paragraph Separation =================================
\KOMAoptions{%
parskip=absolute, % do not change indentation according to fontsize
parskip=false % indentation of 1em
% parskip=half % parksip of 1/2 line
}%
%% line spacing =========================================
%\onehalfspacing % 1,5-facher Abstand
%\doublespacing % 2-facher Abstand
%% page layout ==========================================
\raggedbottom % Variable Seitenhoehen zulassen
% Koma Script text area layout
\KOMAoptions{%
DIV=11,% (Size of Text Body, higher values = greater textbody)
BCOR=5mm% (Bindekorrektur)
}%
%%% === Page Layout Options ===
\KOMAoptions{% (most options are for package typearea)
% twoside=true, % two side layout (alternating margins, standard in books)
twoside=false, % single side layout
%
headlines=2.1,%
}%
%\KOMAoptions{%
% headings=noappendixprefix % chapter in appendix as in body text
% ,headings=nochapterprefix % no prefix at chapters
% % ,headings=appendixprefix % inverse of 'noappendixprefix'
% % ,headings=chapterprefix % inverse of 'nochapterprefix'
% % ,headings=openany % Chapters start at any side
% % ,headings=openleft % Chapters start at left side
% ,headings=openright % Chapters start at right side
%}%
% reloading of typearea, necessary if setting of spacing changed
\typearea[current]{last}
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Titlepage
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\KOMAoptions{%
% titlepage=true %
titlepage=false %
}%
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% head and foot lines
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% \pagestyle{scrheadings} % Seite mit Headern
\pagestyle{scrplain} % Seiten ohne Header
% loescht voreingestellte Stile
\clearscrheadings
\clearscrplain
%
% Was steht wo...
% Bei headings:
% % Oben aussen: Kapitel und Section
% % Unten aussen: Seitenzahl
% \ohead{\pagemark}
% \ihead{\headmark}
% \ofoot[\pagemark]{} % Außen unten: Seitenzahlen bei plain
% Bei Plain:
\cfoot[\pagemark]{\pagemark} % Mitte unten: Seitenzahlen bei plain
% Angezeigte Abschnitte im Header
% \automark[section]{chapter} %[rechts]{links}
\automark[subsection]{section} %[rechts]{links}
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% headings / page opening
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\setcounter{secnumdepth}{2}
\KOMAoptions{%
%%%% headings
% headings=small % Small Font Size, thin spacing above and below
% headings=normal % Medium Font Size, medium spacing above and below
headings=big % Big Font Size, large spacing above and below
}%
% Titelzeile linksbuendig, haengend
\renewcommand*{\raggedsection}{\raggedright}
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% fonts of headings
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\setkomafont{sectioning}{\normalfont\sffamily} % \rmfamily
\setkomafont{descriptionlabel}{\itshape}
\setkomafont{pageheadfoot}{\normalfont\normalcolor\small\sffamily}
\setkomafont{pagenumber}{\normalfont\sffamily}
%%% --- Titlepage ---
%\setkomafont{subject}{}
%\setkomafont{subtitle}{}
%\setkomafont{title}{}
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% settings and layout of TOC, LOF,
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\setcounter{tocdepth}{3} % Depth of TOC Display
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Tabellen
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
%%% -| Neue Spaltendefinitionen 'columntypes' |--
%
% Belegte Spaltentypen:
% l - links
% c - zentriert
% r - rechts
% p,m,b - oben, mittig, unten
% X - tabularx Auto-Spalte
% um Tabellenspalten mit Flattersatz zu setzen, muss \\ vor
% (z.B.) \raggedright geschuetzt werden:
\newcommand{\PreserveBackslash}[1]{\let\temp=\\#1\let\\=\temp}
% Spalten mit Flattersatz und definierte Breite:
% m{} -> mittig
% p{} -> oben
% b{} -> unten
%
% Linksbuendig:
\newcolumntype{v}[1]{>{\PreserveBackslash\RaggedRight\hspace{0pt}}p{#1}}
\newcolumntype{M}[1]{>{\PreserveBackslash\RaggedRight\hspace{0pt}}m{#1}}
% % Rechtsbuendig :
% \newcolumntype{R}[1]{>{\PreserveBackslash\RaggedLeft\hspace{0pt}}m{#1}}
% \newcolumntype{S}[1]{>{\PreserveBackslash\RaggedLeft\hspace{0pt}}p{#1}}
% % Zentriert :
% \newcolumntype{Z}[1]{>{\PreserveBackslash\Centering\hspace{0pt}}m{#1}}
% \newcolumntype{A}[1]{>{\PreserveBackslash\Centering\hspace{0pt}}p{#1}}
\newcolumntype{Y}{>{\PreserveBackslash\RaggedLeft\hspace{0pt}}X}
%-- Einstellungen für Tabellen ----------
\providecommand\tablestyle{%
\renewcommand{\arraystretch}{1.4} % Groessere Abstaende zwischen Zeilen
\normalfont\normalsize %
\sffamily\small % Serifenlose und kleine Schrift
\centering% % Tabelle zentrieren
}
%--Einstellungen für Tabellen ----------
\colorlet{tablesubheadcolor}{gray!40}
\colorlet{tableheadcolor}{gray!25}
\colorlet{tableblackheadcolor}{black!60}
\colorlet{tablerowcolor}{gray!15.0}
[/code]