# [Tex/LaTex] How to one set full justification within left-justified (\raggedright) text

horizontal alignment

How can one set full justification within left-justified ({\raggedright [...]}) text?

An example of where I need full justification is here:

\documentclass{memoir}

\begin{document}

Document body.

\begin{thebibliography}{9}
\SingleSpacing
\bibitem{ABC}
{\raggedright \hyphenpenalty=10000 \exhyphenpenalty=10000
Plenty of left-aligned text. Plenty of left-aligned text. Plenty of left-aligned text. Plenty of left-aligned text. Plenty of left-aligned text. Plenty of left-aligned text. Plenty of left-aligned text. Plenty of left-aligned text. Plenty of left-aligned text. Plenty of left-aligned text. Plenty of left-aligned text. Plenty of left-aligned text. Plenty of left-aligned text. Plenty of left-aligned text. Plenty of left-aligned text.
\begin{list}{$$\bullet$$}
\item Plenty of left-aligned text. Plenty of left-aligned text. Plenty of left-aligned text. Plenty of left-aligned text. Plenty of left-aligned text. Plenty of left-aligned text. Plenty of left-aligned text. \par
\emph{Text I would like to be justified. Text I would like to be justified. Text I would like to be justified. Text I would like to be justified. Text I would like to be justified. Text I would like to be justified. Text I would like to be justified. Text I would like to be justified. Text I would like to be justified. Text I would like to be justified. Text I would like to be justified.}
\end{list}
}
\end{thebibliography}

\end{document}


It is self-explanatory.

Note: There are probably more minimal examples, but (aside from me needing full justification in this particular context) this one will do for a context where something obvious such as "set a smaller scope for \raggedright doesn't work.

use package ragged2e then you have a macro which allows to justify the text:

\usepackage{ragged2e}
....
{\justifying\emph{Text I would....}\par}


\par is needed to activate the setting