7

MWE

\documentclass{article}
\usepackage{mathtools}

\begin{document}
Le signe $(-1)^{i+j}$ suit un motif en damier :
\(
\begin{bsmallmatrix}
+ & - & + & - & \cdots \\
- & + & - & + & \cdots \\
+ & - & + & - & \cdots \\
- & + & - & + & \cdots \\
\vdots & \vdots & \vdots & \vdots & \ddots
\end{bsmallmatrix}
\)
\end{document}

enter image description here

Questions

  1. There appears to be some horizontal empty space around the matrix. How can I remove or reduce it?

  2. It seems that \cdots is not as bold as \vdots and \ddots. Is this actually the case? If so, is there a way to make the various dots visually consistent?

THANKS A LOT!

2
  • I know that one can reduce the space using vspace. But I ask about a less manual solution. Commented Feb 24 at 17:20
  • 1
    Does tex.stackexchange.com/a/573001/4427 help? Commented Feb 24 at 17:27

2 Answers 2

6

Maybe you could consider loading also the package unicode-math

Example

\documentclass{article}

\usepackage{mathtools}
\usepackage{unicode-math}

\begin{document}
Le signe $(-1)^{i+j}$ suit un motif en damier :
\(
\begin{bsmallmatrix}
+ & - & + & - & \cdots \\
- & + & - & + & \cdots \\
+ & - & + & - & \cdots \\
- & + & - & + & \cdots \\
\vdots & \vdots & \vdots & \vdots & \ddots
\end{bsmallmatrix}
\)
\end{document}
3

You can use “scalable” dots.

\documentclass{article}
\usepackage{mathtools}

\makeatletter
\NewDocumentCommand{\svdots}{}{\mathord{\text{\svdots@}}}
\newcommand{\svdots@}{%
  \sbox\z@{$X$}%
  $\vcenter to \ht\z@{\hbox{.}\vss\hbox{.}\vss\hbox{.}}$}
\NewDocumentCommand{\sddots}{}{\mathord{\text{\sddots@}}}
\newcommand{\sddots@}{%
  \sbox\z@{$X$}\sbox\tw@{$\mskip-\medmuskip\cdots\mskip-\medmuskip$}%
  $\;\vcenter to \ht\z@{
    \hbox to\wd\tw@{.\hss}\vss
    \hbox to\wd\tw@{\hss.\hss}\vss
    \hbox to\wd\tw@{\hss.}}\;$%
}
\makeatother

\begin{document}

$\begin{bsmallmatrix}
+ & - & + & - & \cdots \\
- & + & - & + & \cdots \\
+ & - & + & - & \cdots \\
- & + & - & + & \cdots \\
\svdots & \svdots & \svdots & \svdots & \sddots
\end{bsmallmatrix}
$

\end{document}

output

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.