Add the following code at the beginning of the article \newsavebox\CBox \def\textBF#1{\sbox\CBox{#1}\resizebox{\wd\CBox}{\ht\CBox}{\textbf{#1}}} Then : \textBF{foobarbaz} Example: \documentclass{article} \usepackage{graphicx} \newsavebox\CBox \def\te…