# Tag Info

2

The problem is similar to the one in Latex Confused with Word in heading You solve it by doing \DeclareRobustCommand{\ABCD}{\mathbf{ABCD}} so LaTeX won't see ABCD and try to lowercase it. However, you should think whether the style you're using is compatible with having math in titles. It isn't, in my opinion.

8

Rather than complicate your macros forever I'd just edit the file. if your sec.tex file is \section{My Title} ..... \section{With Title Case} ... Then after a command such as sed -ie "s/\\\\section{$$.$$$$[^{}]*$$}/\\\\section{\\1\\L\\2}/" sec.tex then it will be \section{My title} ..... \section{With title case} ... I used sed on the ...

5

You Shouldn't Be Writing Like This. If you really want, then be prepared to have problems with these macros. ;-) \documentclass{article} \usepackage{etoolbox} \makeatletter \patchcmd\@sect{#8}{\MakeFirstUppercase{#8}}{}{} \newcommand{\MakeFirstUppercase}[1]{% \@MakeFirstUppercase#1\@MakeFirstUppercase } \def\@MakeFirstUppercase#1#2\@MakeFirstUppercase{% ...

4