Throughout my document I have several formula elements named s
with variants marked as s'
. Furthermore, I need to mark these using some other means. Currently, I use \widetilde
, giving me \widetilde{s'}
.
However, when \widetilde{s}
and \widetilde{s'}
appear close together (which happens frequently), the difference in height is quite disturbing (as the tilde is placed above the '
character).
The same problem happens with \overline{s'}
.
Could you hint me to at least two ways that make it possible to differentiate between s
, \markOne{s}
, and \markTwo{s}
, while s'
, \markOne{s'}
, and \markTwo{s'}
still look nice? As I already often use subscripts, playing around with those is not possible.
EDIT: I should point the following additional facts:
- I also have items wider than
s
to mark, at the moment I can see\widetilde{pp'_i}
(although, as mentioned,\widetilde{pp}'_i
might solve this particular problem) - The document is quite large and currently I have
\something{x}
wherex
may include primes and subscripts, e.g.\something{pp'_i}
. Thus, it would be rather hard to replace it by\somethingElse{pp}'_i
automatically.
EDIT2: If no better solution pops up, I'll use some Regexp magic to work around the problem mentioned in the last bullet point of my first edit.