I want to redefine \item[]
to make it work like:
\documentclass[fontsize=22pt]{scrreprt}
\UsePackage[inline]{enumitem}
\newlist{notes}{description}{1}
\setlist[notes]{
leftmargin=0.3\linewidth,labelsep=2em,
itemsep=1.5ex,style=multiline,font=\normalfont
}
\def\removespecial{
\catcode`\_=12
\catcode`\^=12
\catcode`\$=12
\catcode`\%=12
\catcode`\#=12
\catcode`\&=12
\catcode`\~=12
}
\begin{document}
\begin{notes}
\item[something]
{\removespecial\obeylines\obeyspaces
...some content...
}
\end{notes}
\end{document}
That is, to wrap the content after \item[]
in parentheses so that I can use \obeylines
etc inside. Without the parentheses, macros like \obeylines
would affect the rest of the document and break some other commands. However, while manully adding the parentheses works, I can't figure out how to do it in macro (by redefining \item[]
or some other ways). Can anyone show me how to do it?