Skip to main content
37 votes
Accepted

Vertical centering of all columns in \tabularx environment

It seems that addition of \renewcommand\tabularxcolumn[1]{m{#1}}% for vertical centering text in X column in your preamble is what you looking for: \documentclass{article} \usepackage{geometry} \...
Zarko's user avatar
  • 300k
33 votes

Split itemize into multiple columns

Use multicol. If your items do not divide evenly into each column, add \item[\vspace{\fill}] to the end of your list to align the items. The multicol package solution from AboAmmar works well if your ...
ning's user avatar
  • 501
24 votes
Accepted

How to put 6 images in 3 columns-2 rows?

One more suggestion: make figure content centered with use of \centering between sub figures insert \hfil purpose of \quad is not clear, let remove it centering of subfigure content is surplus. ...
Zarko's user avatar
  • 300k
16 votes
Accepted

Specifying minimal (not fixed) width in tabular

See ADDENDUM and BONUS First, the original approach. Here is a \newcolumntype solution, except that, for a reason that I should know but I don't, it won't work in the last column of the tabular. I'...
Steven B. Segletes's user avatar
14 votes

Creating two columns in beamer

Also note that the graphics need not be scaled down as much in the second column. The column becomes a minipage, so \textwidth is already adjusted to its width. \documentclass[demo]{beamer} \begin{...
Miklós Koren's user avatar
14 votes

Specifying minimal (not fixed) width in tabular

This could be done by placing a row of 0pt \rules with a negative row separator (for proper vertical alignment). In the example, columns 1 and 2 have minimum width 2cm, while columns 3 and 4 have ...
Sandy G's user avatar
  • 46.6k
12 votes

Creating two columns in beamer

The "columns" feature of Beamer (other answers above) lets you customize the layout and the breaking point. However if you want to let the text flow or you don't care about the exact layout, ...
alfC's user avatar
  • 14.5k
12 votes

Fixed column-width table with text left-aligned in cells

The version 2.4f of array has introduced new types of columns: w{...}{...} and W{...}{...}. The first argument is l, c or r and the second is the width of the column. With W, you have a warning if the ...
F. Pantigny's user avatar
  • 43.2k
12 votes

Column and row padding in tables

I needed it for only one specific table and instead of changing how it works through the entirety of document I found that doing the following suited my needs: \begin{table} \centering {\def\...
Zeliax's user avatar
  • 221
12 votes

How to add line separators between columns in Latex table?

Using vertical lines to provide visual structure to an otherwise little-organized table is a decidedly unsatisfactory way to go. Instead of using vertical rules, do organize the header material more ...
Mico's user avatar
  • 514k
11 votes
Accepted

Applying a command to a whole column spawning "\ignorespaces"

Usually, LaTeX adds \ignorespaces at the begin of a cell and \unskip at its end to automatically remove spaces at the begin and end of the cell contents. The example loads package collcell, but does ...
Heiko Oberdiek's user avatar
11 votes
Accepted

What does '>' do when used in the context of columns?

>{stuff} Just inserts stuff at the start of the cell so if the column is >{stuff}p{3cm} then it works as if the column was p{3cm} but every cell in that column started with stuff. it is often ...
David Carlisle's user avatar
10 votes

Dealing with very long table - split into columns?

I used minipage and vdots and got the effect I wanted: \documentclass[11pt]{article} \usepackage{booktabs} \begin{document} \begin{table} \caption{Your Caption} \begin{minipage}{0.5\textwidth} \...
Charles Clayton's user avatar
10 votes
Accepted

Beamer - diagrams of boxed text

You are right, with tikz is more simple to drawn your relations: \documentclass[aspectratio=169]{beamer} \usepackage{lmodern} \usepackage{tikz} \usetheme{Boadilla} \usepackage[overlay]{textpos} \...
Zarko's user avatar
  • 300k
10 votes

How to split the text into two columns that both have a different width?

A simple minipage solution might be more suitable in your case if you don't require page breaks (you didn't mention this as a requirement in your question), otherwise you can have a look at the ...
Troy's user avatar
  • 13.8k
9 votes
Accepted

ConTeXt: Complex multicolumn layout

Overview As noted elsewhere, columnsets cannot be mixed with regular text. As such, the given approach will not work as expected. Also, mixedcolumns do not provide the ability for unequal columns. ...
Dave Jarvis's user avatar
9 votes
Accepted

How to place enumerations in rows, not columns in ConTeXt?

I asked a very similar question on the list some time ago. This could be what you look for, or at least put you in the right direction: \starttext \startitemize[a,horizontal,five,packed,broad] ...
mickep's user avatar
  • 9,315
9 votes
Accepted

Issue with using \onecolumn with ReVTeX

revtex disables \onecolumn use \onecolumngrid
David Carlisle's user avatar
8 votes

Column and row padding in tables

It’s easy peasy to set column and row padding in tables with tblr environment of the new LaTeX3 package tabularray: \documentclass{article} \usepackage{tabularray} \begin{document} \SetTblrInner{...
L.J.R.'s user avatar
  • 11.3k
8 votes

Column and row padding in tables

In standard latex tables I use \noalign{\smallskip} in front of the row that I want to have more space above. For example, I use this in lines that contain superscripts. This answer is for row ...
Christian Herenz's user avatar
8 votes
Accepted

How to add line separators between columns in Latex table?

just place the separator char in the tabular column definition: cc|ccc|cccc
Timothy Truckle's user avatar
8 votes
Accepted

The text is pushed down when there is a picture in the other column

From the beamer user guide section 12.7: t will cause the first lines of the columns to be aligned. Default if global option t is used. T is similar to the t option, but T aligns the tops of ...
samcarter_is_at_topanswers.xyz's user avatar
8 votes
Accepted

Beamer center vertical alignment of two columns

It seems itemize inserts some spacing above the environment, just as center does. A fix for the example you've provided is to put the figure in a center environment. \documentclass{beamer} \begin{...
erik's user avatar
  • 12.7k
8 votes
Accepted

Force table column to be zero width

You have to use a box of 0pt width for this cell with 2. Also, you need to add @{\hspace{-.5\arrayrulewidth}} and @{\hspace{-.5\arrayrulewidth}} around this column specification. The reason for the ...
AboAmmar's user avatar
  • 46.7k
8 votes

How to format an entire column in math mode using \mathrm

Use a specialized package for chemistry, for instance mhchem, that also eases input. Together with collcell you get what you want. \documentclass{article} \usepackage{booktabs} \usepackage[version=4]{...
egreg's user avatar
  • 1.1m
8 votes

Specifying minimal (not fixed) width in tabular

Here's a way to do it using the collcell package. The idea is to measure the content of the cell and then add rules to make up the deficit where appropriate. I've made versions for c, r and l columns. ...
Alan Munn's user avatar
  • 220k
8 votes
Accepted

Column shading, alternative to xcolor package

With {NicaTabular} of nicematrix (≥ 4.0 2020-05-08), we have tools to color cells, rows and columns before the rules are drawn. The rules won't vanish in the PDF viewers at some levels of zoom. \...
F. Pantigny's user avatar
  • 43.2k
7 votes
Accepted

text dimension in beamer

The good news is: it seems, as if you did set up your columns and your minipages correct. The bad new is: you didn't take care of suppressing unwanted white spaces and you forgot that the fbox ...
Jan's user avatar
  • 5,323
7 votes
Accepted

Beamer: top align of columns with itemize and image?

as you have already been told in comments: there is no need to use multicols with beamer -- it has its own column environment. enumitem does not play well with beamer. As far as I can see, you are ...
samcarter_is_at_topanswers.xyz's user avatar
7 votes
Accepted

Same (multi) columns width with different margins in Beamer

Two columns of .5\textwidth each don't fit in the normal text width as beamer adds some space between the columns(*). Either use onlytextwidth or smaller columns or even better both. \documentclass{...
samcarter_is_at_topanswers.xyz's user avatar

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