I need to use minitoc package for my article. However, when I include it in the preamble, then it overrides the section format I need. In the example below, I need a section header to look like "I. Data" while the sentence should read "Section I is about our data set." However, when I include \usepackage{minitoc} option, then the header changes to "I Data", ignoring the period after I.
I would appreciate if anyone can bring my missing dot back while still using the minitoc package. Thanks a lot!
Yosh
Code: Select all
\documentclass[11pt]{article}
\usepackage[doublespacing]{setspace}
% for partial TOC
\usepackage{minitoc}
\makeatletter
\renewcommand{\@seccntformat}[1]{\@nameuse{the#1}.~{}}
\renewcommand{\thesection}{\Roman{section}}
\makeatother
\begin{document}
\clearpage
test
\section{Data}\label{sec:data}
Section \ref{sec:data} is about our data set.
\end{document}