Graphics, Figures & Tablesdcolumn | Alignment of Digits with additonal Information

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
tinoladino
Posts: 2
Joined: Wed Feb 22, 2012 4:38 pm

dcolumn | Alignment of Digits with additonal Information

Post by tinoladino »

Hi there, I am using dcolumn package to align some numbers after the decimal poin. However, some of this numbers have "*** signs" in order to relate them to additional information at the end of the table. However, as soon as I compile the 0.098* becomes 0.098∗.
This happens only when I define the column center as "." instead of "c" or "l" . For instance begin{tabular}{l . c}

Preamble:

Code: Select all

\usepackage[dvips,letterpaper,margin=1in]{geometry}
\usepackage{booktabs}
\usepackage{tabularx}
\setlength{\abovecaptionskip}{6pt}   
\setlength{\belowcaptionskip}{6pt}   
\usepackage[large, bf, justification=centering]{caption}
\usepackage{rotating}
\usepackage{dcolumn}
\newcolumntype{.}{D{.}{.}{5,6}}
Here s the rest of the code:

Code: Select all

\begin{table}
\footnotesize
\caption*{Table 5: Ordered logit results for men and women living in Denmark}
\centering
\begin{tabular}{l . .}
\toprule
\toprule
% 
\multicolumn{1}{l}{taste for redistribution} & \multicolumn{1}{c}{\bf Men} & \multicolumn{1}{c}{\bf Women} \\

\multicolumn{1}{l}{in Denemark} & \multicolumn{1}{c}{\bf b/se} & \multicolumn{1}{c}{\bf b/se} \\

\midrule
&          \\
%
%     
               age       & 0.018*  &       0.020* \\ 

\midrule
* p<0.05, ** p<0.01, *** p<0.001 \\
\bottomrule 
\addlinespace[0.75em] 
%
\scriptsize{\emph{Source: }stayers survey}
\end{tabular}
\end{table}
Anyone having a hint?

Thank you so much!
Last edited by localghost on Wed Feb 22, 2012 5:26 pm, edited 2 times in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

dcolumn | Alignment of Digits with additonal Information

Post by localghost »

Just for information to other users to be aware of possibly already existing solutions. The question has also been posted to the {TeX} SE.
tinoladino
Posts: 2
Joined: Wed Feb 22, 2012 4:38 pm

Re: dcolumn | Alignment of Digits with additonal Information

Post by tinoladino »

Well yes, I just got some answers on the other forum...


I am sorry, next time I will be more patient..and write only in one :oops:
(I have got a deadline to meet today!)
User avatar
Stefan Kottwitz
Site Admin
Posts: 10350
Joined: Mon Mar 10, 2008 9:44 pm

dcolumn | Alignment of Digits with additonal Information

Post by Stefan Kottwitz »

Hi,

in such an urgent case it's just nice to add a link, telling "btw. I also asked there too". So you reach more people while everybody knows of the other posting.

Stefan
LaTeX.org admin
Post Reply