I'm defining a macro using
\addcontentsline. However, I have no idea whether that command is robust or not. If it's fragile ,
\protect is mandatory. I have no idea whether a duplicate
\protecting a robust command would result into, can produce any problems, so I assume it might do something just to be safe. Google just won't understand my search, so can someone help me on that detail?
In case someone is interested, I define a command that basically generalizes
\section etc. by putting the header level into a parameter pretty much like
\addcontentsline does, however printing both to ToC and to the text like the sectioning commands do. It also allows part level. I already know how to basically do it, but need to know that little detail to actually program it out. (I've also yet to figure out how to get the header sizes for the levels, but I should already find info on that.)