In many equation editors (e.g. MS Word 2007 and Daum Equation Editor), there's a double square bracket. Is there a TeX equivalent for [[, ((, )), and ]]?
4 Answers
If you only want then occasionally, perhaps you can just roll-your-own by using a little bit of negative space, like this
Maths in double brackets $[\![ e=mc^2 ]\!]$ or double parentheses $(\!( a^2 )\!)$.

Note that they will not scale nicely with \left and \right because of the fixed negative space.
If you'll be using them a lot, try using a package like stmaryrd that defines commands for these symbols, as recommended in the comments.
\documentclass{article}
\usepackage{stmaryrd}
\begin{document}
\begin{equation}
\llbracket 1 \rrbracket \quad
\llparenthesis 2 \rrparenthesis \quad
\llceil 3 \rrceil \quad
\llfloor 4 \rrfloor \quad
\end{equation}
\end{document}

Note especially the fancier display for double parentheses.
As a side note, DeTeXify is getting better and better at recognizing these symbols, so you can check there for more package-based options.
-
2thanks. for double parentheses I prefer the inner line be a curve to some extent like this one i.sstatic.net/bVfPz.png. however \llparenthesis is good.user28592– user285922013-04-08 09:51:44 +00:00Commented Apr 8, 2013 at 9:51
-
Another option (from Detexify) is
\textlbrackdbland\textrbrackdblfrom\usepackage{textcomp}. My markdown editor includes this package but notstmaryrdwhich is handy!Oliver– Oliver2021-07-31 03:14:54 +00:00Commented Jul 31, 2021 at 3:14
These commands are \lBrack/\rBrack, and either \lParen and \rParen or \llparenthesis and \rrparenthesis in unicode-math or several 8-bit packages, including stix, stix2 and fdsymbol. In Unicode, you can also use the symbols ⟦, ⦅, ⦇, etc.
You might find the \DeclarePairedDelimiter command from mathtools very convenient, especially if you need to specify a size.
\documentclass{article}
\usepackage{mathtools}
\usepackage{newcomputermodern} % Loads unicode-math
\DeclarePairedDelimiter\Brackets{\lBrack}{\rBrack}
\DeclarePairedDelimiter\Parens{\lParen}{\rParen}
\begin{document}
\begin{gather*}
\lBrack x \rBrack \quad \lParen y \rParen \quad
\llparenthesis z \rrparenthesis \\
\Brackets{u} \quad \Parens{v}
\end{gather*}
\end{document}
-
\lParenand\rParenlook much nicer than\rrparenthesisand\rrparenthesis!Maëlan– Maëlan2022-05-13 18:17:23 +00:00Commented May 13, 2022 at 18:17
In the case that you would have a conflict between stmaryrd and another package, or that you dislike some redefinitions of symbols (such as \bigtriangledown), you may want to use the following line to import only the commands that you wish:
\usepackage[only,llbracket,rrbracket]{stmaryrd}
A version with logix package:
% engine = xelatex/luaLaTeX
\documentclass[12pt]{article}
\usepackage{logix}
\begin{document}
\[
\OpnBrktBar 1 \ClsBrktBar; \OpnParnBar 2 \ClsParnBar; \OpnDblCeil 3 \ClsDblCeil; \OpnDblFloor 4 \ClsDblFloor
\]
\end{document}


stmaryrdseems to have the symbols you're looking for.llparenthesis,llbracketfor example.