Quantcast
Channel: Active questions tagged starred-version - TeX - LaTeX Stack Exchange
Viewing all articles
Browse latest Browse all 63

How to handle \section* with asterisk in my custom class [closed]

$
0
0

I've redefined sections and subsections in my .cls file in such a way that \section* results in bad behavior.

For example, \section*{Introduction} These analyses were performed in my .tex file results in:

enter image description here

I know that I should fix this using something like the \@ifstar functionality discussed here : https://texfaq.org/FAQ-cmdstar . However, after a few hours and many iterations, I haven't succeeded. Do any of you know what I'm missing?

The sections and subsections are redefined thusly in my .cls file:

%%%%%%%%%%% SECTIONING %%%%%%%%%%%\renewcommand\section{\@startsection%{section}{1}{\z@}%      %name, level, indent{-\baselineskip}%       %beforeskip{.75\baselineskip}%     %afterskip{\reset@font\bf\MakeUppercase}  %bold, uppercase}\renewcommand{\thesection}{\@Roman\c@section} \renewcommand\subsection{\@startsection%{subsection}{2}{\z@}%       %name, level, indent{-\baselineskip}%       %beforeskip{.75\baselineskip}%     %afterskip{\reset@font\bf}%               %bold}\renewcommand{\thesubsection}{\thesection\@Alph\c@subsection}\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%    %name, level, indent{-.75\baselineskip}%        %beforeskip{.5\baselineskip}%      %afterskip{\reset@font\emph}%             %italic}\renewcommand{\thesubsubsection}{\thesubsection.\@roman\c@subsection}

I have put a minimal working example online. It contains three files and a pdf.

min_ex.tex : https://dl.dropboxusercontent.com/u/10060444/min_ex/min_ex.texntmanuscript.cls : https://dl.dropboxusercontent.com/u/10060444/min_ex/ntmanuscript.clsmin_ex.pdf : https://dl.dropboxusercontent.com/u/10060444/min_ex/min_ex.pdf


Viewing all articles
Browse latest Browse all 63

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>