How can I control the behavior of formatting(font size, bold, italics, underline, etc...) depending on the depth of a set of nested environments?
That is, I'd like the top level to be bold and huge while the inner most levels to be small and normal.
Some depths will have italics, etc..
Basically the formatting is consistent across the nesting level but I don't want to have to create formatting for every nest manually(since the lists are large with many nesting).
right now I have a ton of formatting macro's. I'd like a sort of CSS approach. e.g.,
\nestlevel{1}{\huge}
\nestlevel{2}{\Large\underlinemode}
\nestlevel{3}{\large}
etc...
(the idea is that I can set the size and other properties(\underlinemode
makes all test underline)
the environments naturally revert to the previous styles when exiting an environment
\documentclass{...}
and ending with\end{document}
.enumitem
should be able to handle this with\setlist
, but no such option exists. Good question. Note: For a more CSS-like approach, use semantic formatting better:\newcommand\ItemTypeFormat{\Large\underlinemode}
.