def depart_subfig_tex(self, node):
    figoutput = ''.join(self.body)
    figoutput = figoutput.replace('[tbp]', node['width'] % '[t]{%s\\linewidth}')
    figoutput = figoutput.replace('figure', 'subfigure')
    self.body = self.__body
    self.body.append(figoutput)
dataset/ETHPy150Open xraypy/xraylarch/doc/sphinx/ext/subfig.py/depart_subfig_tex/swapped operands of `%`