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
1answer
24 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 ...
1
vote
1answer
24 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 ...
1
vote
1answer
29 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, ...
0
votes
0answers
18 views

format specific table rows: elements in parenthesis

How can I format specific rows of a table, placing every element of such rows inside brackets? I have tried adapting the command that I have seen here in this way: \newcommand{\rowparenthesis}[1]{\...
2
votes
1answer
46 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 ...
5
votes
3answers
82 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 ...
3
votes
3answers
44 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 ...
1
vote
2answers
26 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 ...
3
votes
4answers
104 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} ...
1
vote
2answers
84 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 ...
0
votes
0answers
62 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 ...
4
votes
2answers
169 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 ...
0
votes
1answer
45 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 "...
1
vote
1answer
40 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 ...
0
votes
1answer
64 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): \...
3
votes
1answer
133 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 ...
2
votes
2answers
101 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 ...
3
votes
0answers
88 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 ...
3
votes
1answer
353 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 ...
5
votes
1answer
104 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, ...
2
votes
1answer
112 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}[...
2
votes
0answers
165 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 ...
2
votes
2answers
444 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 ...
3
votes
2answers
171 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{...
5
votes
3answers
522 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 ...
1
vote
2answers
1k 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 ...
0
votes
1answer
173 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}} ...
3
votes
2answers
876 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}...
4
votes
3answers
191 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 ...
2
votes
1answer
227 views

Package dcolumn displays different fonts

I stumbled across an interesting feature of dcolumn today. I am using ITC Stone Serif fonts as they have been defined in our corporate design. I prepared an LaTeX document via lualatex, using the ...
0
votes
1answer
116 views

Missing } inserted. after use of \dcolumn

After using the dcolumn package in table I got this strange error of a missing } inserted. This is my code: \usepackage{dcolumn} \newcolumntype{L}{D{.}{.}{#1}} \usepackage[flushleft]{threeparttable} \...
3
votes
2answers
240 views

Right align numbers in the centre of siunitx columns with long text in the header

In this MWE, I want to be able to wrap column headers while taking benefit of siunitx's S column for right aligning the numbers in the middle of the column. I have tried tabu, warpcol and dcolumn. ...
2
votes
1answer
336 views

Align decimal point with REVTeX4.1 class without decreasing vertical spacing in tables

I am working with the REVTeX4.1 class and I want to have some numbers aligned to their decimal point on tables. Following the REVTeX 4 Author’s Guide p13, I am using the dcolumn package. However, when ...
0
votes
1answer
82 views

Moving variables within regression table

I have imported this code from Stata using the 'esttab' command and I have tried to realign the regression output, more specifically the output for 'Year Dummies, Industry Dummies and Missing Year ...
5
votes
2answers
271 views

Align table column on specific math symbol

I do have a longtabu which is originally part of a \newglossarystyle in glossaries list of symbols but I extracted it for the MWE. The first column shows mathematical operators and the second their ...
3
votes
2answers
230 views

Alternate even column width

I am trying to build a table with alternate evenly distributed columns and with each second column aligned to the decimal points. By googling, I arrived to the following code: \usepackage{tabularx} \...
3
votes
2answers
538 views

Alignment of table entries (part 2): negative numbers and table panels with different units of measurement

This question is related to Alignment of table entries: the case of negative numbers, where the problem is how to align table column entries in the presence of negative numbers and/or statistical ...
5
votes
2answers
2k views

using dcolumn/siunitx for aligning numbers with uncertainty and boldface

I have few issues for aligning the columns as the following example shows: 1) My uncertainty could have two-digit decimal and also fraction part 2) I want to make some cells bold 3) I want to add more ...
3
votes
1answer
465 views

dimension too large problem

I am stuck on a "Dimension too large" problem which is occurring here in this code: \documentclass{article} \usepackage{colortbl,dcolumn} \def\a#1{% \ifdim#1pt>2000pt\cellcolor{green}\else \ifdim#...
1
vote
1answer
155 views

Alignment problem using dcolumn with column prefix and suffix

I'm trying to use dcolumn for the "percents" column of some survey results, and I'm using the > and < affixes to the column spec to add an opening and closing parenthesis and the percent sign, as ...
1
vote
1answer
70 views

Table with colored cells using dcolumn and overlays

I found the very helpful question on how to add colors in a table using dcolumn here Colored text with dcolumn, but I would like to do the same thing using overlay such that the color only appears on ...
1
vote
1answer
224 views

Numbers in a table with dcolumn in different font?

I am using beamer and the dcolumn package and cannot get the numbers within a table to be in a different font. I also cannot use the siunitx package because I have numbers in brackets. Before defining ...
3
votes
2answers
522 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}} \begin{...
1
vote
1answer
1k 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
165 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
385 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
514 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
320 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} \usepackage{...
2
votes
2answers
186 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
210 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} ...