
Page Layout ⇒ a way to move selected words to the new row
a way to move selected words to the new row

Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Ijon Tichy
- Posts: 640
- Joined: Mon Dec 24, 2018 10:12 am
a way to move selected words to the new row
With lualatex it could be possible to detect such words and replace the space after it by a non-breakable space. But I do not know much about the callbacks for nodes etc. so I cannot write the lua code for this.
Alternatively you could pre-process the document code using awk, sed or perl to replace the space after such words by a
~
or to immediately add \nobreakspace
after such words.However: Doing so would make it much harder to break the paragraphs into lines. So TeX would more often report underfull oer overfull \hboxes. So I would not recommend to do this unless you are using something like
\RaggedLeft
(from ragged2e).