0

I am trying to write a report which shuld contain two parts A + B. At the moment I have this:

enter image description here

What i would like to have is A instead of I , and B instead of II. and also that after B the first chapter should start again with 1. etc....

\documentclass[11pt, ngerman]{scrreprt}

\begin{document}
\begin{spacing}{1.2}

\part{This should be A.} \chapter{This should be 1.} \section{This should be 1.1} \chapter{This should be 2.} \section{This should be 2.1}

\part{This should be B.} \chapter{This should be 1.} \section{This should be 1.1}
\chapter{This should be 2.} \section{This should be 2.1} \end{document}

cabohah
  • 11,455
Fit Tune
  • 1
  • 1
  • Welcome to TeX.SE! Please show us a short compilable TeX code resulting in your issue! Then we do not have to guess what you are doing ... – Mensch Feb 12 '24 at 15:44
  • I just edited the post with an example – Fit Tune Feb 12 '24 at 15:54
  • Your code does not compile without error, because of undefined environment spacing. It also would not show the result of the screenshot. However, IMHO you are searching something like \renewcommand*{\thepart}{\Alph{part}}. – cabohah Feb 12 '24 at 15:59
  • @cabohah Yes. This is a part of it. This helps me changing the sytle of the part numbering. What I also like to do is now start the mubering from beginning after part B. – Fit Tune Feb 12 '24 at 16:06
  • 1
    And \numberwithin for the other question. Stack questions work best when you focus on one question per post. – Teepeemm Feb 12 '24 at 16:06
  • @Teepeemm I would suggest \counterwithin or \counterwithin*, because these are provided by the LaTeX kernel and do not need a package. – cabohah Feb 12 '24 at 16:09
  • @FitTune Second question is also a duplicate, e.g., https://tex.stackexchange.com/q/28333/277964 – cabohah Feb 12 '24 at 16:11
  • BTW: Please don't use random tags. You neither have a problem with the table of contents nor with TeX primitives. As a new contributor you always should read the tag description before using a tag. – cabohah Feb 12 '24 at 16:15
  • @cabohah Sorry, I am new and will do my best in the next time! Also to the \counterwithin{figure}{section} ..... what would ie be then for me? \counterwithin{chapter}{part}? – Fit Tune Feb 12 '24 at 16:16
  • There is an explained example for numbering chapter within part in lockstep's answer to the linked question. And because it seems you don't want to change the appearance of the chapter counter you should really read that … And if you need more help, you first should edit your question and correct the example and the screenshot. – cabohah Feb 12 '24 at 16:23
  • Thank you very much my friend! I got it now. Is there a way to mark both of your links as solution? – Fit Tune Feb 12 '24 at 16:30

0 Answers0