0

Is it possible to define a command such that the paragraph that follows is right-aligned and its first line starts in the last line of the previous paragraph (which is justified)? Eventually, to have a minimum of horizontal blank space between the two paragraphs as the argument of that command.

Edit: The output should be like this (except for the red color): output example

  • Could you please add a skwtch of the desired output to your question? Currently, I find it very hard to imagine how which line of text should be aligned and where the paragraphs start/end. – leandriis Jun 2 '19 at 8:57
4

enter image description here

\documentclass{article}

\usepackage{lipsum}

\begin{document}

{
% make sure there is space on the last line
\parfillskip=.5\textwidth plus .3\textwidth
\lipsum[1]

}

\vspace{\dimexpr-\parskip-\baselineskip\relax}

{\raggedleft
% make sure there is space on the first line
\noindent\hspace*{\dimexpr.5\textwidth+2em}%
\lipsum[2]

}

\end{document}
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.