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
  • 297k
12 votes
Accepted

How to put vertical line among the words?

Note that | does not work with default OT1 font encoding (it comes out as an em dash). Comment out my \usepackage[T1]{fontenc}, recompile, and see. The most versatile would be \mybar, which you ...
Steven B. Segletes's user avatar
12 votes
Accepted

Space around vertical bar/pipe

\mid is the command for | used as an infix operator. Note also big\{ should be \bigl\{ and \big\} should be \bigr\} or you lose the open/close spacing on the delimiters, however unfortunately you ...
David Carlisle's user avatar
12 votes
Accepted

Commenting an equation with a vertical bar

Yes, it's possible: \documentclass{article} \usepackage{amsmath,array} \begin{document} \begin{equation*} \renewcommand{\arraystretch}{1.2} \setlength{\arraycolsep}{0pt} \begin{array}{ >{\...
egreg's user avatar
  • 1.1m
11 votes
Accepted

Put vertical rotated text within minipage environment

Here's a tikz option that might suit. (Updated for US Letter size paper.) \documentclass{article} \usepackage[landscape,margin=0cm]{geometry} \usepackage{mathtools} \usepackage{amssymb,amsthm} \...
David Purton's user avatar
  • 25.9k
9 votes
Accepted

Vertical lines only in certain columns

Here it is. I slightly simplified and improved your code: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{amsmath} \usepackage{booktabs, caption, multirow, ...
Bernard's user avatar
  • 271k
9 votes

"Stairs" in Latex table, (some kind of vertical \cline)

You can use \multicolumn{1}{c|}{\vdots} in the cells that need a vertical line
David Carlisle's user avatar
9 votes

"Stairs" in Latex table, (some kind of vertical \cline)

With {NiceArray} of nicematrix. \documentclass{article} \usepackage{nicematrix,tikz} \begin{document} $\begin{NiceArray}{|cccc|}[cell-space-top-limit=3pt] \Hline P_{11} & P_{12} & P_{13} &...
F. Pantigny's user avatar
  • 40.5k
8 votes
Accepted

How to get rid of empty vertical space in a table?

With use of the itemize's options after, before and nosep provided by enumitem package. I also would have equal width of all columns: \documentclass[a4paper, 11pt]{report} \usepackage[utf8]{inputenc} ...
Zarko's user avatar
  • 297k
8 votes

Is there a vertical bar as long as the integral sign?

Define \def\myvert{\biggr|{\vphantom{\int}}} and use \myvert_{..}^{..} instead \biggr|_{..}^{..}. Edit: If you want to have equal size of the bar and the \int then you can define it as \vrule: \def\...
wipet's user avatar
  • 74.5k
7 votes

Vertical lines only in certain columns

The following may be what you're looking for. \documentclass[ngerman]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{babel,booktabs,siunitx} \usepackage[skip=0.333\...
Mico's user avatar
  • 507k
7 votes
Accepted

Is a \vspace placed on the end of a paragraph a bad LaTeX coding?

if you use \vspace at the end of a paragraph it probably gives the same visual result as using it in the following vertical list but via a wildly different and more involved code path. If you use ...
David Carlisle's user avatar
7 votes

How to get rid of vertical white lines in a table?

I suggest you get rid of all vertical lines and most \hline instructions. The mysterious whitespace next to some vertical lines will disappear automatically. Plus, the vertical lines aren't needed ...
Mico's user avatar
  • 507k
6 votes

Automatically set length of vertical bars with \left and \right

You should use \DeclarePairedDelimiter command from mathtools to define an \abs command. Doing so, you obtain a \abs* version which adds an implicit \left \right pair and detects the inner \abs. ...
Bernard's user avatar
  • 271k
6 votes
Accepted

Remove vertical space between lines

You can add \setlength\lineskip{0pt} hopefully your real example is some special codes not human readable text!
David Carlisle's user avatar
6 votes
Accepted

Divider between two specific table columns?

I would assume your current code contains the following directive: \begin{tabular}{|c|c|c|c|c|c|c|c|} or maybe \begin{tabular}{|*{8}{c|}} Just change that directive to \begin{tabular}{cccc|cccc} ...
Mico's user avatar
  • 507k
6 votes
Accepted

tabu m-column vertical alignment not working after package updates

UPDATE 2019-01-14 A workaround for this issuse has been included in tabu 2.9 which has been submitted to ctan. tabu probably needs an update to match the latest array, but you can force the use of ...
David Carlisle's user avatar
6 votes

How can I make a curved graph in Tikz and vertical lines from the x-axis to that graph?

As I mention in a comment, a ycomb plot can be used for this. Here are two examples, the first a modified version of marmot's code, the second a more verbose (and probably more complicated than it ...
Torbjørn T.'s user avatar
6 votes
Accepted

context: line between margin and text

You could use some MetaFun. From within an overlay you can access the different fields of the page. In response to the comments: how can the horizontal line go up to direct under the header (...
Henri Menke's user avatar
5 votes
Accepted

Vertical fill with horizontal line

Something like this? \documentclass[12pt]{article} \usepackage[margin=1in]{geometry} \usepackage{lipsum} \usepackage{fillwith} \fillwithset{style=rule} \begin{document} \noindent \parbox[t][\...
cfr's user avatar
  • 199k
5 votes
Accepted

Vertical Centered Horizontal Line on the same line as text?

To also specify the depth you can add \@depth<some length> right after \@height#1 (or right before, the order does not matter). A version of \vhrulefill that also lets you specify the depth as #...
Circumscribe's user avatar
  • 10.9k
5 votes

How should I add a bit of space below a substack in an overset?

Use some phantom space, such as \mathstrut: \documentclass{article} \usepackage{amsmath} \newcommand{\diff}{\mathop{}\!d} \begin{document} \[ \int_Y \biggl( \int_X f(x,y)\diff y\biggr)\diff x \...
egreg's user avatar
  • 1.1m
5 votes
Accepted

How to get rid of vertical white lines in a table?

Without makecell but with a modified m type column for the first column, the small white space there disappears: \documentclass[11pt, a4paper]{scrbook} \usepackage[left=27.5mm,right=16mm,top=30mm,...
leandriis's user avatar
  • 62.6k
5 votes

Box a matrix row

You can use nicematrix. This package will create a node under each cell of the matrix and then, you can draw what you want with Tikz. \documentclass{article} \usepackage{nicematrix} \usepackage{tikz} ...
F. Pantigny's user avatar
  • 40.5k
5 votes
Accepted

Forest Tikz text alignment vertical

I am not familiar with forest package, hence my answer may contain non-standard practices and even mistakes. Note The option node options={text width=3cm, align=center, anchor=south}} is added. The ...
muzimuzhi Z's user avatar
  • 26.5k
5 votes
Accepted

Centering text vertically in table

With the help of cellspace for the spacing above and below the image and valign=c from the adjustbox package to vertically center the contents: \documentclass[12pt]{article} \usepackage{graphicx} % ...
leandriis's user avatar
  • 62.6k

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