2022 Developer Survey is open! Take survey.

Questions tagged [column-width]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
94 views

Set column width for Q-column in tabularray

I have some Q-column but using a \TblrNote seems to break the auto-width of those columns... How can I re-adjust the width so columns 3-8 are of equal width? \documentclass{scrartcl} \usepackage{...
user avatar
1 vote
1 answer
35 views

Longtable witdh setting ( multicolumn )

I am trying to make the follwing longtable shown in the picture below I have however two questions ? How can I center the items of the 1st,2nd,3rd and 5th column ( Rotation, Material etc..) How can ...
user avatar
1 vote
1 answer
86 views

How to make lstlisting work with tex4ht in table with fixed column width?

I am generating a table with fixed width with p specifications. In one column I need to put some text which is meant to be verbatim and can be few lines long so it will have to also automatically wrap ...
user avatar
  • 18.1k
0 votes
1 answer
36 views

Modify tabular to Stretch First Column Instead of Last Column if Needed

It appears that if the total widths of the columns is insufficient, tabular stretches the last column. In the following image note that the last column is stretched due to the heading being wide. ...
user avatar
3 votes
3 answers
149 views

Uniform cell spacing in 'tabular'

I need a very simple table with all the cells (except the first) of the same width. The first row has two characters in the first few cells and only one character in the last three. I am not able to ...
user avatar
1 vote
1 answer
24 views

how do I add text around a figure?

I have the following simple code: \documentclass[11pt,letterpaper]{article} \usepackage{fullpage} \usepackage{floatrow} \usepackage{graphicx} \usepackage{lipsum} \begin{document} \lipsum \begin{...
user avatar
  • 13
0 votes
1 answer
25 views

Save position information of all existing floats

The question is a follow-up to this one. Background color for all existing floats I hope to save the generated yellow background box location information to a new TXT file, as the floating element ...
user avatar
  • 149
0 votes
0 answers
20 views

How to output the start position coordinates and end position coordinates of the underline generated using fancypar or underline

For example, in the picture below, I want to know the start and end coordinates of the underline in each line \documentclass{article} \usepackage{zref-savepos} \usepackage{zref-user} \usepackage{zref-...
user avatar
  • 149
0 votes
0 answers
85 views

Elegant way to auto-adjust column width

I am asking myself if there is not a more convenient, elegant way to automatically adjust every column in a table to fit into the page and to have perfect enough way for the containing text without ...
user avatar
  • 107
0 votes
0 answers
20 views

Overfull \hbox when \textwidth exceeds \columnwidth while using \includegraphics in a 2 column template [duplicate]

I have a 2 column template in Overleaf. I would like the figure to span both the columns (otherwise the text in the figure becomes too small). I tried the following script: \begin{figure} \...
user avatar
3 votes
1 answer
83 views

Preventing Content of Tabular Environment from Running Off the Page

Consider the right content of the 2-column tabular environment generated by the code \documentclass{book} \begin{document} \thispagestyle{empty} \Large \begin{tabular}{l l} ...
user avatar
  • 4,959
0 votes
0 answers
70 views

Table in Two Column - Linewidth

I would like to set the width of this table to textwidth or linewidth. Ho would I do that in this two column template? Any idea? \documentclass[11pt,twocolumn,conference]{IEEEtran} \usepackage[T1]{...
user avatar
  • 37
2 votes
1 answer
75 views

Align numbers in siunitx Table with defined Column Width

I have an issue in correctly changing the column width of a table. I want the columns to be formatted using the siunitx package. In my data, I have a mix of values that should be printed as is (e.g. 0....
user avatar
0 votes
1 answer
39 views

Was trying to import csv table to Texmaker, the last column gives error when I try to fix the width

I was trying to import a csv table to my Tex, with csvsimple. The idea was to fix every column width and make the text wrapped around. However, whenever I change the last column identifier l to p{2cm} ...
user avatar
0 votes
0 answers
26 views

Image inserting issue in Article writing

Hey guys, I am writing an article using documentclass{ieeeaccess} document in two columns. But I want this image to appear in two columns width instead of in one column. Kindly help me with this.
user avatar
1 vote
1 answer
86 views

Adjusting the table width with the page width and defining cell width at the same time

I am writtng a text in LaTeX and I need to insert a big table in it. As it is quite wide and I wanted to ajust it to the page width, I used the \begin{adjustbox} command. However, I have a problem ...
user avatar
  • 11
0 votes
1 answer
41 views

Where am I going wrong in the column width?

I'm trying to create a table that has different column widths. This is what I have so far. \usepackage{graphicx} %to scale table \usepackage{tabularx,ragged2e} \newcolumntype{C}{>{\Centering\...
user avatar
  • 125
1 vote
1 answer
38 views

Why does the mdframed-box not adhere to the columnwidth in a multicol-environment?

Since it is impossible, or at least really hacky, to split a command over two arguments, I'd rather use a macro with a new environment to achieve a faster typesetting experience and consistent look. I ...
user avatar
  • 6,260
1 vote
1 answer
32 views

Changing Col. Width in tabularx environment and difficulty making table appear where I want

I am trying to widen the column titled "application" so the table overall is less tall, and I also have been experiencing trouble changing where the table appears (now it always appears at ...
user avatar
0 votes
1 answer
139 views

How to change the width of one column in a table

This is my table: \documentclass{scrbook} \usepackage{tabularx} \begin{document} \renewcommand{\arraystretch}{1.8} %Presets from my institute \newcolumntype{M}{X<{\vspace{4pt}}} %Presets from my ...
user avatar
2 votes
2 answers
60 views

Column width in tabularx environment

I have this table: \documentclass[conference]{IEEEtran} \IEEEoverridecommandlockouts \usepackage{tabularx,booktabs,newtxmath} \newcolumntype{Z}{>{\centering\arraybackslash}X} \begin{document} \...
user avatar
  • 313
1 vote
1 answer
120 views

Getting rid of white space due to too wide column content in Tabularx

My following MWE works in general but it returns a white space after the second column in the light grey head row. I can avoid this if I don't apply the \mcxcommand on the column content ("...
user avatar
0 votes
0 answers
90 views

text not fitting to column width

I have used a template for a 4 page double column format. It works for all the other pages up to the point shown on the screenshot (end of page 3 to page 4) , and I have no idea what has triggered ...
user avatar
0 votes
1 answer
65 views

Reducing the width of table cells

does anybody know if tabular has any properties where we are able to adjust the width of individual columns? I'm specifically wanting to reduce the space around the arrows and also around the text on ...
user avatar
2 votes
5 answers
253 views

Tabularx: Column smaller than text

So here is the minimal-code: \documentclass[a4paper, 12pt]{scrartcl} \usepackage{tabularx} \usepackage{chemfig} \begin{tabularx}{\textwidth}{|X|c|c|X|} Name & Monomer & Polymermolekül &...
user avatar
  • 248
0 votes
1 answer
285 views

Reduce width of a column in my xltabular

what I have is this: whose code is: \begingroup \setcellgapes{2pt} \makegapedcells \def\arraystretch{1.2} %\newcommand\mcl[1]{\multicolumn{3}{l|}{#1}} \begin{xltabular}{\linewidth}...
user avatar
1 vote
1 answer
132 views

How to fit the text into a large table? [duplicate]

I'm working on a large table and I use some tools to fit it into the default width text. However, one of its columns doesn't fit into the table's measures. How can I do this? \documentclass[ % -- ...
user avatar
1 vote
1 answer
43 views

How to control the width of my table

I want to control the width of my table. Could I get some ideas to solve this problem? \begin{table}[b] \centering \caption{The results of Human motion recognition [$\%$].} \arrayrulecolor{black} \...
user avatar
0 votes
0 answers
103 views

How to control the width of equations?

I have a long width of equations. Could I get the ideas to control the equations for matching the width? \begin{equation} \footnotesize{\varepsilon(L) = \sum_{ij} \eta_i_j ||L(\vec{x_i} - \vec{...
user avatar
1 vote
2 answers
103 views

How to fix the width of the table?

I want to control the width of my table, but the width is so long. Could I get some ideas to fix this problem? \begin{table} \centering \caption{The examples of DTW distance for the Weizmann datasets....
user avatar
1 vote
3 answers
397 views

Regression output using siunitx - alignment / column width problems

My goal is to have a regression table with columns aligned by the decimal separator. I produced a regression output (using Stata) and exported it using the user-written package esttab. In LaTeX, I use ...
user avatar
  • 11
1 vote
1 answer
584 views

How to set 12 pt font size, 10 pt line spacing, and 20 pica column width in IEEEtran document class?

I am trying to edit a manuscript of IEEEtran journal class by using Times Roman font, 12 pt font size, 10 pt line spacing, and 20 pica column width. I have been able to set the 12 pt font size with ...
user avatar
1 vote
2 answers
44 views

Fix the width of columns in several multicolum commands in one table

I am creating a table that contains more than one multicolumn command. How can I specify the width of the columns for the whole table collectively? \begin{tabular}{rrrrr} \toprule \multicolumn{1}{l}{...
user avatar
  • 107
0 votes
1 answer
104 views

Define width of last column in order that table fits text width

Consider this example: \documentclass{article} \usepackage{lipsum} \begin{document} \begin{tabular}{lcp{5cm}} Category & Data & Explanation \\ AA & 1.2 & \lipsum[1][1-...
user avatar
  • 6,803
0 votes
1 answer
208 views

Width of column for lyrics, songbook

I am trying to write a songbook for a friend of mine. But I am struggling to set the width of the column with lyrics (e.g. for Country Roads). I want one song on each page or in other words I want &...
user avatar
1 vote
2 answers
527 views

How to fix the width of columns in tabularx table?

I am working on Springer template, I want to create a tabularx table and I to fix the width of the columns. I work on landscape page and I want create a table like that table which contains 34 columns:...
user avatar
  • 260
1 vote
3 answers
186 views

How to make a tabular list of formulas with fixed width?

I want to type a well known list of famous formulas. So far I did \documentclass{article} \usepackage[utf8]{inputenc} \begin{document} \begin{table}[h] \begin{tabular}{llll} 1. & Teorema de ...
user avatar
3 votes
2 answers
1k views

Tabular - columns wider than \textwidth

I am trying to have table exactly between margins using \textwidth. Unfortunately, when I am using \textwidth my table is too large and I do not know why. (my code is for django template, but I was ...
user avatar
  • 33
1 vote
1 answer
540 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, ...
user avatar
  • 71
1 vote
2 answers
149 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 ...
user avatar
2 votes
3 answers
312 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 ...
user avatar
  • 1,297
0 votes
1 answer
442 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 ...
user avatar
0 votes
0 answers
58 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 ...
user avatar
1 vote
2 answers
102 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}|} \...
user avatar
0 votes
1 answer
37 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 ...
user avatar
  • 3,087
1 vote
1 answer
66 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 ...
user avatar
0 votes
0 answers
27 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{...
user avatar
  • 388
2 votes
2 answers
65 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 (\...
user avatar
0 votes
2 answers
408 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} \...
user avatar
0 votes
1 answer
3k 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}...
user avatar
  • 101