4

I tried

\newcommand{\pathint}{\mathrel{\int\!\!\!\!\!\!\!\sim}}

It looks Ok, but it does not hold integration limits right.

Guido
  • 30,740
MirOdin
  • 43

1 Answers1

7

I assume you're looking for a version of the Principal Value Integral symbol, but with the centered "dash" symbol replaced with a "tilde" or \sim. Building on some code given in an earlier answer, you could define a macro called \simint using the code given below.

enter image description here

\documentclass{article}
\def\Yint#1{\mathchoice
    {\YYint\displaystyle\textstyle{#1}}%
    {\YYint\textstyle\scriptstyle{#1}}%
    {\YYint\scriptstyle\scriptscriptstyle{#1}}%
    {\YYint\scriptscriptstyle\scriptscriptstyle{#1}}%
      \!\int}
\def\YYint#1#2#3{{\setbox0=\hbox{$#1{#2#3}{\int}$}
    \vcenter{\hbox{$#2#3$}}\kern-.52\wd0}}

\def\simint{\Yint\sim}

\begin{document} $ \displaystyle \simint_a^b f \quad \simint\limits_a^b f \quad \textstyle \simint_a^b f $ \end{document}

David Carlisle
  • 757,742
Mico
  • 506,678
  • Mico: Thank you so much! This piece of code is simply beautiful. I really enjoyed reading it. And it works great in my LyX! I only finetuned it a bit by changing -.52 to -.50. Thanks again and Happy New Year! – MirOdin Jan 01 '15 at 09:56
  • @VladimirVolodin - Glad to know the code is useful. :-) By the way, if you want to reduce slightly the size of the \sim symbol that crosses the \int symbol, you could change \textstyle{#1} to \scriptstyle{#1}, and \scriptstyle{#1} to \scriptscriptstyle{#1}, in the definition of the \Yint macro. – Mico Jan 01 '15 at 12:59