3

How to type the double bracket '{{b, a}}' in tex just as the picture below?

enter image description here

1
  • 3
    Welcome to TeX.SE! Commented May 29, 2023 at 1:08

2 Answers 2

5

You need negative spaces \! to get the braces close to each other. There may be a better way.

\documentclass{article}

\begin{document}

\( \{\!\!\{a,b\}\!\!\} \)

\end{document}

enter image description here

3

enter image description here

\documentclass{article}

\newcommand\doubleBrackets[1]{$\{\!\{ #1 \}\!\}$}

\begin{document}

These are double \{ \} brackets \doubleBrackets{b, a}.

\end{document}

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