Seite 1 von 1

Falsche Nummerierung im Appendix

Verfasst: Fr 22. Jan 2016, 13:47
von Tetris
Hallo alle zusammen!



Ich habe in meinem Anhang ein Problem:
statt A.1 steht da .1

Ebenfalls moechte ich statt fig.(1) dass da fig.(A.1) steht.


Der Quellcode sieht in etwa so aus:

\documentclass[11pt]{report}
\usepackage{amsmath,amssymb,bm}
%\usepackage{amssymb}
\usepackage{graphics}
\usepackage{graphicx}
\usepackage{amsmath,amssymb,amscd,amsfonts,bm}
\usepackage{tikz}
\usepackage{pgfplots}
%\usepackage[ngerman,english]{babel}
\usepackage[german,english]{babel}
\usepackage[toc,page]{appendix}
%\usepackage{appendix}
%\usepackage[titletoc]{appendix}
%\usepackage{amssymb}
%\usepackage{epstopdf}
\usepackage{url}
%\usepackage{breqn}
%\usepackage[english,german]{babel}
\newcommand{\Tr}{{\rm{Tr}}}
\newcommand{\soft}{{\rm{soft}}}
\newcommand{\ME}{M}
\newcommand{\la}{\langle}
\newcommand{\ra}{\rangle}
\newcommand{\ep}{\epsilon}
\newcommand{\as}{\alpha_{\mathrm{s}}}
\newcommand{\aspi}{\frac{\alpha_\mathrm{s}}{2\pi}}
\newcommand{\LA}{\mathrm{A}}
\newcommand{\LB}{\mathrm{B}}
\newcommand{\LE}{\mathrm{E}}
\newcommand{\LF}{\mathrm{F}}
\newcommand{\LI}{\mathrm{I}}
\newcommand{\LS}{\mathrm{S}}
\newcommand{\La}{\mathrm{a}}
\newcommand{\Lb}{\mathrm{b}}
\newcommand{\Lc}{\mathrm{c}}
\newcommand{\Ls}{\mathrm{s}}
\newcommand{\Lh}[1]{\mathrm{h}_{#1}}




%  Bracket macros
\def\ket#1{\big|{#1}\big\rangle}
\def\bra#1{\big\langle{#1}\big|}
\def\brax#1{\big\langle{#1}}   % No "|"
\def\<>#1{\big\langle{#1}\big\rangle}
\def\[]#1{\big[{#1}\big]}


\def\sket#1{\big|{#1}\big)}
\def\sbra#1{\big({#1}\big|}
\def\sbrax#1{\big({#1}}        % No "|"

\def\dualL{\raisebox{-5 pt}{$\scriptstyle D$}\!}   % subscript D on left.
\def\dualR{\!\raisebox{-5 pt}{$\scriptstyle D$}} % subscript D on right.

\newbox\charbox


\newbox\slabox
\def\s#1{{      % Feynman slash
        \setbox\charbox=\hbox{$#1$}
        \setbox\slabox=\hbox{$/$}
        \dimen\charbox=\ht\slabox
        \advance\dimen\charbox by -\dp\slabox
        \advance\dimen\charbox by -\ht\charbox
        \advance\dimen\charbox by \dp\charbox
        \divide\dimen\charbox by 2
        \raise-\dimen\charbox\hbox to \wd\charbox{\hss/\hss}
        \llap{$#1$}
}}


\def\pythia{{\sc Pythia}}
\def\herwig{{\sc Herwig}}
\def\powheg{{\sc Powheg}}
\def\cascade{{\sc Cascade}}
\def\mcatnlo{{\sc Mc@nlo}}


%\usepackage{mystyle}
\usepackage{cite,./mcite}
\usepackage{authblk}
\usepackage{lineno}
\linenumbers
%\pagewiselinenumbers
\switchlinenumbers

\newcommand{\Pom}{I$\!$P}                \def\lsim{\mathrel{\rlap{\lower4pt\hbox{\hskip1pt$\sim$}}
    \raise1pt\hbox{$<$}}}                \def\gsim{\mathrel{\rlap{\lower4pt\hbox{\hskip1pt$\sim$}}
    \raise1pt\hbox{$>$}}}                \newcommand{\cA}{{\cal A}}
%\newcommand{\as}{\alpha_\mathrm{s}}
\newcommand{\asb}{{\bar \alpha}_\mathrm{s}}
\def\prp{t}
\def\kti#1{\ensuremath{k_{\prp #1}}}
\def\pti#1{\ensuremath{p_{\prp #1}}}
\newcommand{\pt}{p_{t}}
\def\ktveci#1{\ensuremath{{\vec k}_{t #1}}}
\newcommand{\ktvec}{{\vec k}_{t}}
\newcommand{\kt}{k_{t}}
\newcommand{\ktp}{k_{t}^{\prime}}
\def\sudp#1{\ensuremath{{\bf p}_{ #1}}}

\newcommand{\shat}{\hat{s}}
\newcommand{\that}{\hat{t}}
\newcommand{\uhat}{\hat{u}}
\newcommand{\Pmax}{{q}}


\def\question#1{\footnote{\textbf{QUESTION: #1}}}
\def\answer#1{\footnote{\textbf{ANSWER: #1}}}
\newcommand{\todo}[1]{\vspace*{3mm}\par\noindent\textbf{$  \Longrightarrow$ #1}\vspace*{4mm}}

\newcommand{\CCFM}{Ciafaloni:1987ur,Catani:1989yc,Catani:1989sg,Marchesini:1994wr}
%\newcommand{\BFKL}{Kuraev:1976ge,Kuraev:1977fs,Balitsky:1978ic}
\newcommand{\BFKL}{Fadin:1975cb,Kuraev:1976ge,Balitsky:1978ic}
\newcommand{\LDC}{LDCa,LDCb,LDCc,LDCd}
\newcommand{\alphasb}{\bar{\alpha}_s}
\newcommand{\JETSETMC}{\PYTHIAMC}
\newcommand{\LEPTOMC}{Ingelman_LEPTO65}
\newcommand{\PYTHIAMC}{Sjostrand:2006za,Sjostrand:2007gs}
\newcommand{\RAPGAPMC}{Jung:1993gf,RAPGAP32}
\newcommand{\HERWIGMC}{Marchesini:1991ch,Corcella:2002jc,Bahr:2008pv}
%\newcommand{\DGLAP}{Gribov:1972ri,Lipatov:1974qm,Altarelli:1977zs,Dokshitzer:1977sg}
\newcommand{\DGLAP}{Gribov:1972ri,Lipatov:1974qm,Dokshitzer:1977sg}
%\newcommand{\partonmodel}{Lipatov:1974qm,Gribov:1972ri,
\newcommand{\strings}{Paton:1969je,Berends:1987cv,Mangano:1987xk,Mangano:1988kk}
\newcommand{\hera}{Adloff:1997mf,Adloff:2000qk}
\newcommand{\jetset}{Sjostrand:1985ys,Sjostrand:1986hx}
\newcommand{\herwigzwo}{Marchesini:1987cf,Marchesini:1991ch}

\def\CASCADE{{\sc Cascade}}
\def\RAPGAP{{\sc Rapgap}}
\def\PYTHIA{{\sc Pythia}}
\def\HERWIG{{\sc Herwig}}
\def\MC{MCEG}


\begin{document}\selectlanguage{english}

\chapter{moin}

chapter{hallo}
.....


\clearpage
\appendix


\bibliographystyle{MPI2015}
\bibliography{references}

\end{document}

Verfasst: Fr 22. Jan 2016, 15:39
von esdd
Kannst Du bitte ein Minimalbeispiel erstellen, also ein möglichst kurzes, aber lauffähiges Beispiel, mit dem andere Dein Problem reproduzieren können. Mit Deinem Code bekommen wir nur das, was Du auch sehen kannst, wenn Du oberhalb Deines Codes auf "Öffne in Online-Editor" klickst ...

Verfasst: Mo 25. Jan 2016, 13:03
von Tetris
Hier ist ein Minimalbeispiel. Ich habe so viel wie moeglich herausgenommen, was meines Erachtens ueberfluessig ist:

\documentclass[11pt]{report}
\usepackage[german,english]{babel}
\usepackage[toc,page]{appendix}




\begin{document}

\chapter{moin}

\chapter{hallo}

siehe \ref{problem}

\clearpage
\appendix
\section{Problem}\label{problem}
hier steht der Anhang
\bibliographystyle{MPI2015}
\bibliography{references}

\end{document}

Verfasst: Mo 25. Jan 2016, 14:53
von Bartman
\documentclass[11pt]{report}
\usepackage[ngerman,english]{babel}
\usepackage[toc,page]{appendix}

\begin{document}

\chapter{moin}

\chapter{hallo}

siehe \ref{problem}

\clearpage
\appendix
\chapter{Erstes Kapitel im Anhang} % Ergänzung
\section{Problem}\label{problem}
hier steht der Anhang

\begin{figure}
\caption{Ein Bild im Anhang}
\end{figure}

\bibliographystyle{MPI2015}
\bibliography{references}

\end{document} 

Verfasst: Mo 25. Jan 2016, 15:10
von Tetris
Vielen Dank fuer die Antwort. Mir ist jetzt klar, was schief gelaufen ist (ich wusste nicht, dass man im Anhang noch extra ein Kapitel eroffnen muss;
ist irgendwie mit Kanonen auf Spatzen geschossen).

Ach uebrigens Entschuldigung, dass ich den Quellcode nicht korrekt zitiert habe; ist mein erstes Mal hier.