# Is it possible to rotate a prime when you have a subscript too?

So I want an apostrophe to denote the complement, but the ^\prime symbol looks a bit too angled.

I found somewhat of a solution here.

But I can't get it to work with subscripts, A_0^\prime yields: But I want the prime sign rotated 12 degrees to the left. Is that possible?

With a slightly modified definition from the answer to "Create rotated prime symbol" (removing the trailing \;) it works. \documentclass{article}
\usepackage[figuresright]{rotating}

\newcommand*{\p}{%
{\mathchoice%
{\turnbox{12}{$\displaystyle\,'$}}%
{\turnbox{12}{$\textstyle\,'$}}%
{\turnbox{12}{$\scriptstyle\,'$}}%
{\turnbox{12}{$\scriptscriptstyle\,'$}}}%
}%

\begin{document}
$A\p_0$
\end{document}

• Is it also possible to move the prime symbol a bit closer to the center of the zero?
– John
Jan 23, 2021 at 18:46
• In the definition of \p, replace \, by \:. Jan 23, 2021 at 18:47
• Thanks, solved all my problems.
– John
Jan 23, 2021 at 18:49
• @John Just wait a bit, there is always another problem around the corner. (Optimistic quote of the day) Jan 23, 2021 at 18:52
• You were right, is there another way to adjust the displacement of the prime other than \, or \: , like can you specify the amount of pixels or inches you want to move it?
– John
Jan 23, 2021 at 19:05
\documentclass{book}
\usepackage{amsmath}
\begin{document}
\begin{align}
A_{0}^{\prime}
\end{align}
\end{document} \documentclass{article}
\usepackage{rotating}

\newcommand{\pp}{\rotatebox{20}{\prime}}

\begin{document}
$A^{\pp}$
\end{document}

• It seems the OP aims at a prime symbol that is rotated to the left. $A'$ is basically the same as $A^\prime$ Jan 23, 2021 at 18:46