von Johannes_B » Mi 10. Jun 2015, 14:52
Folgend mit ordentlicher Dokumentenklasse, unter Zuhilfenahme des Pakets booktabs und siunitx.
\documentclass[ngerman]{scrartcl}
\newcommand{\tableheadfont}{\bfseries}
\renewcommand{\tableheadfont}{}
\usepackage{booktabs}
\usepackage{siunitx}
\sisetup{locale=DE}
\begin{document}
\begin{table}[h]
\caption{Standardansatz: Rating und Risikogewicht}
\begin{tabular}{ccS[table-format=1.2]}
\toprule
\tableheadfont Ratingklassen & \tableheadfont Ausfallwahrscheinlichkeit & {\tableheadfont Gewichtungsfaktor}\\
\tableheadfont(Standard und Poors) & \tableheadfont(\%) & {\tableheadfont(RW)} \\
\midrule
AAA bis AA- & bis \num{0,04} & 0,20\\
A+ bis A- & bis $0,\!11$ & 0,50\\
BBB+ bis BB- & bis $1,\!95$ & 1,00\\
unter BB- & & 1,50\\
\midrule
ohne Rating & & 1,00\\
Zahlungsverzug & & 1,50\\
\bottomrule
\end{tabular}
\end{table}
\end{document}
\\ beendet eine Tabellenzeile, zu dem Zeitpunkt ist aber textbf noch gar nicht fertig, also kommt es zum Fehler.
- Dateianhänge
-

- hananasTabular.png (43.69 KiB) 1924 mal betrachtet
Folgend mit ordentlicher Dokumentenklasse, unter Zuhilfenahme des Pakets booktabs und siunitx.
[img]http://golatex.de/files/hananastabular_150.png[/img]
[code]\documentclass[ngerman]{scrartcl}
\newcommand{\tableheadfont}{\bfseries}
\renewcommand{\tableheadfont}{}
\usepackage{booktabs}
\usepackage{siunitx}
\sisetup{locale=DE}
\begin{document}
\begin{table}[h]
\caption{Standardansatz: Rating und Risikogewicht}
\begin{tabular}{ccS[table-format=1.2]}
\toprule
\tableheadfont Ratingklassen & \tableheadfont Ausfallwahrscheinlichkeit & {\tableheadfont Gewichtungsfaktor}\\
\tableheadfont(Standard und Poors) & \tableheadfont(\%) & {\tableheadfont(RW)} \\
\midrule
AAA bis AA- & bis \num{0,04} & 0,20\\
A+ bis A- & bis $0,\!11$ & 0,50\\
BBB+ bis BB- & bis $1,\!95$ & 1,00\\
unter BB- & & 1,50\\
\midrule
ohne Rating & & 1,00\\
Zahlungsverzug & & 1,50\\
\bottomrule
\end{tabular}
\end{table}
\end{document}
[/code]
[tt]\\[/tt] beendet eine Tabellenzeile, zu dem Zeitpunkt ist aber [tt]textbf[/tt] noch gar nicht fertig, also kommt es zum Fehler.