Skip to main content
5 votes

Should an array eat up an explicit \mskip at the end of a column if tabularx is loaded?

tabularx is not involved here other than it loads array. In previous releases the mskip is removed but in 2024 that was fixed https://github.com/latex3/latex2e/issues/1323
David Carlisle's user avatar
5 votes
Accepted

How to change position of data values in the column of table

If you really want to mis-align your numbers, replace the nice S column with a left aligned column: \documentclass[10pt,twoside]{article} \usepackage[labelfont=bf, skip=5pt, font=small]{caption} \...
samcarter_is_at_topanswers.xyz's user avatar
4 votes

Suppress column already defined warning, tabularx, array

If you must, as for \newcommand, you can undefine the construct before making a new definition. \documentclass{article} \usepackage{array} \newcolumntype{u}{c} \ExpandArgs{c}\let{NC@find@u}\relax \...
David Carlisle's user avatar
4 votes
Accepted

Problem with multirow and long text

I would suggest to switch to tabularray, which does not allow multiline cells to overflow their cell borders. Also, it allows you to separate cells content from their appearance, so the code looks ...
Sergei Golovan's user avatar
4 votes
Accepted

How can I center data values in the column in a table environment

Building on the code given in this answer to your earlier question, I suggest changing the column type of the first column from l to S[table-format=2.0], changing the column type employed by the \...
Mico's user avatar
  • 513k
3 votes

Caption in tabularx environment

I would use longtblr of tabularray package. Using it the code for table is simpler and shorter: \documentclass[a4paper,12pt]{scrartcl} \usepackage[ngerman]{babel} \usepackage[T1]{fontenc} \...
Zarko's user avatar
  • 299k
3 votes

Problem with multirow and long text

The simplest solution is to add some extra vertical space: Challenges of Visual Inspection \\[15pt] ... Impact of Technological Solutions \\[15pt] Otherwise, to get a completely automatic solution, ...
Pieter van Oostrum's user avatar
3 votes
Accepted

How to use bold horizontal and vertical lines in a specific row of table?

With {NiceTabular} of nicematrix. \documentclass[]{article} \usepackage{nicematrix} \begin{document} \begin{table}[htbp] \centering \caption{caption} \label{tab:1}% \begin{NiceTabular}{...
F. Pantigny's user avatar
  • 42.4k
3 votes
Accepted

Suppress column already defined warning, tabularx, array

If you keep \newcolumntype segregated in an environment, you won't get warnings. Anyway, here's a \renewcolumntype command that avoids the warnings, but issues a warning if you try to renew a ...
egreg's user avatar
  • 1.1m
2 votes

Handling with tabularx and tikzpicture

I don't understand what use a single-cell table should serve, but if you want your tabularx to adjust to the text width, use (at least) one X column: \documentclass{standalone} \usepackage{tikz} \...
samcarter_is_at_topanswers.xyz's user avatar
2 votes
Accepted

How to get partial vertical lines in table?

You could use the nicematrix package, it has options to set the first row/column outside of the table lines: \documentclass{article} \usepackage{nicematrix} \begin{document} \renewcommand{\...
samcarter_is_at_topanswers.xyz's user avatar
2 votes

Fit tcolorbox to table

Since you have a note inside the table I'd use threeparttable, setting no border separators for the tcolorbox: \PassOptionsToPackage{usenames,dvipsnames,svgnames,table,cmyk,x11names}{xcolor} \...
CarLaTeX's user avatar
  • 64.5k
2 votes

Caption in tabularx environment

I recommend you employ an xltabular environment, which combines the capabilities of the tabularx and longtable environments. \documentclass[a4paper,12pt]{scrartcl} \usepackage[ngerman]{babel} %\...
Mico's user avatar
  • 513k
2 votes
Accepted

Can I use threeparttable package with tikzpicture?

You could use width=\textwidth option to make your plot span the whole width of the text, just like your caption. If you'd like plot and caption to be smaller, you could wrap them in a minipage of ...
samcarter_is_at_topanswers.xyz's user avatar
1 vote

Can I use threeparttable package with tikzpicture?

The three formal parts of a threeparttable environment are a tabular-like environment, a tablenotes environment (optional), and a \caption directive (also optional). I suppose you could achieve your ...
Mico's user avatar
  • 513k
1 vote

How to get partial vertical lines in table?

Using tabularx: \documentclass[a4paper,12pt]{article} \usepackage{tabularx} \begin{document} \renewcommand{\arraystretch}{1.15} \begin{tabular}{c|c|c|} \multicolumn{1}{c}{} & \multicolumn{1}{c}{$...
Sebastiano's user avatar
  • 56.5k
1 vote
Accepted

Incompatibility with \vspace and \multicolumn in table-tabular enviroment?

As told in a comment, you want \midrule instead of \bottomrule, because syntactical it is not a bottom rule, but a rule between two table rows. Usually I would suggest to use \heavyrulewidth as ...
cabohah's user avatar
  • 13.6k
1 vote

How to I add \textit into a table and color to different parts of my table?

With {NiceTabular} of nicematrix (≥ 6.28). \documentclass{article} \usepackage[svgnames]{xcolor} \usepackage{nicematrix} \setlength\extrarowheight{2pt} \begin{document} \begin{NiceTabular}{p{...
F. Pantigny's user avatar
  • 42.4k
1 vote

Tabular column with equal width

With {NiceTabular} of nicematrix. \documentclass{article} \usepackage{nicematrix} \begin{document} \begin{NiceTabular}{>{\bfseries}lccc}[first-row,ampersand-in-blocks,hvlines] \Block{1-*}{\...
F. Pantigny's user avatar
  • 42.4k

Only top scored, non community-wiki answers of a minimum length are eligible