I am trying to insert symbols into $\Box$ and $\Diamond$.
I do it in the following way.
First I define commands for blank operators for future and past:
\newcommand{\pastDiamond}
{
\text{\raisebox{-.37em}{
\topinset{$\rule{.3em}{.8pt}$}
{$\mathlarger{\mathlarger{\mathlarger{\mathlarger\Diamond}}}$}
{3.8pt}
{-4pt}}
}
}%
\newcommand{\futureDiamond}
{
\text{\raisebox{-.37em}{
\topinset{$\rule{.3em}{.8pt}$}
{$\mathlarger{\mathlarger{\mathlarger{\mathlarger\Diamond}}}$}
{3.8pt}
{4pt}}
}
}%
\newcommand{\pastBox}
{
\text{\raisebox{-.19em}{
\topinset{$\rule{.25em}{.8pt}$}
{$\mathlarger{\mathlarger{\mathlarger{\mathlarger\Box}}}$}
{4.5pt}
{-3.5pt}}
}
}%
\newcommand{\futureBox}
{
\text{\raisebox{-.19em}{
\topinset{$\rule{.25em}{.8pt}$}
{$\mathlarger{\mathlarger{\mathlarger{\mathlarger\Box}}}$}
{4.5pt}
{3.5pt}}
}
}%
Then I define command to superimpose operators with symbols:
\makeatletter
\newcommand{\superimpose}[2]
{%
{\ooalign{$#1\@firstoftwo#2$\cr\hfil$#1\@secondoftwo#2$\hfil\cr}}
}
\makeatother
Then I use the aboce commands to insert the symbols F, S and f inside the operators:
\newcommand{\FFutureDiamond}{\!\!\!\!\mathpalette\superimpose{{\futureDiamond}{{\mathsmaller{F}}}}}
\newcommand{\FPastDiamond}{\!\!\!\!\mathpalette\superimpose{{\pastDiamond}{{\mathsmaller{F}}}}}
\newcommand{\SFutureDiamond}{\!\!\!\!\mathpalette\superimpose{{\futureDiamond}{{\mathsmaller{S}}}}}
\newcommand{\SPastDiamond}{\!\!\!\!\mathpalette\superimpose{{\pastDiamond}{{\mathsmaller{S}}}}}
\newcommand{\fFutureDiamond}{\!\!\!\!\mathpalette\superimpose{{\futureDiamond}{\mathsmaller{f}}}}
\newcommand{\fPastDiamond}{\!\!\!\!\mathpalette\superimpose{{\pastDiamond}{\mathsmaller{f}}}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\FFutureBox}{\!\!\!\!\mathpalette\superimpose{{\futureBox}{{\mathsmaller{F}}}}}
\newcommand{\FPastBox}{\!\!\!\!\mathpalette\superimpose{{\pastBox}{{\mathsmaller{F}}}}}
\newcommand{\SFutureBox}{\!\!\!\!\mathpalette\superimpose{{\futureBox}{{\mathsmaller{S}}}}}
\newcommand{\SPastBox}{\!\!\!\!\mathpalette\superimpose{{\pastBox}{{\mathsmaller{S}}}}}
\newcommand{\fFutureBox}{\!\!\!\!\mathpalette\superimpose{{\futureBox}{\mathsmaller{f}}}}
\newcommand{\fPastBox}{\!\!\!\!\mathpalette\superimpose{{\pastBox}{\mathsmaller{f}}}}
What I have received is the following:
But I suspect I do it in a wrong way. I am sure It must be very heavy weight code to compile.
May I receive the same result in more correct way, with some kind of more lighter code?

