Latex -> Anhang

M

mikka18

Mitglied
Thread Starter
Dabei seit
16.11.2005
Beiträge
82
Reaktionspunkte
0
Hallo Leute,

mal wieder habe ich ein LATEX Problem und zwar mit der Nummerierung der Abbildungen im Anhang:

\chapter{Anhang}
\section{APPLE}
Grafik1
\section{ist }
grafik2
\section{Klasse}

wenn ich das setze sieht das ja so aus:

A Anhang
A.1 APPLE
A.2 ist
A.3 klasse

d.h die Grafik1 unter Apple soll A.1.1 heissen und die grafik2
A.2.1 usw.

tut sie aber nicht, d.h bei mir heisst grafik1 im moment A.1 und grafik2 A.2.

D.h ich möchte die Bilder innerhalb einer Sektion nummeriert haben mit der section nummer davor !?!

GEHT DAS ???
Gruss & Dank mikk18

Hier mein Header:
\documentclass[11pt,oneside,a4paper]{scrreprt}
\usepackage[ngerman]{babel}
\usepackage[headsepline, footsepline, plainheadsepline]{scrpage2}
\usepackage[applemac]{inputenc}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage[paper=a4paper,left=30mm,right=20mm,top=30mm,bottom=25mm]{geometry}
\usepackage[final]{pdfpages}
\usepackage{natbib}
\usepackage{wrapfig}
\usepackage{picins}
\usepackage[T1]{fontenc}
\usepackage{multibib}
\usepackage{palatino}
\usepackage{floatflt}
\usepackage{subfigure}
\usepackage{fancybox}
\usepackage{calc}
\usepackage{rotating}
\usepackage{hyphenat}
\usepackage{url}
\usepackage{moreverb}
\usepackage{array}
\usepackage{color}
\usepackage{moreverb}
\usepackage{float}
\usepackage{longtable}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{setspace}
\usepackage{pdfpages}
\usepackage{tabularx}
\usepackage{url}
\usepackage{minitoc}
\urlstyle{same}
\usepackage{scrpage2}
\setcounter{secnumdepth}{4}
\numberwithin {equation} {section}
\pagestyle{scrheadings}
\automark[section]{chapter}
\ihead{\leftmark}
\ohead{\rightmark}
\addto\captionsngerman{\renewcommand{\figurename}{ Abb.}
\renewcommand{\tablename}{Tab.}}
%\addcontentsline{toc}{chapter}{Literaturverzeichnis}
\addto{\captionsngerman}{%
\renewcommand*{\appendixname}{Anhang \& Literaturverzeichnis }}
\onehalfspacing
\setlength{\oddsidemargin}{-2mm} %gemurkse, damit seiten gut aussehen
\setlength{\evensidemargin}{-10mm} %gemurkse, damit seiten gut aussehen
\newcommand{\changefont}[3]{
\fontfamily{#1} \fontseries{#2} \fontshape{#3} \selectfont}
\parindent 0cm


%__________________________________________________________________
\makeatletter% --> De-TeX-FAQ
\newcommand*{\maintoc}{% Hauptinhaltsverzeichnis
\begingroup
\@fileswfalse% kein neues Verzeichnis öffnen
\renewcommand*{\appendixattoc}{% Trennanweisung im Inhaltsverzeichnis
\value{tocdepth}=-10000 % lokal tocdepth auf sehr kleinen Wert setzen
}%
\tableofcontents% Verzeichnis ausgeben
\endgroup
}
\newcommand*{\appendixtoc}{% Anhangsinhaltsverzeichnis
\begingroup
\edef\@alltocdepth{\the\value{tocdepth}}% tocdepth merken
\setcounter{tocdepth}{-10000}% Keine Verzeichniseinträge
\renewcommand*{\contentsname}{% Verzeichnisname ändern
Anhang}%
\renewcommand*{\appendixattoc}{% Trennanweisung im Inhaltsverzeichnis
\setcounter{tocdepth}{\@alltocdepth}% tocdepth wiederherstellen
}%
\tableofcontents% Verzeichnis ausgeben
\setcounter{tocdepth}{\@alltocdepth}% tocdepth wiederherstellen
\endgroup
}
\newcommand*{\appendixattoc}{% Trennanweisung im Inhaltsverzeichnis
}
\g@addto@macro\appendix{% \appendix erweitern
\if@openright\cleardoublepage\else\clearpage\fi% Neue Seite
\addcontentsline{toc}{chapter}{\appendixname}% Eintrag ins Hauptverzeichnis
\addtocontents{toc}{\protect\appendixattoc}% Trennanweisung in die toc-Datei
}
\makeatother
%__________________________________________________________________
\begin{document}
\input{titelseite}
\input{eid}\input{vorwort}
\input{verzeichnisse}
\pagestyle{scrheadings}
\automark[section]{chapter}
\ihead{\leftmark}
\ohead{\rightmark}
\input{Formelzeichen}\input{Abkuerzungen}
%__________________________________________________________________
%\renewcommand*{\raggedsection}{\raggedright}
\renewcommand{\thetable}{\arabic{chapter}.\arabic{table}}
\renewcommand{\thefigure}{\arabic{chapter}.\arabic{figure}}
%__________________________________________________________________
\normalsize
\include{1}\include{2}
\include{3a}\include{3b}\include{3c}\include{3d}\include{3e}\include{3f}\include{3g}
\include{4}\include{historie}
\include{5}
\include{6}
\include{7}
\include{8}
\include{8a}
%__________________________________________________________________
\addtocontents{lof}{\protect\setcounter{tocdepth}{0}}
%\numberwithin{figure}{section}
%\setcounter{tocdepth}{3}
\appendix
\appendixtoc
\include{anhang}
\include{anhang1}
\nocite{*}
\thispagestyle{plain}
\bibliographystyle{plaindin}
\automark[section]{chapter}
\ihead{}
\ohead{}
\bibliography{Literatur}
\addcontentsline{toc}{chapter}{Literaturverzeichnis}
\end{document}
 
versuch es mit der \appendix-Anweisung vor dem Beginn des Anhangs. Dann kümmert er sich selbst darum, dass Anhang da steht und zählt es auch entsprechend. Siehe KOMA-Script-Dokumentation, S. 129.
 
Zurück
Oben Unten