Publishers of books are normally pretty flexible about what they accept from authors. They don't want to put up barriers. It needs to be something that works for the author and that the production staff can work with. For textbooks there is usually a "copy editor" involved as well as a production staff. The authorpublisher seldom (in my experience with three large publishers, though a bit dated) askasks the author to produce final page proofs. Those are done by professionals.
The author is, then, required to proofread those pages and quickly provide any needed corrections. What happens in the background may be LaTeX or some older typesetting technology, though probably not hot lead anymore.
They might even provide professional help on preparation of images for the final copy.
A publisher may have preferences, but for books, probably not rigid requirements.