1

I am working on brackets.

1) I want to make a smaller distance between curly brackets like this $\{\!\!\{A, B\}\!\!\}$ in equation

\begin{equation} \left\{\left\{\begin{array}{l} A \\ B \end{array}\right\}\right\} \end{equation}.

The size problem.

I am using package stmaryrd.

How can I do this?

2) Also, I would like to make matrices with brackets llfloor, rrfloor and llceil, rrceil:

$\left\llfloor \begin{matrix} A \\ B \end{matrix} \right\rrfloor$ and

$\left\llceil \begin{matrix} A \\ B \end{matrix} \right\rrceil$,

but the problem is that both brackets are smaller than A and B in column.

The problem with brackets.

With non-double floor and ceiling, it is in the same lenght:

The problem with brackets.

Here is the full document:


\documentclass{article}

\usepackage{amssymb}

\usepackage{amsmath}

\usepackage{amsthm}

\usepackage{amsfonts}

\usepackage{amscd}

\usepackage{stmaryrd}

\newcommand{\bbrack}[1]{
    \left\llbracket \begin{matrix} #1 \end{matrix} \right\rrbracket}
\newenvironment{bbsmallmatrix}{ 
    \left\llbracket\begin{smallmatrix}}{
    \end{smallmatrix}\right\rrbracket}

\begin{document}

    \begin{equation} 
        \bbrack{ A\\ B}
    \end{equation}
    \begin{equation}
        \left.\llfloor \begin{matrix} A \\ B \\ \end{matrix} \right.\rrfloor
    \end{equation}
    \begin{equation}
        \left\lfloor \begin{matrix}  A \\ B    \\ \end{matrix} \right\rfloor 
    \end{equation}

\begin{equation}
\left\{\left\{\begin{array}{l}
    A \\
    B
\end{array}\right\}\right\}
\end{equation}

\end{document}

What can I do?

Thanks a lot.

11
  • please provide an example that reproduces the error, not disconnected fragments. You can only use a command with \left if it is declared as a character defined as extensible in the font. so it depends how you have defined \llfloor Aug 26, 2023 at 16:01
  • I have managed to fix the error problem by putting . before \llceil or \rrceil. But LaTeX still generates the brackets smaller than A and B (I have added a print screen to my question).
    – Alezigl
    Aug 26, 2023 at 16:40
  • putting . is same as removing \left (but with worse spacing)` Aug 26, 2023 at 16:41
  • you still have not provided a test document, I don't know of any font with an extendable character |⌊ Aug 26, 2023 at 16:44
  • Thank you. I am glad that the error porblem is fixed. Do you know what to do to make floor and ceil on both sides the same lenght as A and B in column? With non-dobule floor and ceil it is the same lenght (I have also added a picture to compare). Thanks a lot.
    – Alezigl
    Aug 26, 2023 at 16:48

1 Answer 1

2

enter image description here

\documentclass{article}

\usepackage{amsmath}
\begin{document}

$\left\lfloor\!\!\!\left\lfloor\!
\begin{matrix}
  1\\2\\3
\end{matrix}
\!\right\rfloor\!\!\!\right\rfloor
$
\end{document}
1
  • 1
    Thank you very much!
    – Alezigl
    Aug 26, 2023 at 17:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .