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
31 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 ...
0
votes
0answers
50 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 ...
6
votes
3answers
70 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} \...
0
votes
1answer
30 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 ...
0
votes
1answer
26 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 ...
3
votes
2answers
90 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 \...
1
vote
0answers
38 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 ...
0
votes
1answer
37 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
121 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
65 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
23 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
121 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
151 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
53 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
72 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
132 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
106 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
79 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
243 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
87 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
44 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
109 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
202 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
123 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
169 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
578 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
139 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
245 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}[...
3
votes
0answers
257 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
729 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
236 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
663 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
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 ...
0
votes
1answer
229 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
1k 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
218 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 ...
3
votes
1answer
342 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
145 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
315 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
2answers
459 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
98 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
323 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
234 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
724 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
3k 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
647 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
183 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
76 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
271 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
687 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{...