Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I mean something like this:

/   \
| x |
\   /

I looked up many related resources but failed.

share|improve this question
3  
There is U+27EC and U+27ED (⟬ ⟭) ? –  David Carlisle May 5 at 14:08
    
@DavidCarlisle Thank you, but it seems these glyphs are not a part of standard fonts. How can I generate these symbols by pdflatex? –  SaltyEgg May 5 at 14:38
1  
They are in the stix fonts so you could use xelatex or the new pdflatex support for the stix fonts. –  David Carlisle May 5 at 14:41
    
@DavidCarlisle Thanks –  SaltyEgg May 5 at 14:41

2 Answers 2

up vote 13 down vote accepted

Build your own... I should add that \roundrule.sty is not a CTAN package, but found at Is there such a thing as a `\mathrule`? (rounded endcaps). If one doesn't care about rounded endcaps, \rule can be substituted for \roundrule

EDITED by popular demand.

\documentclass{article}
\usepackage{roundrule}
\usepackage{graphicx}
\usepackage{stackengine}
\usepackage{scalerel}
\def\rlwd{.4pt}% \rule width
\def\lhexbrace{\kern1pt%
\setstackgap{S}{0pt}\def\stackalignment{l}
\ThisStyle{\scalerel*{%
  \stackunder[-\rlwd]{%
    \stackon[-\rlwd]{\roundrule{\rlwd}{4pt}}{\rotatebox{45}{\roundrule{4pt}{\rlwd}}}%
  }{\rotatebox{-45}{\roundrule{4pt}{\rlwd}}}%
}{\SavedStyle[}}}
\def\rhexbrace{%
\setstackgap{S}{0pt}\def\stackalignment{r}
\ThisStyle{\scalerel*{%
  \stackunder[-\rlwd]{%
    \stackon[-\rlwd]{\roundrule{\rlwd}{4pt}}{\rotatebox{-45}{\roundrule{4pt}{\rlwd}}}%
  }{\rotatebox{45}{\roundrule{4pt}{\rlwd}}}%
}{\SavedStyle[}}\kern1pt}
\begin{document}
$[ABC] \lhexbrace ABC\rhexbrace \lhexbrace xyz\rhexbrace  
\scriptstyle\lhexbrace xyz\rhexbrace
\scriptscriptstyle\lhexbrace xyz\rhexbrace$\bigskip

\setstackEOL{\\}
~~\raisebox{-8pt}{/}\kern-1pt\fbox{\Shortstack[l]{The Force is strong\\ with this one.}}\\
$\lhexbrace{\kern-3pt-}\mathsf{o}{-\kern-3pt}\rhexbrace$
\end{document}

enter image description here

With just a little more work,

\setstackEOL{\\}
~~\raisebox{-8pt}{/}\kern-1pt\fbox{\Shortstack[l]{The Force is strong\\ with this one.}}\\
$\lhexbrace{\kern-3pt-}\stackinset{c}{}{c}{}{\fboxsep=0pt\fboxrule=0.1pt%
\fbox{\scalebox{.05}{\Burns}}}{$\mathsf{o}$}{-\kern-3pt}\rhexbrace$

simpsons.sty, and a lot of zoom, the truth can be revealed:

enter image description here

share|improve this answer
4  
Best of all $\lhexbrace{\kern-3pt-}\mathsf{o}{-\kern-3pt}\rhexbrace$ will generate Darth Vader's "TIE advanced x1 fighter" –  Steven B. Segletes May 5 at 15:23
    
Thanks! It's more flexible than predefined symbols. –  SaltyEgg May 6 at 1:41
    
@SaltyEgg Don't forget, \rlwd can be adjusted to get the desired rule thickness. Thank you. –  Steven B. Segletes May 6 at 1:49

The symbols you are looking for are defined in unicode as (left side) U+27EC, U+2997, U+3014, and U+3018 and (right side) U+27ED, U+2998, U+3015, and U+3019.

If you are willing to switch to LuaLaTeX (or XeLaTeX, I guess), you could use the Asana Math Font. Just download the .otf file and insert it in C:\WINDOWS\Fonts.

% arara: lualatex

\documentclass{article}
\usepackage{unicode-math}
\setmathfont{Asana Math}
\begin{document}
black tortoise shell bracket
$\lblkbrbrak x\rblkbrbrak$

broken bracket
$\lbrbrak x\rbrbrak$

white tortoise shell bracket
$\Lbrbrak x\Rbrbrak$
\end{document}

enter image description here

The last version looks somehow broken to me. I will look, if I should report that somewhere.

Other possibilities are:

enter image description hereenter image description here

from XITS Math or:

enter image description hereenter image description here

from Cambria Math.

The vertical displacement comes from my screenshot. They will be well aligned when typeset.

Edit

The maintainer of Asana Math (Apostolos Syropoulos, who sends his kind regards and is happy for any feedback and issue report to asyropoulos at aol dot com) immediately fixed the white tortoise bracket. I installed the new opentype font and the xits opentype fonts and finally got the following 4 versions (Cambria Math needs to be purchased and therefore has not been tested by me):

enter image description here

% arara: lualatex

\documentclass{article}
\usepackage{unicode-math}
\begin{document}
\setmathfont{Asana-Math.otf}
$\lblkbrbrak x\rblkbrbrak$
$\lbrbrak x\rbrbrak$
$\Lbrbrak x\Rbrbrak$
\setmathfont{xits-Math.otf}
$\lblkbrbrak x\rblkbrbrak$
\end{document}
share|improve this answer
    
Thank you. But I think Steven's answer is more suitable for me. –  SaltyEgg May 6 at 1:44
3  
@SaltyEgg Yes, I understand. LuaLaTeX does not beat a Star-Wars-Simpsons-version in PDFLaTeX ;-( –  LaRiFaRi May 6 at 14:35

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.