Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Hot answers tagged

5 votes

LaTeX table not working

One possible solution: wider \textwidth determined by use of the geometry package footnotesize font size different widths of columns use of the tabularray package \documentclass{article} \usepackage{...
user avatar
  • 251k
4 votes

makecell: how to reduce the line spacing in multiline cells?

With use of the tabularray package is simple: \documentclass[12pt]{article} \usepackage{tabularray} \begin{document} \begin{tblr}{cells=l, rowsep=3pt} foobar &...
user avatar
  • 251k
3 votes
Accepted

makecell: how to reduce the line spacing in multiline cells?

Does this solution with only makecell befit you? \documentclass{article} \usepackage{array, makecell} \renewcommand\cellset{\renewcommand\arraystretch{0.8}% \setlength\extrarowheight{...
user avatar
  • 260k
3 votes
Accepted

Make all lines of tables thicker

Second edit: if you prefer to use the classic tabular, \setlength{\arrayrulewidth}{5pt} before the array seems to do the trick too. Edit: following your comment below, here's a version that should be ...
user avatar
  • 839
2 votes

tabular: thicker lines

Here is what you can do with {NiceTabular} of nicematrix. \documentclass{article} \usepackage{nicematrix,tikz} \begin{document} \NiceMatrixOptions { custom-line = { letter = B, ...
user avatar
  • 25.1k
2 votes
Accepted

How to highlight the first column of Table?

I used the packages xcolor and colortbl to define a color Higlight and a new column type h. This produces: Here is the code: \documentclass[12pt]{report} \usepackage{xcolor,colortbl} \definecolor{...
user avatar
  • 895
2 votes
Accepted

Colorcells and Rowcolor in spreadtab

It is quite easy to customize styles of tables while using spreadtab if you would like to use tblr environment of tabularray package: \documentclass[a4paper,14pt]{extreport} \usepackage{spreadtab} \...
user avatar
  • 7,886
2 votes
Accepted

Figure with two graphics and one matrix

You can exploit the fact that a tabular is vertically centered with respect to the baseline (actually, not exactly, but it's not so important). \documentclass{article} \usepackage{amsmath} \usepackage{...
user avatar
  • 986k
1 vote

Tabular environment malfunctioning: incorrect order and whitespace

With use of the tabularray and adjustbox package, font size small and without resizing of table: \documentclass{article} \usepackage[margin=25mm]{geometry} \usepackage{tabularray} \usepackage[export]{...
user avatar
  • 251k
1 vote

Error in making table with multiple columns

I suggest you employ a matrix environment (provided by the amsmath package) in an unnumbered displayed equation instead of a tabular environment embedded in a center environment. \documentclass{...
user avatar
  • 435k
1 vote

Figure with two graphics and one matrix

With tabularray and adjustbox packages: \documentclass{article} \usepackage{amsmath} \usepackage[export]{adjustbox} \usepackage{tabularray} \begin{document} \begin{figure} \centering \begin{tblr}{...
user avatar
  • 251k
1 vote
Accepted

Text width inside a table

I suggest the macro \twoboards with six parameters: title,boad,moves of left image and title,board,moves of right image. We need not any tabular environment. Each \twoboards is \centerline with two ...
user avatar
  • 52.5k
1 vote

Text width inside a table

You didn't properly set your tabular and margins. I define a new column type P which has fix width and center alignment. I set the margin to 2cm(top,bottom,left and right) and showed the page frame ...
user avatar
  • 1,970
1 vote
Accepted

Generate tabularray and compute sub-result for each row using functional library

To avoid potential naming conflicts with commands in LaTeX kernel and other packages, functional package has changed its naming scheme for functions from \UpperCamelCase to \lowerCamelCase since ...
user avatar
  • 7,886
1 vote
Accepted

How to position bullet on top of tabular?

Use \begin{tabular*}{...}[t] to top align a tabular
user avatar
1 vote
Accepted

Latex3 floating point calculations in longtblr (tabularray)

Although I think it would be better to use functional library to do programming inside tabularray tables, you could still use expl3 if you want. You may compare this answer with another answer for a ...
user avatar
  • 7,886

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