I'm trying to put an underline on a section title. The university's template uses the following section of code to change the headers, but also requires them to be underlined:
Unfortunately, I don't have the know-how to turn that into a minimum working example (attempts to use it outside of its clo make it yell about spacefactor.
When I try to use underline, ul, or ulem, it shouts about being in horizontal mode. Attempts to use secsty and titlesec have been fruitless. Is there a simple way to accomplish underlining the section title?
You would need to use \makeatletter to access the internal function here. However, you would be much better not hacking it yourself. Take a look at the sectsty and titlesec packages.
I've tried using titlesec, but it fusses about horizontal mode whenever a \section is called. Been trying to find out what that means. I'll see if I can work up a working example.