I need another character as: a letter like "H" in \mathbold but with two hyphen/middle lines equally distant from top and bottom. Would you please let me know how to write it? Thanks.

Edit: I used the following code which is genuinely by the great answer of @Schrödinger's cathere. It is not perfect for this question, but fine.

\newcommand{\barH}{\stackMath\mathord{\stackinset{c}{0ex}{c}{-0.055ex}{\scalebox{0.67}{$ \relbar $}}{\mathbf H}}}
  • 2
    Are you sure that you don't want \mathbb{H}?
    – root
    Nov 1, 2019 at 0:45
  • Yes. I don not want \mathbb{H}.
    – Amin
    Nov 1, 2019 at 0:48
  • 1
    do you want it to look like H or more like $ A \mathrel{{\models}\!{|}} B$ ? Nov 1, 2019 at 0:52
  • @DavidCarlisle: The thing that I want looks like the one showed by the answer below but has some compilation problem.
    – Amin
    Nov 1, 2019 at 0:58
  • Editing the used solution into your question isn't really a thing on SE. If an answer is what you used, mark it as accepted and you're done. If the answer led you to something similar, you can still accept the answer, and perhaps even add your own answer with what you used exactly.
    – Jasper
    Nov 1, 2019 at 9:41

2 Answers 2


A slightly modified version of my previous answer, in which all parameters are stored in keys, allows you to do that: just add two bars on top of two Is at different heights. The syntax is now such that you can optionally modify all parameters on the fly, h is the relative height, w is the fraction of the width, s is a shift that can be positive or negative and line width is, well, the line width.

\pgfkeys{/bar/.cd,h/.initial=0.42,w/.initial=0.75,s/.initial=0pt,line width/.initial=0.7pt}
\pgfkeysvalueof{/bar/line width}}}\hspace*{-\the\wd0}#2}

enter image description here

  • Thanks. But this time it has some compilation problem. It does not proceed. Just shows the rounding cycle shape.
    – Amin
    Nov 1, 2019 at 0:56
  • 1
    @Amin I am sorry to hear this. I tested it on two different computers, both of which have TeXLive2019 on it. On both it works fine. What does the log file say?
    – user194703
    Nov 1, 2019 at 1:10
  • It does not say anything. Mine is also TexLive 2019.
    – Amin
    Nov 1, 2019 at 1:11
  • 1
    @Amin You did not, by chance, forget \end{document}? This gives these symptoms.
    – user194703
    Nov 1, 2019 at 1:13
  • No. Every other thing is fine. As I remove that part it works.
    – Amin
    Nov 1, 2019 at 1:17

Did you see an example somewhere?

Detexify yields nothing (with my drawing skills; maybe you could draw an "official" sketch?).

Shapecatcher finds this:

This site is temporarily in read-only mode and not accepting new answers.

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