Skip to main content

New answers tagged

3 votes

Box taking exactly N \baselineskip

Using David's idea, I create n horizontal boxes. In the last one I insert a zero height \vbox, which in turn contains the material to be vertically and horizontally centered. The asterisks are those ...
egreg's user avatar
  • 1.1m
5 votes
Accepted

Box taking exactly N \baselineskip

Positioning vertical boxes can be tricky, it's easier to use horizontal boxes, which more naturally stay on the line grid. \documentclass[twocolumn]{memoir} \usepackage{lipsum} \parindent=0pt \...
David Carlisle's user avatar
2 votes
Accepted

How can I avoid that vskip after {equation} and after {enumerate} add up?

You're forgetting to set \parsep to zero. The label can also be simplified; and ref should be set. \documentclass[ onecolumn, nofootinbib, aps, prd, preprintnumbers, 11pt, ...
egreg's user avatar
  • 1.1m
2 votes

Vertical centering of math in a table

I have a slight vertical centering issue This issue that arises in your table is actually a self-inflicted wound[!]. It is caused by the fact that you use \hline directives, which provide absolutely ...
Mico's user avatar
  • 513k
3 votes

Vertical centering of math in a table

With tblr oftabularray package: \documentclass{article} \usepackage{tabularray} \begin{document} \[ \begin{tblr}{hlines, vlines, colspec = {*{2}{Q[c,mode=dmath]}}, rows =...
Zarko's user avatar
  • 299k
4 votes
Accepted

Vertical centering of math in a table

With {NiceTabular} of nicematrix and its key cell-space-limits. \documentclass{article} \usepackage{mathtools} \usepackage{nicematrix} \begin{document} \begin{center} \begin{NiceTabular}{w{c}{1.5cm}...
F. Pantigny's user avatar
  • 42.4k
3 votes

Vertical centering of math in a table

I'd not try to set \arraystretch, nor to use p columns. \documentclass{article} \usepackage{amsmath} \usepackage{array} \begin{document} \[ \begin{array}{ | >{\displaystyle\vphantom{\Bigg|}} w{...
egreg's user avatar
  • 1.1m

Top 50 recent answers are included