Add the following code at the beginning of the article
ewsaveboxCBox def extBF#1{sboxCBox{#1} esizebox{wdCBox}{htCBox}{ extbf{#1}}}
Then :
extBF{foobarbaz}
Example:
documentclass{article} usepackage{graphicx} ewsaveboxCBox def extBF#1{sboxCBox{#1} esizebox{wdCBox}{htCBox}{ extbf{#1}}} parindent=0pt egin{document} foobarbaz y\ extbf{foobarbaz} y\ extBF{foobarbaz} y end{document}
参考:
https://tex.stackexchange.com/questions/23678/textbftext-without-increasing-the-length-of-the-text
https://tex.stackexchange.com/questions/399859/fake-semibold-bold-without-increasing-the-length-of-the-text