Double Brackets in LaTeX (\llbracket x \rrbracket)
- LaTeX command
\llbracket x \rrbracket- Package
- Add to your preamble:
\usepackage{stmaryrd} - Mode
- Math mode only
Where it is used
Wraps an expression in double square brackets, for denotational semantics or integer intervals.
This bracket pair gives the semantic function in formal semantics, \llbracket x \rrbracket_\rho for the value of x in environment \rho, and the discrete interval \llbracket m, n \rrbracket in combinatorics. It also appears in the Iverson bracket and in jump notation for discontinuities in numerical PDEs, \llbracket u \rrbracket = u^+ - u^-. Because the glyph is not in the default fonts, the source needs a symbol package; check the package note on this page. The hollow strokes make it visually distinct from nested ordinary brackets.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\usepackage{stmaryrd}
\begin{document}
Double Brackets: $\llbracket x \rrbracket$
\[ \llbracket u \rrbracket = u^{+} - u^{-} \]
\end{document}Related symbols
- Parentheses
\left( x \right) - Double Bracket Right
\rrbracket - Square Brackets
\left[ x \right] - Double Bracket Left
\llbracket - Curly Braces
\left\{ x \right\} - Norm
\| x \|
Frequently asked questions
- How do I write Double Brackets in LaTeX?
- Type \llbracket x \rrbracket in math mode, for example $\llbracket u \rrbracket = u^{+} - u^{-}$. Load stmaryrd first with \usepackage{stmaryrd}.
- Which package do I need for \llbracket x \rrbracket?
- \llbracket x \rrbracket needs stmaryrd: add \usepackage{stmaryrd} to your preamble before the document starts.
- Can I use \llbracket x \rrbracket in text mode, or only in math mode?
- Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\llbracket x \rrbracket$ in running text.
최고의 AI LaTeX 편집기, Overleaf 대안
Octree는 15개 이상의 대학의 연구자들이 AI를 사용하여 논문을 더 빠르게 작성하도록 도움
- AI로 아름다운 TikZ 다이어그램 생성
- 이미지를 업로드하고 LaTeX로 원활하게 변환
- 논문 작성 및 서식에 대한 즉각적인 지원 받기