title: How to reset chapter and section counter with \part*
body: <p>Sorry for bad english</p>
  
  <p>I have a problem with my Latex code (I'm not very good in coding). I want an output like this:</p>
  
  <pre><code> Part I
  
     Chapter I
     Chapter II
  
   Part II
  
     Chapter I
     Chapter II
  </code></pre>
  
  <p>I also wanted to create a box around my title of the parts , this doesn't work like I wanted, so I used \part* and \addcontentsline{toc}{part}{PART I} (to write the line in the table of content).So the code is:</p>
  
  <pre><code> \fbox{\begin{minipage}{\linewidth}
   \part*{\begin{center}
    PART I
    \end{center}}
     \end{minipage}}
    \addcontentsline{toc}{part}{PART I}
    \vspace{0.7cm}
  </code></pre>
  
  <p>I saw this methode to reset the counter of the chapters:</p>
  
  <pre><code>  \makeatletter
    \@addtoreset{chapter}{part}
    \makeatother 
  </code></pre>
  
  <p>but this doesn't work, I think it's due to use of \part*. </p>
  
  <p>Has anyone an idea? THNANKS!</p>
  
  <p>Hope the example bellow can help:) </p>
  
  <pre><code> \documentclass[a4paper,11pt,]{report}  
   \usepackage{hyperref}
   \begin{document}
    \tableofcontents
  
    \newpage
     \fbox{\begin{minipage}{\linewidth}
     \part*{\begin{center}
     INTRODUCTION
     \end{center}}
      \end{minipage}}
     \addcontentsline{toc}{part}{INTRODUCTION}
      \vspace{0.7cm}
  
      \chapter{Hello}
       \section{my}
  
       \newpage
       \fbox{\begin{minipage}{\linewidth}
        \part*{\begin{center}
       CONCLUSION
       \end{center}}
       \end{minipage}}
       \addcontentsline{toc}{part}{CONCLUSION}
        \vspace{0.7cm}
  
       \chapter{name}
       \section{is}
  
        \end{document}
  </code></pre>