latexmathematical-typesetting

barbed wire parenthesis in LaTeX


How to typeset in LaTex barbed wire brackets as used to denote paramorphism in the paper "Functional Programming with Bananas, Lenses, Envelopes and Barbed Wire"?


Solution

  • Using answers to this question I was able to come up with:

    \DeclareMathOperator{\lbarb}{\mathrel{\ooalign{\hss(\hss\cr\{}}}
    \DeclareMathOperator{\rbarb}{\mathrel{\ooalign{\hss)\hss\cr\}}}}