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
2 votes
1 answer
43 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}}...
user avatar
2 votes
2 answers
48 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{...
user avatar
  • 155
5 votes
2 answers
80 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 ...
user avatar
1 vote
2 answers
90 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 \...
user avatar
1 vote
1 answer
121 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 ...
user avatar
1 vote
1 answer
57 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 ...
user avatar
  • 173
0 votes
1 answer
78 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 ...
user avatar
  • 43
4 votes
2 answers
220 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 ...
user avatar
  • 43
0 votes
1 answer
45 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 ...
user avatar
2 votes
2 answers
445 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 ...
user avatar
  • 21
0 votes
1 answer
47 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} \...
user avatar
  • 291
0 votes
2 answers
164 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 ...
user avatar
  • 291
0 votes
1 answer
94 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} \...
user avatar
  • 291
1 vote
1 answer
162 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 ...
user avatar
2 votes
1 answer
59 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 ...
user avatar
  • 21
0 votes
1 answer
61 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 ...
user avatar
  • 1
0 votes
0 answers
366 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 ...
user avatar
6 votes
3 answers
108 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} \...
user avatar
0 votes
1 answer
47 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 ...
user avatar
0 votes
1 answer
41 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 ...
user avatar
  • 2,566
3 votes
2 answers
502 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 \...
user avatar
1 vote
0 answers
65 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 ...
user avatar
0 votes
1 answer
56 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 ...
user avatar
  • 351
1 vote
1 answer
502 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 ...
user avatar
  • 13
1 vote
1 answer
219 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, ...
user avatar
  • 11.9k
2 votes
1 answer
264 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 ...
user avatar
5 votes
3 answers
369 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 ...
user avatar
3 votes
3 answers
94 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 ...
user avatar
1 vote
2 answers
193 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 ...
user avatar
  • 13
3 votes
4 answers
216 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} ...
user avatar
  • 185
1 vote
2 answers
161 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 ...
user avatar
  • 818
0 votes
0 answers
93 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 ...
user avatar
4 votes
2 answers
397 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 ...
user avatar
  • 153
0 votes
1 answer
177 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 "...
user avatar
  • 113
1 vote
1 answer
60 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 ...
user avatar
0 votes
1 answer
443 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): \...
user avatar
  • 1,296
3 votes
1 answer
361 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 ...
user avatar
  • 133
2 votes
2 answers
206 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 ...
user avatar
7 votes
0 answers
287 views

Exporting tables made with dcolumn and multicolumns to docx using Pandox

I am trying to convert a tex-document into a docx-file to share it with some colleagues who do not use TeX and will not do so in the (near) future. At the moment, the best possibility seems to be ...
user avatar
3 votes
1 answer
1k views

Tabular align on decimal point with bold cells [duplicate]

I am trying to align tabular columns on a decimal point using dcolumn. Some cells should be bold. If I do this with \bm, the document does not compile, whereas if I do it as \textbf it does, but is ...
user avatar
  • 487
5 votes
1 answer
235 views

Font type for math in non math mode? Number font consistency within table

Is there a way that I can change font type of some numbers into math font without calling the math mode? Basically I have a some integers in table that needs to be separated by commas. For example, ...
user avatar
  • 225
2 votes
1 answer
523 views

Table cell center alignment other than decimal point in dcolumn

How do I align the cell contents of a dcolumn-Type central at a specified point other than the decimal point (e.g. the second decimal place)? I have a table of the following structure: \begin{table}[...
user avatar
  • 23
3 votes
0 answers
413 views

Using dcolumn for tables: Alignment on decimal and thousands separator

I'm struggling to align numbers on the decimal (.) as well as thousands (,) separator using dcolumn. I'd like to avoid unnecessary space when displaying decimals in one, and thousands in another row ...
user avatar
2 votes
2 answers
1k views

dcolumn and aligning string values

I have a question about Latex tables and dcolumn package and I was hoping you could help me fix my problem. I am using dcolumn package to align my regression results from the decimal point. Everything ...
user avatar
  • 21
3 votes
2 answers
358 views

Alignment of variable names within regression model within tabular environment

I have trouble correctly centering the names of each variable to match the coefficients in the following table: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{scrextend} \usepackage{...
user avatar
5 votes
3 answers
1k views

Latex Tables decimal point alignment for specific rows - dcolumn

I am trying to put together a table that consists out of both text and numbers. Most of the numbers I want to align with respect to their decimal points. Nevertheless, some of the cells contain text ...
user avatar
  • 73
1 vote
2 answers
2k views

What's the illegal character in Stargazer LaTeX output for Regression Table?

I'm trying to use a stargazer LaTeX output for a basic OLS regression table in R, but the compilation keeps breaking down in the \begin{tabular}{@{\extracolsep{5pt}}ld{.}{.}{-3}} line due to an ...
user avatar
  • 11
0 votes
1 answer
315 views

use dcolumn with the same font as the rest of text and bold

I have been searching the web for the past hours and cannot find an answer to this question. I have stumbled upon: 1. \newcolumntype{T}[3]{>{\textfont0=\the\font\DC@{#1}{#2}{#3}}c<{\DC@end}} ...
user avatar
  • 1
3 votes
2 answers
2k views

Using thousands separator and comma on decimals and formatting issues

I am really a rookie on LaTex and would like some help with formatting the table below: \documentclass[12pt]{article} \usepackage{booktabs} \usepackage{caption} \usepackage{times} \usepackage{dcolumn}...
user avatar
4 votes
3 answers
275 views

Align italic numbers in dcolumn

The question is similar to this: Decimals in table don't align with dcolumn when bolded I want certain numbers in a table with dcolumn to be italic and to align with the others. I tried something ...
user avatar
  • 103