Skip to main content

Questions tagged [dcolumn]

{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’.

Filter by
Sorted by
Tagged with
0 votes
0 answers
36 views

How do I align a column on a decimal point in an xltabular environment? [duplicate]

I have a landscape, long table with different column types specified, as in tabularx. I am using the xltabular package, as it seems the perfect combination of longtable and tabularx that I require. ...
bmcb's user avatar
  • 1
0 votes
1 answer
52 views

single cell bold with dcolumn

I am using dcolumn for a tabular, and I would like to have a single cell printed in bold face. I know a similar question has been posed here, and here, and the proposed solution is mentioned in the ...
cesco's user avatar
  • 165
2 votes
1 answer
47 views

Aligning numbers on a forward slash using dcolumn

I would like to align numbers of the form 1/10 and 20/1,256 on the forward slash character. I have tried to use dcolumn, specifically the D command, but I clearly don't understand it: \usepackage{...
James Curran's user avatar
2 votes
2 answers
85 views

tabular intercolumn whitespace

Any suggestion to fix tabular intercolumn whitespace and improve its margins Here are my code and output code: \documentclass[a4paper, 12pt]{article} \usepackage{booktabs,tabularx} ...
haithem's user avatar
  • 1,175
1 vote
1 answer
190 views

colortbl & dcolumn: Package array Error: Illegal pream-token (\tabpre): `c' used

While using the packages colortbl, dcolumn for the scenario described in MWE, I am getting the below error message: MWE: \documentclass{article} \usepackage{colortbl} \usepackage{dcolumn} \...
Kumaresh PS's user avatar
  • 1,267
2 votes
0 answers
38 views

Latex: The packages ngerman and dcolumn don't work together

The following example won't compile (pdflatex). You can test that it compiles WITHOUT the package ngerman. But the the quotation marks are not correct. I don't know anything about the interior of ...
Renatus Lütticken's user avatar
0 votes
2 answers
55 views

Center part of a column by decimal point

I'm really struggling with a table where I would like the labels centered, but the values centered by decimal point. I tried a variety of methods that all failed miserably. Here is the most functional ...
Lauren Blanc's user avatar
1 vote
2 answers
395 views

Italics in Tables

I am new to Latex and have a problem understanding what is happening in my tables. I have used the code below to produce tables. I am using the \dcolumn to align values on the decimal sign, but this ...
Simon Rydstedt's user avatar
2 votes
1 answer
72 views

Textwide/Linewide (Regression) Table with dcolumn decimal alignment

I have quite fine and automated (50+) tables with one problem: they do not span linewidth or textwidth respectively. I am aware of resizebox but I do not want the font size to change (it should be ...
Magasinus's user avatar
0 votes
2 answers
95 views

Need to make this table, should I just use some other program?

Prof. wants us to reproduce this table to learn how to LaTeX, but all I'm learning is that LaTeX tables are a nightmare. Been stuck on this for weeks. We were given a lesson on the tabular environment,...
hyla413's user avatar
3 votes
1 answer
86 views

tabular with different alignment for text and numbers

i'm trying to make a table with bold text and aligned on the left in the first row. Whatever text must be aligned on the left and numbers on the decimal separator (","). I tried using \...
user1850133's user avatar
  • 1,028
2 votes
2 answers
95 views

Cannot align multiline cell with single-line cell

I am trying to align a row of cells where some cells are only 1 line and others are 2 lines. The MWE: \usepackage{dcolumn} \usepackage{makecell} \newcolumntype{d}[1]{D{.}{.}{#1}} \newcommand\mc[1]{\...
Adam_G's user avatar
  • 816
2 votes
1 answer
94 views

dcolumn decimal column format breaks file

AI'm having trouble using the dcolumn decimal format, The file looks like this: But as soon as I add the formatting in the tabular* in \begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} l *{4}{d{3.6}}...
David Barcene's user avatar
2 votes
2 answers
60 views

How to fix wacky spacing with tabu and dcolumn?

How do I fix this wacky spacing with tabu and dcolumn? Am I missing out on some best practices here? Thanks much!! \documentclass[letterpaper,11pt,DIV=12]{scrartcl} \usepackage{booktabs} \usepackage{...
Lucas's user avatar
  • 339
5 votes
2 answers
138 views

Inconsistent math font size in table cell with dcolumn

Some cells in my table contain numbers that have to be aligned around the decimal separator. So, I use dcolumn to produce the desired alignment. Some of the cells, however, have to be written out with ...
Laura Roich's user avatar
1 vote
2 answers
146 views

How Do You Use Numprint In Conjunction With Multirow?

Try as I might, nothing so far has worked. I'm trying to align the "9:1" as a \multirow, but I usually just end up getting an illegal pream-token error. Fitting the \multirow inside of a \...
datahunter's user avatar
1 vote
1 answer
405 views

Column Spacing and Multicolumn Alignment

I have the following problem: I would like to have a larger column spacing in the middle of my table in order to visually separate two different model specifications. I generally use dcolumn and ...
Methamortix's user avatar
2 votes
1 answer
112 views

Aligning decimal points - how to use siunitx or dcolumn with tabulary?

I've been trying to understand the syntax for siunitx and how to make it work with tabulary to align data around decimals with appropriate significant figures in columns. Does one need to manually ...
Wolfe79's user avatar
  • 313
2 votes
1 answer
325 views

Align decimal numbers in part of the table that has parentheses

I want to create the following table, and I have several questions as follows: In the table, I want to align decimal numbers above the "Observations," including the numbers in the ...
Lernst's user avatar
  • 63
4 votes
2 answers
306 views

Align decimal numbers with different digital numbers

I am trying to create the following table, and I have two problems regarding this table: 1- The numbers before and after the "." in the table are different numbers. I am trying to use the ...
Lernst's user avatar
  • 63
0 votes
1 answer
137 views

Aligning decimal points in longtable environment

I have a table created with longtable and I'd like to align the decimal points of the numbers in the table. I saw that previous posts suggested to use dcolumn or siunitx. However, I'm not able to make ...
Alfonso Castelli's user avatar
2 votes
2 answers
3k views

Table in IEEE paper format

I'm trying to create the below table by using the below packages, but the format of it is not well organised especially the numbers as they need to be in the centre and the tabs. can someone please ...
Jimmy's user avatar
  • 21
0 votes
1 answer
60 views

Aligning integers in a table with doubles and integers

I have the following table: \documentclass[12pt, a4paper]{article} \usepackage[english]{babel} \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsthm} \usepackage{tabularx} \usepackage{array} \...
Tyler D's user avatar
  • 331
0 votes
2 answers
818 views

Centering title of a table

I have made the following table. I have two issues with it: The yellow text acts as a "title"/"caption" for that panel. I'd like to center it relative to the entire table. Using c ...
Tyler D's user avatar
  • 331
0 votes
1 answer
294 views

Table alignment with dcolumn

Here is a MWE of a table I used with dcolumn, where I align by the decimal: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{dcolumn} \usepackage{tabularx, multirow, booktabs} \...
Tyler D's user avatar
  • 331
1 vote
1 answer
537 views

Regression table with decimal alignment while coeffcient and SE reported in the same rwo

I need this table to be aligned properly with decimal points of the coefficient value. The minus signs are also not good here. I think this can be attained through dcolumn but I could not get it ...
Amos Machado's user avatar
2 votes
1 answer
101 views

Align Decimals in table with additional integer and parenthesis

I am creating a table and am aligning the numbers in the column with the package \dcolumn. In "normal" cases this works, but not if I add parenthesis. This is a minmal example that shows my ...
HansR's user avatar
  • 21
0 votes
1 answer
76 views

dcolumn creates unwanted blank space with longer numbers

my problem: I have several tables spanning multiple pages each (longtable) with about 100-150 rows. I want the numbers in the tables formatted so that they are aligned at the decimal point with 2 ...
Jan's user avatar
  • 1
0 votes
0 answers
501 views

Transposing regression table in latex

I have a regression table in latex that is the result of output from applying the stargazer package on my regression results in R. I am wondering how to transpose the table such that the columns ...
Andycode's user avatar
6 votes
3 answers
230 views

How can I align the numbers of the table by decimals with dcolumn package?

I'm looking for a way to align the numbers of the table by decimals. Any thoughts of what could be wrong? \documentclass[12pt,a4paper]{article} \usepackage{apacite} \usepackage[latin1]{inputenc} \...
Felipe Torres Cruz's user avatar
0 votes
1 answer
69 views

Decimal point aligned columns with two pairs of parens for uncertainty

I'm trying to decimal point align my columns. I'm using numbers in parens at the end of a number to represent the uncertainty, and in one case I have two sources of uncertainty broken out, so I have ...
user769933's user avatar
0 votes
1 answer
55 views

How to use sans-serif in dcolumn (decimal alignment)?

I am setting some timetables in a sans font. I'd like to use dcolumn for aligning the times on the decimal point, but the package assumes you are using math. Is there an easy way to defeat this and ...
Peter Flynn's user avatar
  • 2,910
3 votes
2 answers
956 views

Alignment at the decimal, but centering of numbers without decimal

I have the following issue: I'm exporting regression output from Stata and inputing into my LaTex document. My goal is to write headers and footers in latex and simply input the raw "table-data" with \...
user444417's user avatar
1 vote
0 answers
102 views

Centering table cells about decimal point with bold and asterisk, for dynamically generated tables

I am using PdfLaTeX (MiKTeX) called via R-Brew to dynamically populate and generate a LaTeX table. Use of R tables does not support all of the statistics, and is not flexible enough for the tables I ...
user2030765's user avatar
0 votes
1 answer
87 views

How to replace numbers with centered strings in dcolumn table?

In a table produced by the texreg::texreg() function in R I want to replace numerical values with strings. The purpose is to summarize values of a bunch of control variables with a single line and a ...
jay.sf's user avatar
  • 477
1 vote
1 answer
746 views

Right-align a multicolumn table header that stretched over a left-aligned column

I am trying to right-align a multicolumn table heading, where one of the columns it straddles is aligned on a decimal point with dcolumn, and the other is left-aligned. In the example below, I would ...
serwaah's user avatar
  • 13
1 vote
1 answer
358 views

RevTeX-4.2 and dcolumn : align decimal with integer numbers

I am creating a table which has to be aligned in the decimal point. I am using the RevTeX-4.2 class and the dcolumn package. My code is the following \documentclass[reprint, ...
Thanos's user avatar
  • 12.5k
2 votes
1 answer
375 views

Align numbers with and without comma with dcolumn

I am trying to align the values in the following regression output table by the 1000-euro-mark (the comma). However, there are also values below 1000 euros which are not aligned as I would like them ...
r-newbie's user avatar
5 votes
3 answers
478 views

Reduce column width of table while also aligning values at decimal point

I have a table that is currently too large for my page which is why I want to reduce the column width. At the same time I also want to align the values at the decimal point. I have been trying with ...
User2010S's user avatar
  • 187
3 votes
3 answers
160 views

How to apply dcolumn in my longtable case? Need help

I have the follwoing table: In panel 5, I want to decimal match the 0.018 and 0.069. However, my code consists of \begin{longtable}{*{12}{c@{}>{$}c<{$}}}, I wonder how should I putd{-1} in ...
veryBigman's user avatar
1 vote
2 answers
337 views

Aligned columns (with \dcolumn) have unequal widths under longer text in \multicolumn

I have a regression table that has three columns. One for the names, one for the estimates and one for the standard errors. The two columns that display the estimates and the standard errors are ...
ManuNeu's user avatar
  • 13
3 votes
4 answers
645 views

Align the numbers on their decimal point

I would like to align the numbers on their decimal point. I used the following code for my table: \usepackage{siunitx} \usepackage{dcolumn} \begin{table}[htbp] \centering \caption{Add caption} ...
tibiooo's user avatar
  • 185
1 vote
2 answers
198 views

How to treat with dcolumn tabular format and colored values?

I found here this trick for formated text coloring for use with dcolumn package. However, it seems roughly redefine the \DC@endright statement and gives two wrong behaviours with values which have ...
e_moro's user avatar
  • 888
0 votes
0 answers
105 views

problem given by decimal alignment in latex tabu table with bold numbers

I'd like to have a table aligned by decimal point. I'm using tabu instead of table for exploit rowfont because I need row with smaller character. I've read different posts on dcolumn and siunitx ...
antonio's user avatar
5 votes
2 answers
476 views

Decimal alignment in a table with math mode

After reading some answers on the site, I'm trying to use dcolumn pacakge in order to add horizontal alignment to my tables. Unfortunately without success so far. I'm writing as a part of a group so I ...
Oleg's user avatar
  • 163
0 votes
1 answer
243 views

Using dcolumn to format regression tables with "." in variable names

I have long used esttab to output regression tables from stata into LaTeX. Now I'm trying to line up the columns by decimal place. The issue I'm having is that the coefficient labels on the left have "...
exl's user avatar
  • 113
1 vote
1 answer
69 views

Compact tabular alignment on decimal point

I want to align some decimal columns in a tabular on their decimal point. I tried to accomplish this with the dcolumn package, but when I use it as listed in the following, my column width gets ...
user9564464's user avatar
0 votes
1 answer
960 views

Table alignment using dcolumn

I am struggling with an issue regarding numbers alignment in a table. I have the following example (notice that I am using the style provided by the journal, which can be downloaded from here): \...
Dario's user avatar
  • 1,340
3 votes
1 answer
525 views

Siunitx and dcolumn not working in revtex4

The title pretty much says it all. I am writing up a paper that needs to be in revtex4, but for some reason both the siunitx and dcolumn packages are not working correctly. If I comment out my ...
Josh's user avatar
  • 133
2 votes
2 answers
260 views

Align columns at decimal point using siunitx wherein each cell contains superscripted table-notes

I am using the threeparttable package to typeset a table with some footnotes. I would like to align the entries in each numerical column using the facilities provided by siunitx. However, when table ...
Dr Krishnakumar Gopalakrishnan's user avatar