New answers tagged

0 votes

Vertical alignment of tikzpicture in cell of a table

See if the following suggestion gives what you after: \documentclass[a4paper,12pt]{article} \usepackage{lipsum} \usepackage{tikz} \usetikzlibrary{fit, matrix} \newcommand\Semafor[3]% ...
Zarko's user avatar
  • 293k
0 votes

Make tabularx wrap text

Is the following maybe somewhat close to what you're trying to get done? Note that it's neither necessary nor helpful to bold-face every single cell in the left-hand column. \documentclass{article} \...
Mico's user avatar
  • 495k
0 votes

Multirow in tabularx

I'd put the words in the top row: it's the header, isn't it? Also consider that tabularx with no X column doesn't work. You want tabular* instead. I suggest also siunitx and to use a small trick for ...
egreg's user avatar
  • 1.1m
1 vote

Multirow in tabularx

I can't see a reason for using a tabularx environment for the material at hand, as (a) automatic line-breaking within the cells is neither necessary nor desired and (b) there's no need to force some ...
Mico's user avatar
  • 495k
0 votes

Multirow in tabularx

Your table body should be something like this: \begin{table*}[!ht] \centering %\scriptsize \begin{tabularx}{0.9\linewidth}{@{}XXcccccccc@{}} \toprule & &\multicolumn{4}{c}{\textit{...
Zarko's user avatar
  • 293k
2 votes
Accepted

Problem with 'already defined' in newenvironment

Never allocate registers in document environments, they are a fixed resource you just want to allocate them once, as the code is loaded. \documentclass[a4paper]{article} \usepackage[T1]{fontenc} \...
David Carlisle's user avatar
2 votes

how to align rows after manually forcing a line break in a tabularx environment

You insert content od cells in the last two columns into in the second row. What you after is simple achieve with use of the tblr table defined in the tabularray package. Using 7tblr` table, its code ...
Zarko's user avatar
  • 293k
3 votes
Accepted

how to align rows after manually forcing a line break in a tabularx environment

I suggest you change the column type of the left-hand column from l to p and set the column's width to the longest word ("Second") that will occur in that column. Then, use \newline to ...
Mico's user avatar
  • 495k
2 votes

Automatically adjust the width of a table column to the cell content

If I correctly understood your question, than you after something like this: For this table I use \f0otnotesize font size, tblr of tabularray package and for first and last cell at bottom use ...
Zarko's user avatar
  • 293k
2 votes
Accepted

Automatically adjust the width of a table column to the cell content

(I updated my answer after the OP stated that they need a continuous line to span columns 2 thru 5 in the first data row. Further update after learning the OP wants vertical rules as well.) No ...
Mico's user avatar
  • 495k
0 votes
Accepted

Aligning chemical + and arrow with vline of tabular

I found a better solution, using a new columntype d for centering the math symbols, and using a simple \vline when needed. The best option for centering the cell content is still the one suggested by ...
Nora NICOLAS's user avatar
2 votes
Accepted

tex4ht removes spaces in array column when including a package even if the package is not used

I've found this issue again, and I think you can fix this issue with this version of array.4ht: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % array.4ht 2023-...
michal.h21's user avatar
2 votes
Accepted

Balance tabular columns automatically?

Here is a solution with {NiceTabular} of nicematrix (≥ 6.25a). In that environment, you have a key columns-width=auto which requires all the columns to have the same width, except the X columns (which ...
F. Pantigny's user avatar
  • 38.5k
0 votes

align both left and right (justify) of tabularx environment

You might use \begin{tabular}{\textwidth}{@{}lX@{}} but I believe you can do better with enumitem. \documentclass[10pt]{book} \usepackage{newpxtext,newpxmath} \usepackage{enumitem} \linespread{1.05} ...
egreg's user avatar
  • 1.1m
0 votes

How To Color A Single Multicolumn Cell

You can easily create that table with {NiceTabular} of nicematrix. \documentclass{report} \usepackage[margin=1in,headheight=.5in,headsep=0.25in]{geometry} \usepackage{nicematrix} \begin{document} \...
F. Pantigny's user avatar
  • 38.5k

Top 50 recent answers are included