Latex Noob
01-06-2014, 10:23
Nach der Verwendung von lscapesubsections und -subsubsections sind die Titel der Sektionen größer, als im restlichen Dokument.
Wie kann ich das vereinheitlichen?
\documentclass{scrartcl}
\usepackage{lscape}
\usepackage{rotating}
\makeatletter
\newcommand\lscapesection[1]{%
\refstepcounter{section}
\addcontentsline{toc}{section}{\protect\numberline {\thesection}#1}%
\sectionmark{#1}%
\noindent\smash{\parbox[t]{\linewidth}{%
\hfill\normalfont\sectfont\size@section
\rotatebox{-90}{\thesection\enskip #1}}}}%
\makeatother
\makeatletter
\newcommand\lscapesubsection[2][]{%
\refstepcounter{subsection}
\addcontentsline{toc}{subsection}{\protect\numberl ine{\thesubsection}#2}%
\subsectionmark{#2}%
\noindent\smash{\parbox[t]{\linewidth}{%
\hfill\normalfont\sectfont\size@section
\rotatebox{-90}{\thesubsection\enskip #2}}}}%
\makeatother
\makeatletter
\newcommand\lscapesubsubsection[2][]{%
\refstepcounter{subsubsection}
\addcontentsline{toc}{subsubsection}{\protect\numb erline{\thesubsubsection}#2}%
\subsubsectionmark{#2}%
\noindent\smash{\parbox[t]{\linewidth}{%
\hfill\normalfont\sectfont\size@section
\rotatebox{-90}{\thesubsubsection\enskip #2}}}}%
\makeatother
\begin{document}
\section{Einleitung}
Text Text Text
\subsection{Erklaerung}
Text Text Text
\subsubsection{Definitionen}
\begin{landscape}
\lscapesection{Thema 1}
Text Text Text
\newpage
\lscapesubsection{Unterthema}
Text Text Text
\newpage
\lscapesubsubsection{Unterunterthema 1.1.1}
Text Text Text
\end{landscape}
\end{document}
Wie kann ich das vereinheitlichen?
\documentclass{scrartcl}
\usepackage{lscape}
\usepackage{rotating}
\makeatletter
\newcommand\lscapesection[1]{%
\refstepcounter{section}
\addcontentsline{toc}{section}{\protect\numberline {\thesection}#1}%
\sectionmark{#1}%
\noindent\smash{\parbox[t]{\linewidth}{%
\hfill\normalfont\sectfont\size@section
\rotatebox{-90}{\thesection\enskip #1}}}}%
\makeatother
\makeatletter
\newcommand\lscapesubsection[2][]{%
\refstepcounter{subsection}
\addcontentsline{toc}{subsection}{\protect\numberl ine{\thesubsection}#2}%
\subsectionmark{#2}%
\noindent\smash{\parbox[t]{\linewidth}{%
\hfill\normalfont\sectfont\size@section
\rotatebox{-90}{\thesubsection\enskip #2}}}}%
\makeatother
\makeatletter
\newcommand\lscapesubsubsection[2][]{%
\refstepcounter{subsubsection}
\addcontentsline{toc}{subsubsection}{\protect\numb erline{\thesubsubsection}#2}%
\subsubsectionmark{#2}%
\noindent\smash{\parbox[t]{\linewidth}{%
\hfill\normalfont\sectfont\size@section
\rotatebox{-90}{\thesubsubsection\enskip #2}}}}%
\makeatother
\begin{document}
\section{Einleitung}
Text Text Text
\subsection{Erklaerung}
Text Text Text
\subsubsection{Definitionen}
\begin{landscape}
\lscapesection{Thema 1}
Text Text Text
\newpage
\lscapesubsection{Unterthema}
Text Text Text
\newpage
\lscapesubsubsection{Unterunterthema 1.1.1}
Text Text Text
\end{landscape}
\end{document}