Questions tagged [column-width]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
32 views

Automatic column width in tabularx (to minimise blank space)

I have a text table (where the text is often long enough to need to break lines) plus each cell contains several items. However, the number of items in each cell of a row is not the same and, ...
1
vote
2answers
29 views

Wide long table in landscape mode in longtable environment with long column headers

I am trying to make a longtable in two column article, that will need to continue to the next page in a single column manner. Thus I am using longtable environment. since the table is wider too, I ...
2
votes
3answers
116 views

spread across a line (minus indent)

I have a sentence I wanted to spread across a line like the following: \makebox[\linewidth][s]{XXX XXXXX XXXXX XXXXX XXXXX XXXXX XX XXX XXX XX XXXXX XXXXX}\par What really happens is because it's a ...
0
votes
1answer
28 views

Table fontsize too small after using \resizebox

Initially, I had the problem of my table not fitting the column width of the page however after a \resizebox that was corrected however at the cost of the font size, is there a way to fix this? Thank ...
0
votes
0answers
30 views

How to create a longtable with specific width and adaptive column widths in it?

I need to create a longtable with fixed average width that contains one adaptive column and two others with derived widths to fit the average table width. I tried this answer but I need a parbox in ...
0
votes
2answers
49 views

width in table column with p style

I have this table and I want to center columns 2, 3 and 4. \begin{table}[h!] \centering \caption{Number of sub-indicators} \begin{tabular}{|l| p{2cm}|p{2cm}|p{2cm}|p{2cm}|} \...
0
votes
1answer
25 views

Table width as wide as that of header

I have a table with 5 columns. I hope the width of the table is as wide as that of header. As shown below, I assigned the width for every column and the horizontal line is beyond the boundary of ...
1
vote
1answer
59 views

Format Longtable with siunitx package

I am using the following script to create my table: \sisetup{parse-numbers = false} \begin{longtable}{ @{} l *{ 9 }{S[table-format = +2.3 ]} @{}} \caption{\label{tab:}Results}\\ \toprule ...
0
votes
0answers
23 views

Use of algorithm within minipage gives error [duplicate]

I would like to adjust column width in algorithm below: \usepackage{amsmath,amssymb} \usepackage[norelsize, linesnumbered, ruled, lined, commentsnumbered]{algorithm2e} \begin{document} %\begin{...
2
votes
2answers
54 views

Latex Table Alignment and Width Issues

So I have this code: \begin{center} \footnotesize \begin{tabular}{| c | c c c |} \hline \multirow{3}{*}{Equipment acquired at start of year} & \multicolumn{3}{c|}{Replacement cost (\...
0
votes
2answers
59 views

Alignment of multi-column headers for pairs of columns

So I would like to produce a table, whereby the heading of each multicolumn represents a certain distance and the sub-columns some numerical measurements associated with it. \begin{tabular}{cccc} \...
0
votes
0answers
24 views

Aligning the choice answers with text question

I want to know what options into multicols environment to set the right align the second column to the text above. \documentclass[11pt]{exam} \usepackage{multicol} \usepackage{amsmath,amssymb,...
0
votes
1answer
159 views

Specify column width using tabularx Table environment

I am working on a complex document in LaTeX and have various types of tables. I'd like the 2nd column wider and the 3rd column rather narrow. I tried different ideas with this code chunk {c *6{>{}X}...
0
votes
1answer
40 views

How to create a table with variable cell widths

I try to recreate the following table in overleaf: What would be a clever solution? I tried to use \columnwidths and the cals package, but that didn't worked well.
2
votes
2answers
104 views

How to create a table with evently distributed column width, bullet point and automatic line breaks

For my thesis, I need to create a table that look like this: The only thing I would like to be different, is that the bullet point are also horizontally aligned. Meaning that I want the second ...
0
votes
1answer
58 views

Adaptive column size based on width of tasks

Problem: This issue is related to the following post: Align enumerate to text and items to numbering for exercises and answers - but it deals with a different aspect of the package tasks, namely how ...
1
vote
1answer
163 views

Wrap Text in Table / Text Extends Past Page Margins

I would like to know who to wrap text in a table, and also to keep text from off the page of the document. Below is the code I have written so far. I am trying to wrap the text under 'Relevant ...
2
votes
2answers
187 views

Column width as necessary in tcolorbox tables

I am trying to make nice looking table with some data. Everything is fine except the width of column is fixed. I have tried many solutions but nothing works. How can the width of the column is change ...
3
votes
1answer
135 views

Longtable overflowing document - how do I define the width of a column?

I found this question that helped me defining a layout for a Liker questionnaire I have to create. The problem is that with very long questions that very same code is not working. Here is an example ...
1
vote
1answer
42 views

Table wider than screen in Lyx when its width set to 100% of page width

When I change width of table's columns in Lyx (for example: 30, 30 and 40% of page width in the case of table with three columns), I get result that I expected in PDF, but in Lyx editor this table is ...
0
votes
2answers
187 views

Change column width of itemize nested in enumerate in paracol

MWE: \documentclass[11pt]{book} \usepackage{paracol} \begin{document} \begin{paracol}{2} \switchcolumn[1]* \section*{Heading in Language 1} \switchcolumn[0] \section*{Heading in Language ...
2
votes
1answer
57 views

Is there a global variable that reflects the current preferred table column's width?

I wish to insert a (varwidth) box into a table cell, and I want the size of the box to be limited in width to whatever autosize that column would otherwise have, and for any text that I insert into ...
1
vote
1answer
62 views

Set specified width for column

I am trying to make a table and want to set the first column with specified width, namely 1 inch. I have seen some relevant solutions, but they basically use \textwidth. Therefore I am looking if ...
1
vote
1answer
41 views

Centering a left-justified column within a tabular environment

I know this has to be somewhere, so a link to the right question would be helpful; my google-fu keeps returning the incorrect version of what I want (clarified below). Goal: I want to be able to have ...
1
vote
1answer
149 views

Defining adaptive width of columns in a table

Is there a neat way to define all column widths in a table as the same value and adapted to the page size? For example I would like the following 32 columns to have all equal width of 1/32 of the ...
2
votes
1answer
388 views

How to autofit table based on contents?

I have checked all over the web but I'm trying to autofit column in table based on content. From below: to: The code is: \documentclass[conference]{IEEEtran} \IEEEoverridecommandlockouts \...
1
vote
1answer
69 views

Prevent spreading of words in: Left aligned, automatically wrapped text, in a table

I am trying to get a text left aligned in a table that automatically wraps text at a specified, varying column width. Without: LaTex adding extra spaces between words to reach the other side (right ...
5
votes
1answer
245 views

It is strange that \hline can not be as long as tabular*

\documentclass[11pt]{article} \usepackage{multirow} \begin{document} \begin{table}[b] \centering \caption{It's a table I simulated concerned with my question. } \medskip \label{table:...
1
vote
2answers
109 views

Set multicolumn width to full resized table width

I have a resized table and want the text in the last row to be wrapped around the full width of this table. How can I set the width p{?} of multicolumn such that this happens? \documentclass{article} ...
1
vote
1answer
6k views

How to reduce intercolumn space with stargazer

I have been navigating around for some time, trying to find the answer to my problem. I have made a few regression in R and want to export them with the stargazer package into LaTeX. However, ...
1
vote
2answers
879 views

How can I get `multirow` argument to fit its prespecified column width?

The content of multirow overflows horizontally: I know that I can fix this by specifying a certain length instead of * in \multirow{5}{*}{Polynomial Fit According to Eq. }, but I want the width ...
0
votes
3answers
198 views

Wrap text for all columns in a horizontal table

I have the following table below and I would like to wrap the text in each column so that the table does not exceed the width of the page. I have tried several solutions but they seem to shrink the ...
3
votes
2answers
339 views

How can I equalize the width columns 2-8?

So now this table has been an uphill battle, but I'm not progressing anymore. When you see the image you know where I want to go =) I want the columuns 2-9 to assume the same width. So this is what I ...
2
votes
2answers
477 views

Problems with column width and text alignment using siunitx

I have problems with formatting a large table with summary statistics of variables. My variables have long names, which I would like to keep, but if there is no way, I can make shortcuts of their ...
4
votes
3answers
205 views

Help adding row space for some rows, and adjusting \cmidrule and \multicolumn accordingly

The following table has two rows of headers, with the top row organizing categories over the second row using \multirow. The goal is to add blank space between the first group (columns 1-2) and the ...
1
vote
1answer
415 views

Tabbing inside (nested) itemize environment using tabto

I'm writing a two columns document using the package multicol. In a two levels list, I would like to tab some text to the center of the column. Since I use this tab a lot, I previously defined the ...
1
vote
2answers
666 views

How I can have the equal width of columns?

I am trying to have the equal width of two columns under 'Predictors' in Panel B. I've checked other online question. I tried to use tabularx but it didn't work. Could somebody help me please? The ...
2
votes
2answers
156 views

Column widths inconsistent?

I'm making a table with code: \begin{table}[h] \centering \begin{tabular}{ | P{1.9cm} || P{1.5cm} | P{1.4cm} | P{2.9cm} | P{2.9cm} | } \hline Compression & Bulk Dim & Top Dim & Box Area (\...
2
votes
1answer
468 views

Varying column width with tkz-Tab

I am trying to create a signs table using the package tkz-tab. I know how to change the width of the first column or of all the remaining columns using the options lgt or espclon \tkzTabInit, but they ...
1
vote
2answers
733 views

Column too wide in longtable

I am a beginner in LaTeX and have to make some very sophisticated tables in it. I use help from TeX.SE to complete the jobs of drawing these difficult tables. This time I have been stuck with a ...
1
vote
1answer
615 views

apa6[jou]: How to use \columnwidth in threeparttable?

I am using the apa6 class. My document has some instances of threeparttable. I can not manage to use \columnwidth to define the tables to match the column-width of my two column article. I have read ...
2
votes
1answer
787 views

Different column width in `tcolorbox` with `sidebyside` option

The default output of sidebyside option in tcolorbox environment is two equal-side columns (Refer to the MWE). But what is needed is to produce difference two difference column width. How can we get ...