When reading this question it seems the theoretical answer is that LaTeX is not perfect and manual/human intervention is required. In the TeX Book Knuth says:
But the problem of page make-up is considerably more difficult than the problem of line breaking that we considered in the previous chapter, because pages often have much less flexibility than lines do. If the vertical glue on a page has little or no ability to stretch or to shrink, TeX usually has no choice about where to start a new page; conversely, if there is too much variability in the glue, the result will look bad because different pages will be too irregular. Therefore if you are fussy about the appearance of pages, you can expect to do some rewriting of the manuscript until you achieve an appropriate balance, or you might need to fiddle with the looseness as described in Chapter 14; no automated system will be able to do this as well as you.
In the LaTeX Companion Mittelbach writes:
For this and other reasons, getting the final layout of the book was fairly labor intensive and even required minor rewriting (on maybe 10% of the pages) in order to avoid bad line breaks or page breaks.
Ignoring the fact that LaTeX is not the only software that publishers use, I am curious if the theoretical answer is actually the practical answer. Specifically, I am interested in:
How often do journals make manual tweaks to their templates/layouts when typesetting articles?
How often wording of the text is changed to increase the visual appeal of the article?