Wondering if there is a way to control the copy/paste output of latex generated PDF text. For example, say I have this in the output PDF:
g : b → a
If I could control the copy/paste output I would make it like this:
g : b -> a
Or perhaps maybe even:
g : b \rightarrow a
That way it could be added to a latex document. Wikipedia has this when you copy/paste:
isomorphisms with a {\displaystyle {\overset {\sim }{\rightarrow }}} \overset{\sim}{\rightarrow}.
https://en.wikipedia.org/wiki/Commutative_diagram
Maybe it is possible in latex like this:
\begin{copypaste}\copy{g : b -> a}
\begin{equation}
g : b \rightarrow a
\end{equation}
\end{copypaste}
Wondering if any of this sort of thing is possible and how it could be accomplished.
accsupI think, see e.g. https://tex.stackexchange.com/questions/233390/in-which-way-have-fake-spaces-made-it-to-actual-use/233397#233397 – Torbjørn T. Mar 21 '18 at 18:06\begin{equation} \BeginAccSupp{method=escape,ActualText={g : b -> a}} g : b \rightarrow a \EndAccSupp{} \end{equation}also worked fine. – Torbjørn T. Apr 02 '18 at 17:22