How can I define section styles in a cls file based on the title of or label associated with a section? I don't have control over the content of the tex file other than knowing a minimal subset of titles/labels will be used.
For example, I want the content within "toppart" to be in two columns, the font size of the content within "middle part" to be 8pt, and the content within "bottompart" to have font color red.
\documentclass{article}
\begin{document}
\section{toppart}\label{toppart} %%%%%%
This is stuff at the top.
\section{middlepart}\label{middlepart} %%%%%%
This is stuff in the middle.
\section{endpart}\label{endpart} %%%%%%
This is stuff at the end.
\end{document}
To be clear, I am guaranteed to see the lines ending in %%%%%%.
input\include~d in the main document – js bibra Dec 09 '19 at 13:54