matzemc
04-10-2009, 13:15
Hallo!
Ich würde gern ein Inhaltsverzeichnis bei mir im Dokument einbinden, aber leider bleibt nach dem Komilieren das Inhaltsverzeichnis leer.
Mein Code schaut so aus:
\documentclass[listof=totocnumbered,a4paper,11pt]{scrreprt}
%totoc...ohne Zahl im Inhaltsverzeichnis, totocnumbered...mit Zahl im Inhaltsverzeichnis
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Allgemeine Definitionen
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[dvips]{color}
\usepackage[left=3cm,right=2cm,textheight=24.5cm]{geometry} %Seitenränder
\setlength{\parindent}{0em} %kein hängender Einzug / {1em} für hängenden Einzug
\usepackage[ansinew,latin1]{inputenc} %Sonderzeichen ä,ö,ß usw.
\usepackage[ngerman]{babel} %Neue deutsche Rechtsschreibung (Trennung usw.)
\usepackage[babel,german=quotes]{csquotes} %deutsche Anführunszeichen
\usepackage{units} % Einheiten
\usepackage[T1]{fontenc} % Worte mit ß richtig trennen
%\usepackage{makeidx} % Indexerstellung Unterstützung
\usepackage[german]{varioref} % erweiterte Verweise
\usepackage[pdfpagelayout=OneColumn,pdfstartview=FitBH,backref ,colorlinks,linkcolor=blue,citecolor=blue]{hyperref} % Inhaltsverzeichnis mit Links
\usepackage{blindtext} %erzeugt Blindtext
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Schrift und Stil
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\usepackage{textcomp}
\usepackage{footnpag}
\usepackage{upgreek} %gerade Griechische Buchstaben
\usepackage[normalem]{ulem} %Unterstreichen von Text
\usepackage[scaled=.92]{lmodern}
\usepackage{setspace} %Zeilenabstand
\setstretch{1.2}
% Type \setstretch{x} where x is a number indicating the spacing you want.
\renewcommand{\familydefault}{\sfdefault} %hier Standard
%\renewcommand{\familydefault}{\rmdefault}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Einbinden sonstiger Pakete
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{color} %farbige Schrift
\usepackage{longtable} %table over two pages
\usepackage{ltxtable}
\usepackage {lscape} %figures crossways
\makeatletter
\@ifundefined{pdfpageattr}
{}{\g@addto@macro{\landscape}{\pdfpageattr{/Rotate 90}}}
\makeatother\usepackage {rotating} %rotation of pics
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Layout
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\parindent0pt %kein Einrücken an Absatzanfängen
%Kopf- Fußzeilen direkt in Dokumenten definiert
\renewcommand {\thefigure} {\thesection.\arabic{figure}} %Sektionsnummer mit in Abbildungsnummer
%\numberwithin{figure}{section} %Abbildungsnummer mit jeder Sektion zurücksetzten
\renewcommand {\thetable} {\thesection.\arabic{table}} %Sektionsnummer mit in Tabellennummer
%\numberwithin{table}{section} %Tabellennummer mit jeder Sektion zurücksetzten
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Matheumgebung
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage {amssymb} %mathematische Symbole
%\usepackage {mathptmx}
\usepackage {amsmath} %erweiterter Mathematikmodus
\usepackage {amssymb} %Mathematiksymbole
\usepackage {dsfont}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Literatur
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[round]{natbib} %Ref.style
%\citestyle{elsart-harv}
\citestyle{natbib}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Header- & Footer-Handling
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{fancyhdr} % Kopf- und Fusszeilen definieren
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
\pagestyle{fancy}
\fancypagestyle{plain}{%
\fancyhf{}
\fancyhead[L]{}
\fancyhead[R]{\slshape{\leftmark}}
\fancyfoot[L]{}
\fancyfoot[C]{}
\fancyfoot[R]{\thepage}}
\fancyhf{}
\fancyhead[L]{}
\fancyhead[R]{\slshape{\leftmark}}
\fancyfoot[L]{}
\fancyfoot[C]{}
\fancyfoot[R]{\thepage}
%Kennzeichnung Kapitelnummer / Ohne Nummer = "\thechapter\" löschen
\renewcommand{\chaptermark}[1]{\markboth{\thechapter\ #1}{}} %\thechapter\ in die Klammer hinter markboth{
%\renewcommand{\chaptermark}[1]{\markright{\thechapter\ #1}}
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Titelblatt
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\input{Kapitel/titelblatt}
%\thispagestyle{empty}
%\clearpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Inhaltsverzeichnis
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\renewcommand{\thepage}{\Roman{page}} % \Roman für römische Seitenzahlen
%\setcounter{page}{1}
%\setcounter{page}{0} %Seitenzähler auf "`0"' setzen
\pagenumbering{Roman} %Seitenzahlen römisch
\tableofcontents
\newpage
\listoffigures
\newpage
\listoftables
\newpage
%Verzeichnisse
%\tableofcontents%wegen Inhaltsverzeichnis 2 mal kompilieren
%\thispagestyle{plain}
%\clearpage
%
%
%\listoffigures%Abbildungsverzeichnis
%\listoftables%Tabellenverzeichnis
%\thispagestyle{plain}
%\clearpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Kapitel
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\thepage}{\arabic{page}} % \arabic für arabische Seitenzahlen
\setcounter{page}{1}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Steckbrief
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{test}
%\input{Kapitel/ilexsteckbrief}
\thispagestyle{plain}
\end{document}
Ich habe schon ein wenig an dem Dokument rumgespielt, aber leider keine Lösung gefunden. Es werden keine Warnungen ausgegeben und keine Fehler.
Mein Ziel war es:
Ich möchte gern in Inhaltsverzeichnis, darunter dann die Liste der Tabellen und schließlich die Abbildungen. Alle Seiten sollten römisch nummeriert sein.
Eigentlich habe ich den Code dafür, aber beim Inhaltesverzeichnis wird einfach nicht nummeriert.
Hat vielleicht jemand die Lösung für mich?
Vielen Dank schonmal für eure Mühen!
Ich würde gern ein Inhaltsverzeichnis bei mir im Dokument einbinden, aber leider bleibt nach dem Komilieren das Inhaltsverzeichnis leer.
Mein Code schaut so aus:
\documentclass[listof=totocnumbered,a4paper,11pt]{scrreprt}
%totoc...ohne Zahl im Inhaltsverzeichnis, totocnumbered...mit Zahl im Inhaltsverzeichnis
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Allgemeine Definitionen
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[dvips]{color}
\usepackage[left=3cm,right=2cm,textheight=24.5cm]{geometry} %Seitenränder
\setlength{\parindent}{0em} %kein hängender Einzug / {1em} für hängenden Einzug
\usepackage[ansinew,latin1]{inputenc} %Sonderzeichen ä,ö,ß usw.
\usepackage[ngerman]{babel} %Neue deutsche Rechtsschreibung (Trennung usw.)
\usepackage[babel,german=quotes]{csquotes} %deutsche Anführunszeichen
\usepackage{units} % Einheiten
\usepackage[T1]{fontenc} % Worte mit ß richtig trennen
%\usepackage{makeidx} % Indexerstellung Unterstützung
\usepackage[german]{varioref} % erweiterte Verweise
\usepackage[pdfpagelayout=OneColumn,pdfstartview=FitBH,backref ,colorlinks,linkcolor=blue,citecolor=blue]{hyperref} % Inhaltsverzeichnis mit Links
\usepackage{blindtext} %erzeugt Blindtext
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Schrift und Stil
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\usepackage{textcomp}
\usepackage{footnpag}
\usepackage{upgreek} %gerade Griechische Buchstaben
\usepackage[normalem]{ulem} %Unterstreichen von Text
\usepackage[scaled=.92]{lmodern}
\usepackage{setspace} %Zeilenabstand
\setstretch{1.2}
% Type \setstretch{x} where x is a number indicating the spacing you want.
\renewcommand{\familydefault}{\sfdefault} %hier Standard
%\renewcommand{\familydefault}{\rmdefault}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Einbinden sonstiger Pakete
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{color} %farbige Schrift
\usepackage{longtable} %table over two pages
\usepackage{ltxtable}
\usepackage {lscape} %figures crossways
\makeatletter
\@ifundefined{pdfpageattr}
{}{\g@addto@macro{\landscape}{\pdfpageattr{/Rotate 90}}}
\makeatother\usepackage {rotating} %rotation of pics
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Layout
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\parindent0pt %kein Einrücken an Absatzanfängen
%Kopf- Fußzeilen direkt in Dokumenten definiert
\renewcommand {\thefigure} {\thesection.\arabic{figure}} %Sektionsnummer mit in Abbildungsnummer
%\numberwithin{figure}{section} %Abbildungsnummer mit jeder Sektion zurücksetzten
\renewcommand {\thetable} {\thesection.\arabic{table}} %Sektionsnummer mit in Tabellennummer
%\numberwithin{table}{section} %Tabellennummer mit jeder Sektion zurücksetzten
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Matheumgebung
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage {amssymb} %mathematische Symbole
%\usepackage {mathptmx}
\usepackage {amsmath} %erweiterter Mathematikmodus
\usepackage {amssymb} %Mathematiksymbole
\usepackage {dsfont}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Literatur
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[round]{natbib} %Ref.style
%\citestyle{elsart-harv}
\citestyle{natbib}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Header- & Footer-Handling
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{fancyhdr} % Kopf- und Fusszeilen definieren
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
\pagestyle{fancy}
\fancypagestyle{plain}{%
\fancyhf{}
\fancyhead[L]{}
\fancyhead[R]{\slshape{\leftmark}}
\fancyfoot[L]{}
\fancyfoot[C]{}
\fancyfoot[R]{\thepage}}
\fancyhf{}
\fancyhead[L]{}
\fancyhead[R]{\slshape{\leftmark}}
\fancyfoot[L]{}
\fancyfoot[C]{}
\fancyfoot[R]{\thepage}
%Kennzeichnung Kapitelnummer / Ohne Nummer = "\thechapter\" löschen
\renewcommand{\chaptermark}[1]{\markboth{\thechapter\ #1}{}} %\thechapter\ in die Klammer hinter markboth{
%\renewcommand{\chaptermark}[1]{\markright{\thechapter\ #1}}
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Titelblatt
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\input{Kapitel/titelblatt}
%\thispagestyle{empty}
%\clearpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Inhaltsverzeichnis
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\renewcommand{\thepage}{\Roman{page}} % \Roman für römische Seitenzahlen
%\setcounter{page}{1}
%\setcounter{page}{0} %Seitenzähler auf "`0"' setzen
\pagenumbering{Roman} %Seitenzahlen römisch
\tableofcontents
\newpage
\listoffigures
\newpage
\listoftables
\newpage
%Verzeichnisse
%\tableofcontents%wegen Inhaltsverzeichnis 2 mal kompilieren
%\thispagestyle{plain}
%\clearpage
%
%
%\listoffigures%Abbildungsverzeichnis
%\listoftables%Tabellenverzeichnis
%\thispagestyle{plain}
%\clearpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Kapitel
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\thepage}{\arabic{page}} % \arabic für arabische Seitenzahlen
\setcounter{page}{1}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Steckbrief
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{test}
%\input{Kapitel/ilexsteckbrief}
\thispagestyle{plain}
\end{document}
Ich habe schon ein wenig an dem Dokument rumgespielt, aber leider keine Lösung gefunden. Es werden keine Warnungen ausgegeben und keine Fehler.
Mein Ziel war es:
Ich möchte gern in Inhaltsverzeichnis, darunter dann die Liste der Tabellen und schließlich die Abbildungen. Alle Seiten sollten römisch nummeriert sein.
Eigentlich habe ich den Code dafür, aber beim Inhaltesverzeichnis wird einfach nicht nummeriert.
Hat vielleicht jemand die Lösung für mich?
Vielen Dank schonmal für eure Mühen!