# Tag Info

## Hot answers tagged alignment

Accepted

### Why is the anchor=north west not working with a circle, but with a rectangle?

Well this is, because the north west anchor of the shape circle, which you are using to position the node, sits on the shape's border. As for the shape rectangle, the north west anchor also sits on ...
• 21.5k

### Why is the anchor=north west not working with a circle, but with a rectangle?

While Jasper Habicht already explained the cause for your problem (north west lies on the border), for a more flexible solution you can define separate anchors, like I did in the code below for corner ...
• 87.4k
Accepted

### automatic indentation by units in align environment

You can use \MoveEqLeft from mathtools. \documentclass{article} \usepackage{mathtools} \begin{document} \[ \begin{split} \MoveEqLeft xxxxxxxxxxxxxxxxx \\ & = xxx + xxx \\ & = xx + xxxxxx. \...
• 4,220
Accepted

### multicolumn with vertical line in array/tabular

This is another variant with the equals signs aligned. I used the nicematrix package with the cell-space-limits=4pt option to vertically expand the cells. % !TeX TS-program = pdflatex \documentclass[...
• 28k

### multicolumn with vertical line in array/tabular

Here's the solution based on array. In order to achieve the effect beginning from the 3rd row, you can make "Soit" be a part of the first column and remove space it would normally occupy to ...
• 1,522

### Correctly aligning equations on different lines

Do this automatically? Hm, this require quite complex code in which you should: measure width of your equations set in which ampersands are at equal signs, calculate difference between available ...
• 257k
Accepted

### Correctly aligning equations on different lines

Not fully automatic: but saves you the time of guesstimating the required offset: use two layers of align. Using \texttt{align}\fbox{ \begin{minipage}[t]{0.22\textwidth} \begin{align*} ...
• 20.4k

### automatic indentation by units in align environment

For the multirow equation at hand, you could place the & alignment symbol in front of f(x) instead of in front of \abs[\bigg]{...}. \documentclass{article} % or some other suitable document class ...
• 443k
Accepted

### How can I get these equations to align in \align?

Use an & between each equation, and an & at the aligment point (=) in each equation. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} [f_2,\phi](a)&=0, &...
• 673k
Accepted

### Error in table alignment

The problem is that the LaTeX macro \centerig redefines \\: \DeclareRobustCommand\centering{% \let\\\@centercr %% <<< this is re-definition of \\ \rightskip\@flushglue\leftskip\@...
• 54.1k

### Why is the anchor=north west not working with a circle, but with a rectangle?

This draws the circle first and positions everything else (background layer) relative to it. \documentclass[tikz]{standalone} \usetikzlibrary{calc,backgrounds} \newlength{\width} \setlength{\width}{...
• 70.7k
Accepted

### pgfplots — Align two separate plots by x-axes and align captions

This aligns the tikzpictures using [baseline=(...)], and aligns the captions by using a separate row. I used \makebox because the tikzpictures weren't fitting into the space given. \documentclass{...
• 70.7k
1 vote

### Problem aligning tikzpicture or caption (side by side) with subfloat and comma separator in xaxis

Use subfigure environment from subcaption package instead of subfig: \documentclass{article} \usepackage{subcaption} \usepackage{pgfplots} \usetikzlibrary{calc} \pgfplotsset{ compat=newest, /...
• 19k
1 vote
Accepted

### How to avoid broken vertical alignment in tabularray cells when some of the cells include images or pictures like tikz pictures?

This happens whenever a line in the second column has unusual height, and a tikzpicture usually qualifies, see the first example below. You can shift the baseline to the picture center (second example)...
• 1.0m
1 vote

### Math mode: square bracket strange behaviour

That's the expected behavior: the brackets are symmetric with respect to the formula axis, which is the imaginary line where the main fraction line sits on. I guess that this is some step during ...
• 1.0m
1 vote
Accepted

### formula width in double column paper

First of all you should use a Times compatible font also for math and also wrap your long names in \mathit or similar. Second, you need to split the long top line. Using cases is out of the question, ...
• 1.0m
1 vote

### formula width in double column paper

As Zarko commented your equation wouldn't fit even if you use double-column. The first option, which I think is the best, is to use shorter variable names. If you must use the formula exactly as it ...
• 20.4k
1 vote

### multicolumn with vertical line in array/tabular

In your (particular) case you can use simple array, and top and bottom aligned math environments: \documentclass[12pt,a4paper]{book} \usepackage[margin=2.50cm]{geometry} \usepackage{array} \...
• 257k
1 vote

### Why does alignat not work here?

How about this layout, obyained with \mathrlap, from mathtools? \documentclass[journal]{IEEEtran} \usepackage{mathtools,amsfonts} \begin{document} \begin{alignat}{2} |x|&= ...
• 262k
1 vote

### Why does alignat not work here?

Your document produces ! Extra alignment tab has been changed to \cr. <template> $\hfil$\$\endtemplate As cases only allows one & per row. After any error the PDF is not intended to be ...
• 673k
1 vote
Accepted

### Alignment of pgfplot inline legend in body text and caption

I found that you can name the legend with legend style={name=leg} (or whatever name you like), which allows you to align its inline representation to its own base using every legend to name picture/....
• 21.5k
1 vote

### Nesting boxes from the outside in

Maybe this?? \documentclass{article} \usepackage{listofitems} \newlength\maxht \newlength\maxdp \newcommand\cbox[1]{% \readlist*\mylist{#1}% \maxht=0pt \maxdp=0pt \foreachitem\z\in\mylist[]{% ...

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