How can I make an integral symbol with a bar above it or a bar below it?
From what I've seen online, it suffices to use
Here is a minimal example that defines
which draws the "upper Riemann integral" over the range [
defines the "lower Riemann integral" over the range [
These integrals also translate to use in text mode, but vertical alignment is slightly off due to the integral sign by default.
Personally I use shorter bars. It makes the macro much more complex:
I'm not sure which is better. Some new Unicode math fonts (XITS Math and Asana Math) have