1

How can I create the \vdash and \models math symbols with curly horizontal lines similar to \approx?

Solution: \def\modelx{\mathrel|\joinrel\approx}

2

1 Answer 1

3

Like this?

\documentclass{article}
\usepackage{amssymb}
\usepackage{graphicx}

\newcommand{\vapprox}{\mathrel{\scalebox{1}[1.5]{$\shortmid$}\mkern-3.1mu\raisebox{0.1ex}{$\approx$}}}
\newcommand{\vsim}{\mathrel{\scalebox{1}[1.5]{$\shortmid$}\mkern-3.1mu\raisebox{0.15ex}{$\sim$}}}

\begin{document}

    \[ A \vapprox B\vsim C\quad \]%

\end{document} 

enter image description here

3
  • Looks nice, except that \shortmid is a bit too short--how can I make the line a bit longer? Sep 8, 2017 at 22:53
  • You just change the optional argument of scalebox (it is a vertical scaling of 1.5). Note I managed to get it the same height as the vertical rule of \vdash.
    – Bernard
    Sep 8, 2017 at 22:58
  • That's true for \vdash, but unfortunately not for \vapprox; with a scalebox of 2.2 and a raisebox of 0.4ex, \vapprox looks pretty good, except that the symbol is now printed too high.. Sep 9, 2017 at 0:07

You must log in to answer this question.

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