How can I customize the text (not the label) after each \item in an itemize environment?
I don't see any option for that in the enumitem package. Other questions on Tex StackExchange also seem to worry more about the label and spacing and not about the <text> in \item <text>. I hope I didn't miss anything. At least it doesn't seem trivial to me, but maybe I'm just looking in the wrong places...
The background is that I am trying to change the behavior of hyphenation in the beamer presentation as suggested by me in this answer. But with the solution I've proposed, you have to write \hy{} after each \item everywhere. The text is embedded in this command, so the option before and after from enumitem doesn't seem to work for me.
Isn't there a way to make this easier?
For example, all items here
\documentclass{beamer}
\def\examplecommand#1{\parbox{\linewidth}{#1}}
\begin{document}
\begin{frame}{}
\begin{itemize}
\item \examplecommand{I do not want to be wrapped each time}
\item \examplecommand{I do not want to be wrapped each time}
\item \examplecommand{I do not want to be wrapped each time}
\item \examplecommand{I do not want to be wrapped each time}
\end{itemize}
\end{frame}
\end{document}
should only be written as:
\item I do not want to be wrapped each time
without redundant \examplecommand{…}. Of course a new command instead of \item or a new environment instead of itemize is also possible. I just don't want to have so much redundancy.
I tried something like this, but adding
\newenvironment{hytemize}{%
\let\olditem\item%
\renewcommand\item[2][]{\olditem ##1 \examplecommand{##2}}%
\begin{itemize}}{\end{itemize}%
}
and renaming itemize to hytemize leads to weird results.
Update:
I also don't want to write extra curly brackets wrapping each element text, it should be the same as before, i.e. writing \item ... should be sufficient. The background to my request is indeed to reactivate the hyphenation of beamer, but I am also interested in a general solution to change the text after an \item, and the writer should then not have to worry about this change, e.g. by writing curly brackets instead of none.
Update 2:
This comment finally answers my update.


\raggedrightback to the default justification (the only part of the parbox definition you need) or RaggedRight as suggested in the other answer to the linked question. – David Carlisle Apr 26 '19 at 15:55ragged2epackage and issue the directive\RaggedRightimmediately after\begin{itemize}. No need to mess with the contents of each\item. – Mico Apr 26 '19 at 16:04