I'm in need of argument text formatters for use in some environments that use macros to redefine properties (e.g., enumitem).
I need to underline text but there is no equivalent argumentless macro (what do you call these types of macros? They seem to be important in some cases but I can't easy find info on them) that does this.
http://en.wikibooks.org/wiki/LaTeX/Fonts#Font_styles
I can use \bfseries in my macros: e.g., \setlist[1]{style=standard,label=\\,before=\huge\color{black}\bfseries} Here \textbf does not work since it requires an argument.
I need an equivalent for \underline and/or \emph, e.g.,
\setlist[1]{style=standard,label=\\,before=\huge\color{black}\ulseries}
All the 4a___s should be underlined(the 3rd level)
\documentclass[11pt]{article} % use larger type; default would be 10pt
\usepackage[margin=0.4in]{geometry}
\usepackage{booktabs}
\usepackage{enumitem,color}
%\usepackage[normalem]{ulem}
%\useunder{\uline}{\ulined}{}
\setlist[1]{style=standard,label=\\,before=\huge\color{black}\bfseries}
\setlist[2]{style=standard,label=\\,before=\large\color{black}\bfseries}
\setlist[3]{style=standard,label=\\,before=\normalsize\color{black}\mdseries\slshape}
\setlist[4]{style=standard,before=\small\color{black}\mdseries\normalfont\itshape}
\begin{document}
\begin{itemize}
\item item Root) \hfill
\begin{itemize}
\item item2
\item item3
\item item4
\begin{itemize}
\item item 4a
\begin{itemize}
\item 4ai
\item 4aii
\end{itemize}
\item item 4b
\begin{itemize}
\item 4bi
\end{itemize}
\end{itemize}
\item item 5
\end{itemize}
\clearpage\huge\item Noon \hfill \\
\end{itemize}
\end{document}

\emphitself can be made into a switch, but for your purposes I don't see why you couldn't just use\itshapeinstead. – Alan Munn Apr 13 '15 at 00:45emphand then haveulemautomatically change it to underlining? – Alan Munn Apr 13 '15 at 01:05\ulseriescommand is that feasible. – jon Apr 13 '15 at 01:17