Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

0
votes
0answers
32 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 post on dcolumn and siunitx ...
4
votes
2answers
140 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
40 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
30 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
43 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
87 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
91 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
54 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
224 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 ...
4
votes
1answer
95 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
57 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
112 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
316 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
116 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
426 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
864 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
131 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
679 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
167 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
189 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
101 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} \...
2
votes
2answers
201 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. ...
3
votes
1answer
268 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
67 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
244 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 ...
4
votes
2answers
226 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
394 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 ...
4
votes
2answers
1k 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
376 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
130 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
62 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
210 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 ...
2
votes
2answers
459 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
840 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
161 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
303 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
448 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
271 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
163 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
206 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} ...
2
votes
1answer
114 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 ...
2
votes
2answers
148 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} \...
2
votes
1answer
644 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} \newcolumntype{d}[1]{...
1
vote
2answers
334 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
220 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} p{0.1\...
10
votes
2answers
8k 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
1answer
570 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
963 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} \caption{...
6
votes
1answer
1k 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
472 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 ...