I'm trying to define a command in latex that gives me a flipped integral symbol as I haven't been able to find it in any existing package. So far this is my attempt:

    {\reflectbox{$\displaystyle \int$}}
    {\reflectbox{$\scriptstyle \int$}}
    {\reflectbox{$\scriptscriptstyle \int$}}}}

This has the problem that superscripts are not aligned to the integral sign itself, but its rightmost part. The usual integral sign does not have this problem with subscripts.

How can I align the superscripts horizontally? If this symbol already exists somewhere or you see other issues with my definition I'd be glad to hear about them of course!

1 Answer 1


Is this what you want?


  \IfValueT{#2}{% subscript
  \IfValueT{#3}{% superscript




The superscript is added with some amount of backspacing, so it goes nearer the integral sign.

enter image description here

  • 1
    Looks perfect, thank you!
    – Monoidoid
    Commented Jun 22, 2023 at 11:53

You must log in to answer this question.

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