PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : dcolumn und Schrift definieren



Katjes
21-12-2009, 15:42
Hallo Community,
ich möchte gern mit dcolumn die Zahlenwerte am Punkt ausrichten und zentrieren , jedoch

wirft das package meine Schrift auf den Mathemodus (?) zurück
und verwendet nicht meine für das gesamtdokument gewählte Schrift.
zudem lassen sich lange Wörter nicht umbrechen

Kann ich irgendwie festlegen, dass die Schrift beibehalten bzw. neu gewählt wird? Und das man wie bei p auch die Breite und den Umbruch festlegen kann?

Hier mal der Code ohne Dcolumn, wie man sieht die negativen Werte nicht schön anzuschauen:

\documentclass[11pt,a4paper]{article}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%
\usepackage{amsmath}
\usepackage[a4paper,includehead]{geometry}
\usepackage[pageshow]{xtab}

\usepackage[font={small},labelfont={bf},textfont={bf},format=h ang,justification=RaggedRight]{caption}
\usepackage{tabularx}
\usepackage{fancyhdr}
\usepackage{longtable}
\usepackage{dcolumn}
\usepackage{booktabs}

\newcolumntype{D}{D{.}{.}{-2}}
\setcounter{MaxMatrixCols}{10}
\renewcommand{\familydefault}{\sfdefault} %my font

\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%
\begin{table}[htb]
\begin{center}
\caption{Caption}

\footnotesize{
\begin{tabular}{l p{1cm} p{1.2cm}*{6}{p{1cm}}p{1.2cm}p{1cm}}
\toprule
&Bulgaria & Czech \ Republic &Estonia &Hungary & Latvia &Lithuania & Poland &Romania& Slovak\ Republic & Slovenia \\
\midrule
AAA&0.03 &-0.15 & 0.48 &-0.25& 0.21 &0.50 & 0.31 &-0.46 &-0.13 &-0.03\\
BB&0.06 & 0.06 & 0.79 & 0.26 & 0.57 & 0.76 & 0.27 & 0.14 &-0.13& 0.55 \\
\bottomrule
\end{tabular}
}
\end{center}
\end{table}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%
\end{document}

Hat jemand eine tolle Idee wie man die oben genannten Punkte umsetzen kann?
Vielen Dank und eine schöne Vorweihnachtszeit,
Katjes