I find myself manually fixing long variable names between $$
and \texttt{}
and other objects (there are plenty of those in my document since .
Those fixes don't hold well after text changes, and sometimes require finding specific workarounds for each object.
Is there a way to force text wrapping across all objects of a document in a generic way?
\path
rather than\texttt
as these allow highly customisable line breaking at specific characters. But hard to say without any example