[Tex/LaTex] Can’t include appendix

appendices

I'm writing my thesis and I need to add an appendix. I'm using a main file as a frame with \input for importing the single chapters.

For the appendix I'm doing this:

\appendix
\input{AppendixA.tex}

But when I try to compile the file, it doesn't show the Appendix. Any ideas of what the problem could be?

Code of the problem:

\documentclass[a4paper,12pt,twoside,openright]{report}
\usepackage[titletoc]{appendix}

\begin{document}
\title{Something}
\maketitle

\body

\chapter{Introduction}
\input{Introduction.tex}

\chapter{Conclusions}
\input{Conclusions.tex}


\bibliographystyle{splncs}
\bibliography{bibliography}


\appendix
\input{AppendixA.tex}

\end{document}

Best Answer

With the given data, I was not able, to reproduce your problem.

Maybe, there is a problem in the content of the two \includes before the Appendix starts?

I had problems with the command \body indead.

I also want to point out, that you do not need to add the .tex extension as argument to \input.

This is my MWE:

documentclass[a4paper,12pt,twoside,openright]{report}
\usepackage[titletoc]{appendix}
\usepackage{lipsum} % <--- added to get some text

\begin{document}
\title{Something}
\maketitle

\chapter{Introduction}
\input{ch3} % <--- contains only \lipsum[3-20]

\chapter{Conclusions}
\input{ch3} % <--- same as above

\appendix
\input{ch4} % <--- another \lipsum

\end{document}

I got the chapter Bar correctly in the appendix, without changing its definition, as Saravan suggested in his answer.

enter image description here

Maybe you'll really have to investigate in your files Introduction.tex and `Conclusion.tex?