Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Definition einer subsubsubsection mit titlesec

19 views
Skip to first unread message

Uwe Ziegenhagen

unread,
Mar 12, 2010, 7:56:07 AM3/12/10
to
Hallo,

ich habe mir eine subsubsubsection mit titlesec definiert, was bis auf
die fehlende Nummer am Anfang auch recht gut funktioniert hat. Kann mir
jemand sagen, was daran noch fehlt um "1.1.1.1 Hallo Welt" zu bekommen?


Danke,

Uwe

\documentclass{article}

\usepackage{titlesec}
\newcounter{subsubsubsection}[subsubsection]
\renewcommand{\thesubsubsubsection}{\thesubsubsection.\@arabic\c@subsubsubsection}
\setcounter{subsubsubsection}{1}

\titleclass{\subsubsubsection}{straight}[\subsubsection]
\titleformat{\subsubsubsection}{\bf}{\thesubsubsubsection
\thetitle}{1em}{}[]
\titlespacing{\subsubsubsection}{0pt}{3.25ex plus 1ex minus 0.2ex}{1.5ex
plus 0.2ex}

\begin{document}

\section{a}

\subsection{b}

\subsubsection{c}

\subsubsubsection{Hallo Welt}

\end{document}

Michael Schwind

unread,
Mar 12, 2010, 8:09:38 AM3/12/10
to
Hallo Uwe,

> Kann mir
> jemand sagen, was daran noch fehlt um "1.1.1.1 Hallo Welt" zu bekommen?
>

Das mᅵsste ein

% Anzahl der Gliederungsebenen mit Nummerierung
\setcounter{secnumdepth}{4}

sein.

Grᅵᅵe

Michael

Marco Daniel

unread,
Mar 12, 2010, 10:16:40 AM3/12/10
to
Hallo,

Am 12.03.2010 13:56, schrieb Uwe Ziegenhagen:
> \renewcommand{\thesubsubsubsection}{\thesubsubsection.\@arabic\c@subsubsubsection}

Das wird wohl ohne Wirkung sein, da du kein makeatletter verwendet hast.

Warum nimmmst nicht einfach paragraph?

\documentclass{article}
\setcounter{secnumdepth}{5}


\begin{document}
\section{a}
\subsection{b}
\subsubsection{c}

\paragraph{Hallo Welt}
\end{document}

Gruß
Marco

0 new messages