10 votes
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 ...
user avatar
7 votes

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 ...
user avatar
  • 87.4k
5 votes
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. \...
user avatar
  • 4,220
4 votes
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[...
user avatar
4 votes

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 ...
user avatar
  • 1,522
4 votes

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 ...
user avatar
  • 257k
3 votes
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*} ...
user avatar
  • 20.4k
3 votes

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 ...
user avatar
  • 443k
3 votes
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, &...
user avatar
2 votes
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\@...
user avatar
  • 54.1k
2 votes

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}{...
user avatar
  • 70.7k
2 votes
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{...
user avatar
  • 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, /...
user avatar
  • 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)...
user avatar
  • 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 ...
user avatar
  • 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, ...
user avatar
  • 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 ...
user avatar
  • 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} \...
user avatar
  • 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|&= ...
user avatar
  • 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 ...
user avatar
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/....
user avatar
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[]{% ...
user avatar

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