1

I want to have a \left.\right| in a mathematical formula in a bold format (just the | line should be bolded, not the entire formula) and I didn't find a way. Any suggestion?

\documentclass{article}
\begin{document}
$f(a,\left.\{b\}\right|c)$
\end{document}
3
  • 1
    Possible duplicate of Bold brackets in equations
    – magula
    Oct 2, 2017 at 22:18
  • @magula it's style does not change by \bm at all.
    – CLAUDE
    Oct 2, 2017 at 22:24
  • 2
    @CLAUDE: Here is the difference without/with \bm: image The "style" does change. Not sure whether it's sufficient for your needs though. You may have to add more detail to your question.
    – Werner
    Oct 2, 2017 at 22:28

1 Answer 1

7
\documentclass{article}
\usepackage{amsmath}

\DeclareFontShape{OMX}{cmex}{b}{n}{ <-> cmexb10 }{}
\SetSymbolFont{largesymbols}{bold}{OMX}{cmex}{b}{n}

\DeclareSymbolFont{boldsymbols}{OMS}{cmsy}{b}{n}
\DeclareSymbolFont{boldlargesymbols}{OMX}{cmex}{b}{n}

\DeclareMathDelimiter{\boldvert}{\mathord}{boldsymbols}{"6A}{boldlargesymbols}{"0C}

\begin{document}

\begin{gather*}
f(a,\left.\{b\}\right\boldvert c)\\
\frac{a}{b}\Big\boldvert
\left.\frac{a}{b}\right\boldvert\\
f(a,\left.\{b\}\right| c)\\
\frac{a}{b}\Big|
\left.\frac{a}{b}\right|
\end{gather*}

\end{document}

enter image description here

You must log in to answer this question.

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