{dcolumn} is a package that defines a system for defining columns of entries in an array or tabular which are to be aligned on a ‘decimal point’.

learn more… | top users | synonyms

1
vote
2answers
41 views

Troubles with dcolumn package - how to use underscores?

I do have following table: \documentclass[11 pt, oneside]{thesis} \usepackage{dcolumn} \newcolumntype{d}[1]{D{.}{.}{#1}} \begin{document} \begin{tabular}{p{0.2\textwidth} d{2.2} ...
4
votes
2answers
114 views

Align numbers on decimal point in tabular except for the column title

I am trying to align some numbers in a tabular on the decimal point. I have been using the dcolumn option but given that my column title is a year, it aligns also the year on the decimal point, which ...
0
votes
0answers
38 views

Customize font changing in table body and column head alignment

I need to be change customized dcolumn font. By default i set \setmathfont(Digits,Latin){MinionPro-Regular} all math font digit should be followed MinionPro-Regular in whole document. So if i ...
1
vote
1answer
76 views

dcolumn font changing and + or - alignment

I am using the dcolumn package for unit alignment in tables. The dcolumn fonts should be changed to helvetica 7pt. But I don't know how to change the fonts and size. I needs to be align the plus or ...
0
votes
1answer
68 views

How to decimal-align a table using dcolumn package

I have the following table, and would like to decimal align all the numbers. Can you please suggest how to do it? \newpage \begin{table}[htb] \centering \begin{changemargin}{0.0cm}{0.5cm} ...
4
votes
1answer
99 views

latex table align decimal, stars, column width

I am trying to align my columns on the decimal points. I'd like the column widths to be equal. I believe a possible answer is here, but I am really struggling to implement. Any thoughts? Note: I ...
2
votes
2answers
92 views

Colored text in a dcolumn table

I want to highlight text in a table using my own color definitions. The table is a dcolumn table. It doesn't work, I get the error messages ! Missing } inserted. and ! Extra }, or forgotten $. three ...
1
vote
1answer
103 views

Serious table problems - something is wrong the text cell (it just continue?)

TWO MORE QUESTIONS: How do I add analyzes to the left side (so the letter turns into the figure and with a underline?)? And how do I remove "Game"-catogory, if I would like that?? It would be a ...
2
votes
1answer
134 views

decimal column alignment in tables

I have some serious issue with my table. First, I would like to know how to put N in the middle of the two rows. Right now it looks like: Second, if I compile my document right now, it says: ...
4
votes
2answers
71 views

Problem with signs in dcolumn package

I want to create a table with multicolumns where numbers are vertically aligned at the decimal sign, so I used the dcolumn package. Some of my numbers have negative signs. For every second column my ...
3
votes
2answers
92 views

Align table by dot - Not with siunitx

I'm trying to align numbers in a table by the dots. I know of one method using the siunitx package. But I can't load the package. siunitx error: "incompatible-package"! Package 'SIunits' ...
1
vote
1answer
174 views

alignment problem with multicolumn in table (with dcolumn)

According to this question One header for all subtables: Correct arranging of Columns I am creating a table. Everything works fine except of two things: 1) When I use multicolumn over multiple columns ...
4
votes
1answer
93 views

One header for all subtables: Correct arranging of Columns

I am trying to create a table consisting of three other subtables. I have tried it with two versions (see e.g Alignment Problem in Table environment). There are three problems: 1) The Columns of the ...
3
votes
3answers
158 views

organize table with dcolumn

I created this table. But, the text are not center. the columns are organized on decimal marker, but the space between columns are not correct. I don't understand the dcolumn packege. ...
4
votes
1answer
83 views

Aligning by ; with dcolumn works only for 1 column

I have a problem with aligning columns by ;. Using the dcolumn package I was able to align the first column but when I try align all 4 columns by ;, like this \begin{tabular}{r|kkkk}, it fails with ...
5
votes
2answers
180 views

Centering on the decimal separator, figure font selection

I'd like to format a column with numbers with a decimal point. In my body text I use old-style figures for numbers, and lining figures in equations. If I use dcolumn my tables use lining figures, ...
3
votes
2answers
786 views

Bold row in table aligned with dcolumn

I am generating a bunch of TeX-tables (with Stata), in which one particular row has to be highlighted (bold). I can however only modify the first column in there, hence I want to place a command in ...
4
votes
1answer
214 views

How can I horizontally align checkmarks in a table column?

In my table I use different combinations of a checkmark standing alone, in parentheses, or with an asterisk. I would like to have a centered column in which the checkmarks align. By using the package ...
5
votes
2answers
1k views

Beamer alert in Math mode

I'm trying to alert my audience to numbers in a table that uses the dcolumn alignment environment. \alert works when it's used in a normal table cell, as below. \documentclass[compress]{beamer} ...
2
votes
1answer
265 views

dcolumn with alignment to comma

this is supposed to be an easy question, but I didn't find a clear answer anywhere. I want to use dcolumn with comma as a separator. However, I found different solutions and the manual is unclear to ...
3
votes
1answer
132 views

dcolumn with brackets

I am using dcolumn to align cells to the decimal point. But in case of brackets, I always got overfull errors in my main document. If I replicate a MWE with the full preamble, there are no more ...
3
votes
1answer
215 views

Optimizing size (font AND width) of tables produced with dcolumn/siunitx

I have a couple of tables in my document, and it's time to finalize them. This means I want to optimize: 1) the size of the font (if possible obtain \normalsize as in the rest of the document, or at ...
4
votes
2answers
394 views

dcolumn and tabularx, part 2

This is a follow-up on another question I asked. I am trying to combine the dcolumn package with tabularx (or tabular*for that matter) so the table spans the width I specify, columns are evenly ...
8
votes
2answers
2k views

Combine column types defined in dcolumn with tabularx

I'm looking for a way to define a column type which "mixes" the 'D' column defined in the dcolumnpackage and the 'X' column defined by the tabularx package. In other words, I want a column type that ...
9
votes
2answers
518 views

Align position of decimal point within table of numbers, text and percentage values

I have asked sthg similar with a MWE today answered by David C., but this is a more difficult follow-up question. Also I have just made a new account :) The Question is simple: I want the numbers to ...
2
votes
1answer
920 views

How to change table row heights and center their contents?

How can I decrease(or increase) the row height of a specific row in a table and center its content both horizontally and vertically? A related answer discusses how to decrease the height of a row, ...
9
votes
2answers
492 views

How to horizontally align headers and decimal centered cells

I use this code to produce a table and to align the column with the dot of the numerical values. \documentclass{article} \usepackage{dcolumn} \begin{document} \begin{tabular}{l D{.}{.}{3} ...
7
votes
1answer
732 views

Decimals in table don't align with dcolumn when bolded

I am making a table using booktabs and dcolumn. It works perfectly until I tried to bold one of the numbers and then the decimals won't read properly. Are there any workaround here? ...
3
votes
1answer
169 views

dcolumn italicize header for me

I am trying to use dcolumn to align the decimals for me. I am using booktabs while constructing the table. The code I have is: \documentclass{article} \usepackage{booktabs,dcolumn} ...
2
votes
1answer
219 views

tabular with “centered” and “flushright” entries

I need to typeset a tabular with the following requirement: the head of a tabular should be center in the column the entries should be flushright and (more or less) center in the the column like ...
2
votes
1answer
223 views

Align text and numeric values by decimal in table body using dcolumn

How can I align numeric values in the body of my table by decimal point when some of those values are accompanied by character values? For example, say I wanted to report some standard deviations in a ...
4
votes
1answer
694 views

Using dcolumn with \underset in LaTeX

I am using the dcolumn package in LaTeX to align by ".". It works well with \newcolumntype{.}{D{.}{.}{-1}} \begin{tabular}{l . . . . . . . . . } However, I want to include the standard errors of ...
3
votes
1answer
134 views

coloring text in a dcolumn aligned cell of a table

I need to color some text red (not color the cell background) in cell in a table to highlight it. The numbers in the column are aligned on the decimal using the dcolumn package. The problem is that ...
11
votes
1answer
620 views

Bold text with dcolumn [duplicate]

I use dcolumn to align (and modify) numerical entries in a table. When I try to change the font of a cell to mathbf it affects only the number before the decimal point. Assigning the mathbf to the ...
3
votes
1answer
606 views

Aligning text in dcolumn table

I want the "Yes" to be perfectly aligned below. As the table is now, if there's stars proceeding the "Yes", it'll push the text to the left. However, I want each column of "Yes"'s to be aligned such ...
2
votes
1answer
582 views

Very wide columns with dcolumn package

I want the the following table to be perfectly centered within the margin, with an approximately even spacing between each column. \documentclass[a4paper,11pt]{article} ...
6
votes
1answer
907 views

How to make \rowfont (from tabu package) overlay specification-aware (in beamer package)?

I have tables in a beamer presentation, and I would like to highlight table rows sequentially (not necessarily in row order) using overlay specifications. So I would like to be able to write code ...
4
votes
2answers
1k views

dcolumn won't align negative numbers and positive numbers

I am using R to analyze data and have used the xtable package within R to produce a TeX output for a correlation matrix. I have also implemented the dcolumn package within TeX so that I would be able ...
7
votes
2answers
253 views

Why does 65* become 65∗ when using dcolumn package to align digits?

I am using dcolumn package to align some numbers after the decimal point. However, some of this numbers have "*** signs" in order to relate them to additional information at the end of the table. ...
3
votes
1answer
309 views

Using dcolumn assignment with datatool

I seem unable to use columns defined with dcolumn with datatool. For example if my table is table1.csv events,100,10 \usepackage{dcolumn} ...
5
votes
2answers
707 views

Colored text with dcolumn

I want to typeset a table where certain numbers are going to appear red. In order to achieve the correct alignment I am using the dcolumn package. The problem is that the parsing that dcolumn does, ...
6
votes
1answer
3k views

dcolumn and text in table header

I am using the dcolumn package to align cell contents at the decimal seperator. Now in the table header I have a textual description of the column, for example like this: \begin{tabular}{c|d{4.3}} ...
5
votes
5answers
3k views

Align numbers with numbers and asterisks in table by decimal point

I have created the following table with numbers and asterisks in it. Now I would like to align the numbers by decimal points. I included the package dcolumn and defined a new column type: ...
4
votes
2answers
975 views

Estout and dcolumn: Overriding decimal alignment

I'm using estout (esttab actually) to produce a table in Latex from Stata. I'm using the dcolumn package to align the decimal places in my table. I want to override the alignment for a single row; ...
3
votes
1answer
397 views

Tabular+dcolumn+mathspec — columns overlapping

I would like to typeset a table using the D column type as described in the dcolumn package. When I combine this with \setmathfont(Digits){Gotham Narrow Light} I get overlapping columns: ...
54
votes
2answers
18k views

Aligning numbers by decimal points in table columns

Let me begin by stating that I did google the answers (and I'll reference to them soon). Yet each of the resources I found discussed one particular method, I'm interested in a comparison of the ...