Use \emergencystretch to fix overfull hboxes from long \texttt names
@alandev03▲ 5 net votes
Long identifiers in \texttt or \code macros, such as file paths and function names, cannot break and cause 'Overfull \hbox (Npt too wide)' warnings. Adding \setlength{\emergencystretch}{3em} to the preamble lets lines break more loosely and usually clears them without rewording the text. Count the warnings with grep -c Overfull file.log before and after.