[OS X TeX] dcolumn question
Michael Kubovy
kubovy at virginia.edu
Sat Dec 10 19:16:17 CET 2005
In the following example of a table, the last two columns are not
aligned on the decimal. Can you tell me why? When replying to the
list I would appreciate a cc to me.
You could cut and paste a shortened version of the article to see for
yourself:
%! program = pdflatex
\documentclass[jou,notab]{apa} % journal-like formatting
\usepackage{graphicx} %
\usepackage{booktabs,topcapt,multirow,dcolumn}
\usepackage{url}
\usepackage[font=sf]{caption,subfig}
\usepackage{tikz,pgflibraryarrows}
\usepackage{xspace} %
\usepackage{fancyhdr,ftnright,pslatex}
\usepackage{varioref} %
\usepackage{amsmath,amsbsy,sfmath,bm}
\usepackage{color}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage[scale=.9]{gtamaclucidagrande}
\newcolumntype{d}[1]{D{.}{.}{#1}}
\newcolumntype{.}{D{.}{.}{-1}}
\title{Title}
\author{Author}
\affiliation{This University}
\begin{document}
\maketitle
\begin{table*}[tb]
\begin{center}
\topcaption{Tests of non-linearity and interaction in Experiment 1}
\begin{tabular}{@{} l l l d{2.0} d{3.1} d{3.1} d{4.1} d{2.4} d{1.4} @{}}
\toprule
\multicolumn{3}{c}{model}\\
\cmidrule(lr){1-3}
\multicolumn{1}{c}{$|\mathbf{b}|/|\mathbf{a}|$} & \multicolumn{1}{c}{$
\delta$} & \multicolumn{1}{c}{combination} & \multicolumn{1}{c}{df}&
\multicolumn{1}{l}{\textsc{aic}\tabfnm{\textsf{a}}}& \multicolumn{1}
{l}{\textsc{bic}\tabfnm{\textsf{b}}}& \multicolumn{1}{l}{$\log{L}$
\tabfnm{\textsf{c}}}& \multicolumn{1}{l}{\textsc{lrt}\tabfnm{\textsf
{d}}}& \multicolumn{1}{l}{$p$}\\
\midrule
linear & linear & additive & $5$ & $685.4$ & $706.4$ & $-337.7$ & & \\
nonlinear & linear & additive & $9$ & $686.5$ & $724.3$ & $-334.2$ &
$6.939$ & $0.14$\\
linear & nonlinear & additive & $8$ & $679.1$ & $712.8$ & $-331.6$ &
$12.28$ & $0.0065$\\
linear & nonlinear & interaction & $12$ & $686.4$ & $736.8$ &
$-331.2$ & $0.7586$ & $0.94$\\
\bottomrule
\end{tabular}
\end{center}
\tabfnt{\textsf{a}}{\textsf{Akaike Information Criterion. Lower is
better.}}
\tabfnt{\textsf{b}}{\textsf{Bayesian Information Criterion. Lower is
better.}}
\tabfnt{\textsf{c}}{\textsf{Log likelihood. Lower is better.}}
\tabfnt{\textsf{d}}{\textsf{Likelihood ratio test statistic. Higher
favors the continuous model.}}
\end{table*}
\end{document}
_____________________________
Professor Michael Kubovy
University of Virginia
Department of Psychology
USPS: P.O.Box 400400 Charlottesville, VA 22904-4400
Parcels: Room 102 Gilmer Hall
McCormick Road Charlottesville, VA 22903
Office: B011 +1-434-982-4729
Lab: B019 +1-434-982-4751
Fax: +1-434-982-4766
WWW: http://www.people.virginia.edu/~mk9y/
------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
& FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
More information about the macostex-archives
mailing list