Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have to write my thesis in (German) law and we usually use a very nested headline system. I use scrreprt and have these levels:

  • (part)
  • chapter
  • section
  • subssection
  • subsubsection
  • paragraph
  • subparagraph

But I need at least 3 more levels. They don't have to be in the ToC but it would be nice.

I searched a lot and found a snippet that works but I can't reproduce it and create more levels.

% Fügt Gliederungsebene \subsubparagraph hinzu.
\titleclass{\subsubparagraph}{straight}[\subparagraph]
\makeatletter
\newcounter{subsubsubsection}[subsubsection] \newcounter{subsubparagraph}[subparagraph]
\newcommand*\l@subsubparagraph{\bprot@dottedtocline{6}{14em}{6em}}
\makeatother

Somewhat related is my second question. Is there any way to rename some of the levels? It's always a little annoying trying to remember what comes after subsubsection etc. Maybe \chapter, \section, \sub1section, \sub2section, \sub3section or something else.

Your help is greatly appreciated :)

share|improve this question
3  
What should the formatting of these newly created sublevels be? Bold, italic, indented or not? Also, using numbers in control sequences would complicate its usage. It's easier to use \subAsection, \subBsection, or something similar with letters and not numbers. –  Werner Aug 8 '12 at 17:13
    
well sure subAsection would work too. I currently use: \titlespacing{\subsubparagraph}{0em}{0em}{0em} \titleformat{\subsubparagraph}[hang]{\normalfont\normalsize\bfseries}{\thesubsub‌​paragraph\quad}{0pt}{} –  niclas197 Aug 8 '12 at 17:18
    
We'd like to keep answers separate from questions, so you should write a separate answer instead of editing your answer into the question. Self-answers are perfectly admissible, and a well-written answer may earn you additional reputation. –  lockstep Aug 8 '12 at 22:03
    
The Jura package is specifically created for German legal documents. The documentation is only in German but perhaps you could see if it provides an answer. –  user17457 Aug 10 '12 at 13:52
    
well the Jura class is 14 years old. The juramisc package is kind of nice and I've tried it. They implemented the levels relative, so you don't use \section but you start and use \toc{test} for the same and \sub{test1} for a level below that. But you have to remember to use \levelup. It doesn't keep up with my writing style though since I move some parts around sometimes so it's easier for me to use fixed levels and I try to keep the code in my text to a minimum. My 3 extra levels are more than enough and using them is the exception really. –  niclas197 Aug 10 '12 at 16:17
add comment

2 Answers

up vote 5 down vote accepted

Quoting the manual from the titlesec package:

With the help of classes you may insert, say, a new subchapter level between chapter and section, or creating a scheme of your own.

(at subsection 3.9 in the titlesec.pdf).

At appendix 9.2, it shows exactly how the already existing sections and the like are defined; don't copy the already existing parts to your file, but use them as inspiration for defining new ones (amount of indentation, style, etc). My advice is to look at all the appendices and subsection 3.9.

share|improve this answer
    
Thanks fort he revision Joseph, it looks really nice. I'll pay attention to it. (remove when you read this) –  Dualinity Aug 15 '12 at 18:41
add comment

So thanks to everyone. I kind of fixed it:

\titleclass{\subAparagraph}{straight}[\subparagraph]
\makeatletter
\newcounter{subAparagraph}[subparagraph]
\newcommand*\l@subAparagraph{\bprot@dottedtocline{6}{12em}{2.5em}}
\makeatother

\titleclass{\subBparagraph}{straight}[\subAparagraph]
\makeatletter
\newcounter{subBparagraph}[subAparagraph]
\newcommand*\l@subBparagraph{\bprot@dottedtocline{7}{14em}{2.5em}}
\makeatother

\titleclass{\subCparagraph}{straight}[\subBparagraph]
\makeatletter
\newcounter{subCparagraph}[subBparagraph]
\newcommand*\l@subCparagraph{\bprot@dottedtocline{8}{16em}{2.5em}}
\makeatother

I use alnumsec to make the Symbols:

\usepackage{alnumsec}
\alnumsectionlevels{0}{chapter,section,subsection,subsubsection,paragraph,subparagraph,subAparagraph,subBparagraph,subCparagraph}
\otherseparators{4}
\surroundarabic[(][)]{}{.}
\surroundgreek[][)]{}{.}
\alnumsecstyle{LRaldagbr}

And formating:

\titlespacing{\subAparagraph}{0em}{0em}{0em}
\titlespacing{\subBparagraph}{0em}{0em}{0em}
\titlespacing{\subCparagraph}{0em}{0em}{0em}
\titleformat{\subAparagraph}[hang]{\normalfont\normalsize\bfseries}{\thesubAparagraph\quad}{0pt}{}
\titleformat{\subBparagraph}[hang]{\normalfont\normalsize\bfseries}{\thesubBparagraph\quad}{0pt}{}
\titleformat{\subCparagraph}[hang]{\normalfont\normalsize\bfseries}{\thesubCparagraph\quad}{0pt}{}

I also noticed (after writing one paper with near identical settings and not noticing this) that the counter was not resetting if the exact previous level was not called.

Reset Counter

I fixed this with adding every "higher" level to reset (\usepackage{remreset})

\makeatletter

\@addtoreset{subCparagraph}{part}
\@addtoreset{subCparagraph}{chapter}
\@addtoreset{subCparagraph}{section}
\@addtoreset{subCparagraph}{subsection}
\@addtoreset{subCparagraph}{subsubsection}
\@addtoreset{subCparagraph}{paragraph}
\@addtoreset{subCparagraph}{subparagraph}
\@addtoreset{subCparagraph}{subAparagraph}
\makeatother

(This also affects the default levels like section)

This is kind of a bulky macro since you have to add something similar (only add the higher levels) for every level and I guess I will remove it so that I can see where I made an enumeration error :)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.