I have been searching for one week to setup a macro in LaTeX/Songs in order to print with different size different pieces of the same chord (slash chord must be of smaller size) like this:
I've tried tons of things like this but everything fails ( the major failure is due to \printchord macro and stringstring packet doesn't have good feeling). Thanks for any help.
As asked here the final code example:
\newcounter{pos_slash}%
\renewcommand{\printchord}[1]{%
\setcounter{pos_slash}{0}%
\rmfamily\bf\normalsize%
\whereischar[q]{#1}{/}%
\theresult\par%
\ifthenelse{\expandafter\theresult>0}{%
\addtocounter{pos_slash}{\expandafter\theresult}
\addtocounter{pos_slash}{-1}}{}%
\setcounter{pos_slash}{3}}
\large\arabic{pos_slash}\par
\expandafter\substring[q]{\mystring}{1}{\expandafter\theresult}
\ifthenelse{\expandafter\theresult=0}{#1}{%
\substring[q]{#1}{1}{\arabic{pos_slash}}%
\addtocounter{pos_slash}{2}%
\tiny\slash\substring[q]{#1}{\arabic{pos_slash}}{13}}%
}


songspackage. – David Carlisle Jan 11 '23 at 00:12