{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

3
votes
2answers
31 views

misalignment of column values in a tabular* / dcolumn table

I am using the following code to create a table for a paper I am writing in Overleaf. \usepackage{array} \usepackage{dcolumn} \usepackage{booktabs} \newcolumntype{d}[1]{D{.}{.}{#1}} ...
0
votes
1answer
29 views

Tabularx and decimal alignment with dcolumn

I am trying to implement decimal alignment on a regression table using tabularx. I am using the dcolumn package to do it, but there are two problems: (i) only two out of three columns are decimally ...
3
votes
2answers
83 views

Centre on decimal when brackets present

I have a table column where I'm centring all the numbers on the decimal using dcolumn and I'm finding that if a number is in brackets and no decimal point is present then it will align on the right ...
2
votes
1answer
38 views

Align text by numbers in table columns

I need to align the text in columns by decimals in the numbers. However the numbers go together with text so I can not simple use dcolumn package in 5th column as in the 1st one. If I split to more ...
3
votes
2answers
73 views

Aligning table of data using dcolumn

I have a table with one index column and three columns of data. I would like the table have the data aligned using the decimal point. Following the answer to this question I try the following code: ...
1
vote
2answers
51 views

Align centered wiith dcolumn when \multicolumn used

When \multicolumn is used in dcolumn, then there is misalignment in text and the heading. See the figure for more details. \documentclass[12pt,oneside]{report} \usepackage{amsmath} ...
3
votes
2answers
63 views

Aligning column around decimal with footnotes present

I have a column of numbers which I'd like to align on the decimal point, which in simpler circumstances I've achieved using the dcolumn package. In this particular case, I have footnotes which are ...
3
votes
2answers
77 views

Adding xepersian produces an error for tables

Adding \usepackage{xepersian} makes the following code produce an error: \documentclass{article} \usepackage{booktabs,caption,dcolumn} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} ...
3
votes
1answer
51 views

How to combine breqn and dcolumn package?

is there a way to use both breqn and dcolumn packages? I constantly get an error message ('Missing } inserted'). Or is there any other package that breaks up equations and sets the equation number in ...
3
votes
2answers
57 views

Possible conflict between dcolumn and csvsimple

Ok, so I'm trying to add a table to a document using a .csv file. After tinkering with it I've got this for the table: \usepackage{makeidx} % allows for indexgeneration \usepackage[utf8]{inputenc} ...
3
votes
1answer
110 views

Align table columns by equal sign

So I know I can align columns by a comma with the dcolumn package like so: \documentclass[12pt, a4paper]{article} \usepackage{booktabs} \usepackage{siunitx} \usepackage{dcolumn} ...
1
vote
2answers
73 views

underline a dcolumn cell

I have the following example code \documentclass[a4paper,12pt]{scrartcl} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{dcolumn} \usepackage{tabularx} \usepackage{multirow} ...
1
vote
2answers
63 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
691 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 ...
1
vote
1answer
168 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 ...
1
vote
1answer
117 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
337 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
201 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
128 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
200 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
110 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
125 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
292 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
135 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
241 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
88 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
218 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
2k 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
245 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
477 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
167 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
285 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
590 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
3k 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
741 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
1k 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
797 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
1k 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? ...
4
votes
1answer
259 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
434 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
259 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
750 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
155 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
844 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
738 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
699 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
1k 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
265 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. ...