Hot answers tagged

7 votes
Accepted

Align equations in table

I suggest you ditch the two-column tabular approach and, instead, employ an alginedat{3} environment. I would also provide for a more open "look" by getting rid of all vertical lines and ...
  • 449k
5 votes

Align equations in table

I put the part of the equation to the left of the = in a separate r column and put a {} before the = sign to get proper spacing. I also did some cleanup. EDIT: Split the last equation over two lines. \...
4 votes

Align equations in table

With use of the tabularray and mathtools packages; with similar table design as in @Pieter van Oostrum answer (+1): \documentclass{article} \usepackage[ngerman]{babel} \usepackage[skip=0.33\...
  • 261k
2 votes

Centering a multi-column cell on top of two cells

I try to follow your table design. After removing all errors (among them dangerous redefined default column type c) in your code fragment and guessing how your document preamble can be, I construct ...
  • 261k
2 votes
Accepted

Centering a multi-column cell on top of two cells

First off, the instruction \newcolumntype{c}{>{\centering\arraybackslash}X} is extraordinarily dangerous, as the c column type is defined in and gets used in lots of places throughout the LaTeX ...
  • 449k
2 votes
Accepted

How to remove the last line of one table?

With tabularray (stretch=-1) and enumitem (nosep). %\documentclass[review]{elsarticle} \documentclass{article} %https://tex.stackexchange.com/questions/659691/how-to-remove-the-last-line-...
  • 852
2 votes

Cannot seem to force the caption to be on top of the table environement

As said in comments and answers, the {NiceTabular} should be put in the {table}. I post this answer to show how to simplify the Tikz code (a Tikz instruction with rectangle is enough). \documentclass{...
  • 27.9k
1 vote

How can I have white column line in a table?

It is fairly easy to achieve with tabularray \documentclass{article} \usepackage{xcolor} \usepackage{tabularray} \UseTblrLibrary{siunitx,booktabs} \begin{document} \centering \begin{tblr}{ ...
  • 3,092
1 vote

Centering a multi-column cell on top of two cells

If you look at your table, there's so much white space caused by long phrases. The simplest approach is to use something shorter, acronyms, and move their explanation somewhere else (to the title or a ...
  • 3,092
1 vote
Accepted

On moving a parbox generated by p{width} to the very right in a tabular

I didn't understand the same thing as Zarko (and I'm much slower). \documentclass{book} \usepackage{tabularray} %%%%%%%%%%%%%%%%%%%%% \begin{document} \begin{tblr} { ...
  • 852
1 vote

On moving a parbox generated by p{width} to the very right in a tabular

It is not clear, what is the width of the last table column: 2.5 cm as can be concluded from \multicolumn{1}{p{2.5cm}}{...} in your MWE, or the last two columns can have equal width So, below are ...
  • 261k
1 vote

How to remove the last line of one table?

If you load enumeitem, you can customise lists. The code below applies nosep with additional keys before=... and after=.... The former makes a list compact and the latter is to add code before and ...
  • 3,092
1 vote

change the background color of a multirow cell

Here is a solution with xcolor: \documentclass{article} \usepackage[frenchb]{babel} \usepackage[T1]{fontenc} \usepackage{multirow, makecell} \usepackage[svgnames, table]{xcolor} ...
  • 264k
1 vote
Accepted

Table contents not in good shape

Your table has errors in it. You only specify two columns, but most rows have four, and the first one has 5 since there's a & before the four column \multicolumn. Nothing will appear correctly ...
  • 38.5k
1 vote
Accepted

How can I center my table in the middle of a two-column document?

You haven't provided the full code to compile and test so I am guessing the annotation are moved left because table itself should be centred. First, the table* environment creates space of the full ...
  • 3,092
1 vote
Accepted

Large tables force page numbers into awkward locations

Page number is positioned according to this page layout. Since you are changed it by instruction \newgeometry{margin=1.5cm} it is placed according to new page layout. To have page number on the sam ...
  • 261k
1 vote

Cell content center alignment

I have decreased font size and add small space above rows. Also, it's possible to reduce width of the table. A number of decimal places e.g. in p-values can be reduced to 3, column names can be split ...
  • 3,092
1 vote

Cell content center alignment

A solution with the cellspace package, which lets you define minimal vertical spacings at the top and bottom of cells in columns with specifiers prefixed with the letter S (or C if you use siunitx, or ...
  • 264k
1 vote

Cell content center alignment

This is a standard problem with “ruled” (or “caged”) tables. In the code below I use \scriptsize to make the table fit and add height corresponding to the amount the letter “g” extends below the ...
  • 1.0m
1 vote

create table with clist: bad rendering

It appears that using a named function rather than inlining it solves the problem. \documentclass[a4paper,12pt]{article} \ExplSyntaxOn \NewDocumentCommand{\Table}{m}{ \clist_set:Nn \...

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