My publisher recommends that my text is not split by floats. More precisely, a sentence should end before the float and a new sentence should start after the float. The float is allowed to be moved into another paragraph and even split paragraphs, but only after a full stop (question mark, exclamation mark).
Take this MWE:
\documentclass{article}
\usepackage{lipsum}
\usepackage{graphicx}
\begin{document}
\raggedbottom
\lipsum[1-2]
\begin{figure}[htb]
\centering
\includegraphics[width=0.8\textwidth]{example-image-a}
\caption{Hello World 42}
\end{figure}
\lipsum[4-5]
\end{document}
You should see that one sentences is split by this figure:
Morbi vel justo vitae lacus
[Figure]
tincidunt ultrices. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
What I want is (for every float):
Morbi vel justo vitae lacus tincidunt ultrices.
[Figure]
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Maybe related:
How to forbid LaTex from placing floats in the middle of sentences?
How to protect text from being split by a float?
Edit according to Mico's answer:
What I forget to mention is, that the option "raggedbottom" is permitted/desired. I am not sure if this effects the answer. If I change the MWE to
\documentclass{article}
\usepackage{lipsum}
\usepackage{graphicx}
\begin{document}
\raggedbottom
\lipsum[1-5]
\begin{figure}[tb]
\centering
\includegraphics[width=0.8\textwidth]{example-image-a}
\caption{Hello World 42}
\end{figure}
\lipsum[6-10]
\end{document}
The float appears on top of one page, but still breaks a sentence. If I understand the comments to the answer correctly, I am requesting something which is not achievable, am I not?
The publisher showed my some examples where no sentences are split by figures, even if they appear on top or on bottom of a page. If I really want this, I would have to to insert paragraph breaks manually? If so, I might think about not fulfilling this recommendation.
!) and question (?) marks as well, right? -- seems slightly unusual, to put it politely. I'd rephrase and strengthen it to require that within-page paragraphs must not be split by a float. That way, the publisher's stipulation will be satisfied automatically. – Mico Jan 15 '21 at 21:36[H]and manually positioning them. Saying they appear between sentences does not really make sense, sentences can start and end mid line. You can't add a float at that point without making it look like end of paragraph potentially changing the meaning. An author could do that, but not a typesetter. – David Carlisle Jan 16 '21 at 09:30[H]then the floating is disabled completely and you get full manual control. So you can insert the figures at whatever point you want but still you need to break the paragraph to insert them. – David Carlisle Jan 16 '21 at 10:01