[Tex/LaTex] plain tex: justify text after raggedright

horizontal alignmentplain-tex

I have played around with plain tex for a while now and can't figure out how to get back to justified text after e.g. \raggedright. Can it really be that I have to use \raggedright in a group \begingroup\raggedright...\endgroup in order to restore justified text? There has to be a way to get back the original justifying.

edit: I could get something similar to justified texts by using

\spaceskip3pt plus 2pt minus 1pt

But this is not the original justifying.

Best Answer

Just revert the settings of \raggedright.

\def\justifying{%
  \rightskip=0pt
  \spaceskip=0pt
  \xspaceskip=0pt
  \relax
}

\raggedright

\input knuth

\justifying

\input knuth

\bye

enter image description here