2
votes
1answer
36 views

tabular with “centered” and “flushright” entries

I need to typeset a tabular with the following requirement: the head of a tabular should be center in the column the entries should be flushright and (more or less) center in the the column like ...
3
votes
0answers
68 views

exam class - align problems horizontally using probsoln

I would like to create worksheets with problems filled by rows instead of columns. I am using probsoln to store and call the problems, but they always end up filling the worksheet vertically. I tried ...
3
votes
1answer
51 views

How to center a table in Classic thesis LyX version

I am using classic thesis for writing my thesis and while placing tables, the tables are aligning to the left. I want the table centered. I am attaching images of the LyX code and the output. Any help ...
3
votes
1answer
32 views

How can one adjust each text to the center for each box of the table?

Here is the example: \begin{tabularx}{\textwidth}{ |X|X|X|X|X| } \hline Equation & 2 & 3 & 5 & 7 \\ \hline $y_0 = b^{t}$ & -483061 & 1 & -174089 & 793599 \\ \hline ...
0
votes
0answers
28 views

Codes running smoothly when run separately but generates error on running together [closed]

I have two chunks of code running both of them individually gives no error but when i run them together in a single tex file i get errors as mentioned below \begin{longtable}{l c} \caption{Basic ...
3
votes
0answers
70 views

How to make all table cells center aligned?

I have this code which works fine \begin{table}[ht] \caption{Table Data } \centering \begin{tabular}{c c c c} % centered columns (4 columns) Now i have the dynamic headers so i have ...
0
votes
0answers
29 views

How can you change the alignment of calstable? (followup question)

This is a question related to this question of mine. However David's code does not work correctly here (a part of the table remains at the left and the other part moves to the center). How this can be ...
5
votes
1answer
70 views

How can you change the alignment of calstable?

calstable is always left aligned. \documentclass{article} \usepackage{cals} \begin{document} \begin{center} \begin{calstable} \colwidths{{1.5cm}{1.5cm}{1.5cm}} ...
2
votes
1answer
54 views

How can I left-align the table in pdfLaTeX in TeX Live?

I have these two TeX files: \documentclass[a3paper,landscape]{article} \usepackage{array} \usepackage{tabularx} \usepackage{longtable} \usepackage{ltxtable} \begin{document} Hello. ...
2
votes
1answer
37 views

Odd behaviour when dashes are add in a table?

Using the following MWE : \documentclass[12pt,a4paper]{report} \usepackage[lmargin=3.81cm,tmargin=2.54cm,rmargin=2.54cm,bmargin=2.52cm]{geometry} \usepackage{booktabs} \usepackage{siunitx} ...
3
votes
2answers
39 views

Centering a wide table that is defined inside a NewEnviron

I am trying to centre a table with a lot of content whose width is larger than the text width. The problem is that I am defining the table environment in the preamble so I can reuse it, and this seems ...
0
votes
1answer
67 views

Centering table in landscape page [duplicate]

I'm trying to get a table centered both vertically and horizontally in a landscape page. I've tried some of the solutions proposed around here but I can't get them to work in my specific case. Here ...
3
votes
0answers
94 views

Align decimal marker with thousands separator using siunitx

My table consists of two groups of rows. The first group contains large values (X,XXX). The second groups contains smaller values (0.XXX). Siunitx aligns all numbers based on the position of the ...
0
votes
0answers
36 views

Table and Figure in one table [duplicate]

I want to put table and figure side by side in one table...I used this code lines but not working ....could you help me out.... \begin{table}[t]\fbox{ \begin{minipage}[b]{.50\textwidth }% ...
2
votes
1answer
41 views

Fixing alignment with the rest of the text

The image included above is what I want to replicate - I want the name to appear on the top left, and the address/email-id to appear on the top right, and I want both of them to be aligned with the ...
2
votes
1answer
53 views

How can I change the indent of the row numbers in my tabular environment?

I'm using tabular to align numbers, answer choices basically. Each row is numbered (A), (B), etc. Is there any way to decrease the space between the row label and the first column? \newcounter{ans} ...
4
votes
1answer
44 views

Table not flushing left as expected

I'm trying to make my tables flush left and overall align with the text. Using to \textwidth manages to make the table the right size, but it won't align properly with the text sometimes. It is ...
4
votes
1answer
95 views

Figures in tables

I want to make a table with lots of figures. \begin{table} \centering \begin{tabular}{c|c|c} Index & Stand. Residuals & acf\\ \hline\hline BEL 20 & ...
2
votes
1answer
109 views

Brace spanning multiple rows in a table and horizontal alignment

I'm a beginner trying to do an brace inside a table, that is spanning multiple rows. I assume the best way to achieve this is to do a two-row tabular environment, with an array environment for the ...
2
votes
1answer
61 views

Left align after \specialcell in a centered table

I'm outputting descriptive tables from Stata using estpost and esttab into TeX format, and then importing them in LyX. I use \refcat to label my survey questions, and since some of them are very long ...
3
votes
1answer
138 views

Top-aligned table cells with different font sizes and controlled spacing

I am trying to achieve a table where a few things have to work simultaneously. Several of these things have been discussed before, but I have been unable to make everything work at once (and some ...
2
votes
1answer
82 views

Using ERT in LyX [duplicate]

Using LyX to create a Beamer presentation I used the TeX button to insert some ERT: \begin{table}\caption{Regression table\label{tab1}} \begin{center} \begin{tabular}{l r l r l r l} \hline & ...
3
votes
1answer
54 views

Caption Centered but Table is not

For some reason the caption is aligned in the center of the page but the table is too far to the right. How can I have both centered? \documentclass{article} \usepackage{booktabs} ...
1
vote
1answer
79 views

How to fix a table that is too wide for margins?

I have created a table that is too wide for the margins. What I tried to do was implement \hspace*{-50pt} before \begin{tabular} and \hspace{-50pt} after \end{tabluar}. Which gets rid of the overfull ...
1
vote
1answer
136 views

Align the top of two tables horizontally (side-by-side with minipage)

I'm using \minipage to put two tables side by side. But when the two tables are not of equal length, the shorter of the two is vertically centered with respect to the other. I would like both tables ...
0
votes
1answer
93 views

Aligning Decimal Points in Columns [duplicate]

I simply want to align the decimal points in columns. I know this has been answered already but I can not figure out how to apply it in my table. Forgive me, I am very new to LaTeX. This is the code ...
3
votes
1answer
86 views

Remove indent from table environment, and center-set the resulting table

How can I center my table if I'd like it to be ´1.5\textwidth´? \documentclass{amsart} \usepackage{graphicx} \usepackage{booktabs} \usepackage{ctable} \usepackage{tabularx} \usepackage{rotating} ...
2
votes
2answers
74 views

Table alignment

I'm not an expert with the tabular environment...I have some problems: I got an error "Extra alignment tab has been changed to \cr." I would like to have the professor name completely to the ...
1
vote
1answer
153 views

Problem with side by side figures and captions

I want to have 4 figures side by side and centered in my paper. I am using this code. The problem is that captions and figures are not aligned. It seems captions are in correct position, but figures ...
1
vote
0answers
54 views

How to specify the the column width but also keep the cell content center horizontally? [duplicate]

I want to specify the width of the column but also keep the content centered. How can I do that? Here is my code \begin{tabular}{p{6cm} c c p{2cm} p{3cm}} \Xhline{3\arrayrulewidth}\hline ...
1
vote
1answer
65 views

how to create a two column table for differentiating?

I want to compare two types of networks. I have 4 comparison points. How should I create a 2 column table where every of those 4 points for both networks is aligned?
2
votes
1answer
61 views

Issues centering table headers [duplicate]

I already asked how to best align header rows in a table especially in a tabu environment. Align (center) header row in table The two identical solutions worked great for one table but I am having ...
2
votes
1answer
106 views

How to get column alignment in tabularx?

When I put X in column specifier, how can I define column formatting? How can I get center alignment? Currently I am putting \centering, but that is not a proper solution. This is my code: ...
3
votes
2answers
153 views

Align (center) header row in table

I use @{\hskip 50pt} to separate columns in my table. The problem which arises is that I add this extra space after a multicolumn. This also moves the header row so that it is no longer centred. Is ...
1
vote
3answers
90 views

Centering figure consisting of subfigures

I currently have a graph that uses subfigures as follows: \begin{figure}[!htbp] \centering \begin{subfigure}[b]{0.3\textwidth} \centering ...
1
vote
2answers
100 views

aligning numbers with brackets in tables

I am attempting to use Latex to present financial statements. The majority of the work involves the tabular environment with numbers presented in columns which I have set as ragged right. My problem ...
9
votes
2answers
92 views

Centering all tables in a document with etoolbox

(I know there are already other questions about centering tables such as this. This question is specific to etoolbox.) How do I center all tables using etoolbox? I can do ...
4
votes
1answer
127 views

Aligning Tuples of Decimals with PgfplotsTable

In this question, Jake gave an awesome answer that shows how PgfplotsTable can be used to read tab-delimited data from a file, and typeset the parsed decimals in scientific notation such that all of ...
2
votes
1answer
89 views

Problem with a table

I have a table that I would like to adjust: the text is floatting; I wanna have it centred in every cell. \documentclass[12pt,a4paper,oneside]{book} \usepackage{tensor} \usepackage{graphicx} ...
4
votes
1answer
85 views

ctable decimal alignment

I'm trying to replicate siunitx's decimal alignmnent in tables, using ctables. \documentclass{article} \usepackage{ctable} \begin{document} \ctable[] {rc} {}{ \FL \textbf{Data} & ...
3
votes
1answer
125 views

Tables: Automatic adjustment of columnwidth to its content gives error “Misplaced \noalign” at \toprule

I am trying to put two tables next to each other, vertically aligned top, with some below listed adjustments I unfortunately can't get together. First, I'd like to know if/how I can avoid the error ...
6
votes
3answers
148 views

Centering in tabularx and X columns

How can I center the column when using X in tabularx environment like in this example? \begin{tabularx}{\textwidth}{@{}lXXXXX@{}} 1 & 2 & 3 & 4 & 5 \\ \end{tabularx}
7
votes
1answer
69 views

Make numbers in table bold w/o changing width

I want to highlight some numbers in a table using \bf{}. However, the bold numbers also get wider but I want them to neatly line up with the rest. How can I avoid this?
3
votes
1answer
131 views

Table right of TikZ image

I created a tree using TikZ and would like to add tabular explanation data to the right of it. The figure definition currently looks like this: \begin{figure*}[h!] \input{tikz/praefixeigenschaft} ...
5
votes
1answer
117 views

Alignment at the center of two multicolumn

I would center 10e-1 and 10e-3 at the center of the 4 multicolumn. How can I do? \usepackage{siunitx} \usepackage{multirow} \usepackage{booktabs} \begin{table}[htp] \centering ...
4
votes
1answer
51 views

Left aligning without extra space between words in tables

Here is the illustrating code: \documentclass[letterpaper, 10pt]{article} \usepackage[margin=1in]{geometry} \usepackage{array} \usepackage[none]{hyphenat} \begin{document} \begin{center} ...
1
vote
0answers
28 views

How to center a text in a table? [duplicate]

Possible Duplicate: Center column with specifying width in table (tabular enviroment)? I want to fix this code, the last column aren't center in the cell. How can I center the text of all ...
1
vote
1answer
165 views

Centering Table with Column Width in Two-column layout

I have the following table which I want to put in the center of the two-column manuscript. But it failed although I already put the asterisk in the \begin{table*} command. \begin{table*} ...
1
vote
1answer
283 views

Multicolumn misplaced \omit problem

Okay, I know there are a few questions already about this but I looked at them and tried to get it to work but couldn't, I'm kinda new at this so I dont really have a clue what I'm doing. Anyway ...
12
votes
1answer
174 views

Align numbers and separated uncertainties in tables with S columns

If I have a table like this \documentclass{article} \usepackage{booktabs} \usepackage[separate-uncertainty=true]{siunitx} \begin{document} \begin{table} \centering \begin{tabular}{ ...

1 2 3 4 5