Coccy
07-08-2009, 13:05
Hallöle,
seitdem ich beim Anhang angelangt bin, tauchen nur noch Probleme auf, wahrscheinlich habe ich meine Formatvorlage total vermurkst :confused:
Ich habe in der Präambel eine neue Abbildungsunterschrift definiert: Abb. sollte es sein. Seitdem ich den Anhang bearbeite macht Latex aus Abb.1: -> Abb.1.:. Wie kriege ich den Punkt wieder weg? Wenn ich den Anhang auskommentiere funktioniert alles wieder, also muss da irgendwas schief gelaufen sein, oder?
Mini-Bsp:
\documentclass[a4paper,12pt]{scrreprt}
%% Sprachen %%%%%%%%%%%%%%%%%%%%
\usepackage{ngerman} %% deutsch mit neuer Rechtschreibung
%% Seite einrichten %%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{scrpage2}
\usepackage{geometry} %% Seitenränder anpassen
\geometry{a4paper,left=22mm,right=13mm,top=12mm,bo ttom=19mm}
\usepackage[T1]{fontenc}
\usepackage{helvet} %% serifenlos (Arial)
\renewcommand{\familydefault}{\sfdefault} %% Arial
%% Anlagen %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{appendix}
%% Definition von verschiedenen Verzeichnissen für KOMA-Script
%%(Inhaltsverzeichnis = \maintoc, Anlagenverzeichnis = \appendixtoc)
\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
Anlagenverzeichnis}%
\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
%% Nummerireung Abb., Tab., Gleichung ändern (fortlaufend)
\usepackage{chngcntr} %% für Eingriff in Nummerierung (counterwithout)
\usepackage[bf,singlelinecheck=false]{caption} %% Bezeichnung fettgedruckt
\renewcommand{\captionfont}{\footnotesize} %% Schriftgröße
\renewcommand{\figurename}{Abb.} %% Abbildungsunterschrift ändern
\counterwithout{figure}{chapter} %% Kapitel in Nummerierung nicht einbeziehen
\renewcommand{\tablename}{Tab.} %% Tabellenüberschrift ändern
\counterwithout{table}{chapter} %% Kapitel in Nummerierung nicht einbeziehen
\counterwithout{equation}{chapter} %% Gleichungen
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%
\begin{document}
%% Inhaltsverzeichnis %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%
\maintoc
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Hauptteil %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{bla}
\label{sec:bla}
text
\begin{figure}[h]
\centering
% \fbox{\includegraphics[width=17cm]{figures/testbild.eps}}
\caption{testbild}
\label{fig:test}
\end{figure}
\section{blub}
\label{sec:blub}
text
%% Anlagen %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newpage
\renewcommand{\appendixname}{Anlage} % umbenennen in Anlage
\appendix
\appendixtoc
\chapter{Anlagen bla}
\label{sec:AnlagenBla}
text
\begin{figure}[h]
\centering
% \fbox{\includegraphics[width=17cm]{figures/testbild.eps}}
\caption{testbild}
\label{fig:test}
\end{figure}
\section{Anlagen blub}
\label{sec:AnlagenBlub}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{document}
Danke schonmal
seitdem ich beim Anhang angelangt bin, tauchen nur noch Probleme auf, wahrscheinlich habe ich meine Formatvorlage total vermurkst :confused:
Ich habe in der Präambel eine neue Abbildungsunterschrift definiert: Abb. sollte es sein. Seitdem ich den Anhang bearbeite macht Latex aus Abb.1: -> Abb.1.:. Wie kriege ich den Punkt wieder weg? Wenn ich den Anhang auskommentiere funktioniert alles wieder, also muss da irgendwas schief gelaufen sein, oder?
Mini-Bsp:
\documentclass[a4paper,12pt]{scrreprt}
%% Sprachen %%%%%%%%%%%%%%%%%%%%
\usepackage{ngerman} %% deutsch mit neuer Rechtschreibung
%% Seite einrichten %%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{scrpage2}
\usepackage{geometry} %% Seitenränder anpassen
\geometry{a4paper,left=22mm,right=13mm,top=12mm,bo ttom=19mm}
\usepackage[T1]{fontenc}
\usepackage{helvet} %% serifenlos (Arial)
\renewcommand{\familydefault}{\sfdefault} %% Arial
%% Anlagen %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{appendix}
%% Definition von verschiedenen Verzeichnissen für KOMA-Script
%%(Inhaltsverzeichnis = \maintoc, Anlagenverzeichnis = \appendixtoc)
\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
Anlagenverzeichnis}%
\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
%% Nummerireung Abb., Tab., Gleichung ändern (fortlaufend)
\usepackage{chngcntr} %% für Eingriff in Nummerierung (counterwithout)
\usepackage[bf,singlelinecheck=false]{caption} %% Bezeichnung fettgedruckt
\renewcommand{\captionfont}{\footnotesize} %% Schriftgröße
\renewcommand{\figurename}{Abb.} %% Abbildungsunterschrift ändern
\counterwithout{figure}{chapter} %% Kapitel in Nummerierung nicht einbeziehen
\renewcommand{\tablename}{Tab.} %% Tabellenüberschrift ändern
\counterwithout{table}{chapter} %% Kapitel in Nummerierung nicht einbeziehen
\counterwithout{equation}{chapter} %% Gleichungen
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%
\begin{document}
%% Inhaltsverzeichnis %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%
\maintoc
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Hauptteil %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{bla}
\label{sec:bla}
text
\begin{figure}[h]
\centering
% \fbox{\includegraphics[width=17cm]{figures/testbild.eps}}
\caption{testbild}
\label{fig:test}
\end{figure}
\section{blub}
\label{sec:blub}
text
%% Anlagen %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newpage
\renewcommand{\appendixname}{Anlage} % umbenennen in Anlage
\appendix
\appendixtoc
\chapter{Anlagen bla}
\label{sec:AnlagenBla}
text
\begin{figure}[h]
\centering
% \fbox{\includegraphics[width=17cm]{figures/testbild.eps}}
\caption{testbild}
\label{fig:test}
\end{figure}
\section{Anlagen blub}
\label{sec:AnlagenBlub}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{document}
Danke schonmal