I want to modify the following lines of code
\documentclass{article}
\usepackage{amsmath,amssymb}
\def\forkindep{\mathrel{\raise0.2ex\hbox{\ooalign{\hidewidth$\vert^{d}$\hidewidth\cr\raise-0.9ex\hbox{$\smile$}}}}}
\begin{document}
$A \underset{C}{\forkindep}B$
\end{document}
found in What is the LaTeX symbol for "forking independent" (model theory)? to have a line followed by a prime symbol (i.e. |') in the forking independence relation. I attempted to do this by changing the $\vert$
to $\vert^{'}$
. However this cause the line segment to not align properly with the smile symbol (I want the line segment bisect the smile, but it is a little to the left the command). I was wondering how I could fix this issue.
\rlap
, as\rlap{${}^\prime$}
; (i'm not in a position to test at the moment).\llap
? It would be much easier if you posted a complete minimal example.\documentclass
command, has a minimal preamble and then\begin{document}...\end{document}
. Unless the problem is a compilation error, the code should compile and be as small as possible to demonstrate your problem. This makes it much easier for people to help you --- and much more likely that they will!