Skip to main content

New answers tagged

4 votes

Center a matrix in a box?

Matrix adds a \strut to each row, as shown in the following. You can remove the excess at the bottom with \vspace{-\dp\strutbox}, but no idea about the excess space at the top. \documentclass{article}...
John Kormylo's user avatar
  • 81.3k
9 votes
Accepted

Aligning equation at the \middle| of a \left ... \middle ... \right triple

If you don't mind using LuaLaTeX, then luamathalign can help. \AlignHere instead of & can be used inside \left\right blocks: \documentclass{article} \usepackage{amsmath} \usepackage{physics} \...
Sergei Golovan's user avatar
1 vote
Accepted

NiceMatrix and arXiv not up to date

\int_if_zero:nT is available in the L3 programming layer since 2023-05-17. If this is the only undefined control sequence, you could copy the definition to the document preamble: \ExplSyntaxOn \...
cabohah's user avatar
  • 14.2k
7 votes

Big zeros in block diagonal matrix

A suggestion with {bNiceMatrix} of nicematrix. \documentclass{article} \usepackage{nicematrix} \begin{document} \begin{equation} \begin{bNiceMatrix}[nullify-dots] \mathbf{D} & & \Block[r]...
F. Pantigny's user avatar
  • 43.2k
7 votes
Accepted

Big zeros in block diagonal matrix

You might check the documentation of nicematrix. Here's a “manual” implementation. \RequirePackage{fix-cm} \documentclass{article} \usepackage{amsmath} \newcommand{\topzero}{% \hspace*{\fill}% \...
egreg's user avatar
  • 1.1m
7 votes

Big zeros in block diagonal matrix

Something like this? (Note that I've changed bmatrix from a 4x4 to a 5x5 matrix.) \documentclass{article} \usepackage{mathtools,multirow} \begin{document} \begin{equation} \left[ \begin{array}{@{...
Mico's user avatar
  • 515k
3 votes

Big zeros in block diagonal matrix

OpTeX users have the \puttext macro: $$ \def\bigzero{\typoscale[3500/]0} \left[\matrix{ D & & & \puttext -1.5em -4.5ex \bigzero \cr & S_1 & & ...
wipet's user avatar
  • 75.7k
4 votes
Accepted

bmatrix* from mathtools results in huge column spacing when using [S]

The “naked” S column type uses a default format, but you can locally set it to fit your specific needs. \documentclass{article} \usepackage{mathtools} \usepackage[locale=DE]{siunitx} \begin{document}...
egreg's user avatar
  • 1.1m

Top 50 recent answers are included