Hope I haven't misunderstood the question...
If you want to add the word "Appendix" each time a chapter title is printed (inside appendices), you can add the line
\renewcommand*\printchaptername{\Large\bfseries\appendixname~}
just after issuing the \appendix
command.
MWE
\documentclass[a4paper,openany,article]{memoir}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\maxsecnumdepth{subsection}
\settocdepth{subsection}
%----------------------------------------------------------
\begin{document}
%-------------------------------
\frontmatter
\pagenumbering{Roman}
\tableofcontents
%-------------------------------
\mainmatter
\chapter{Introduction}
\appendix
\addappheadtotoc
\renewcommand*\printchaptername{\Large\bfseries\appendixname~}
\chapter{Derivations}
\section{Celerity at arbitrary depth}\label{sec:celerity_ar_dep}
%\includepdf[pages=59,scale=1,trim = 0mm 0mm 0mm 10cm,clip]{Litteratur/Hydrodynamics2012.pdf}
%-------------------------------
\backmatter
\end{document}
Output:
If you also want the same behavior in the ToC, you can add the line
\renewcommand*\cftappendixname{\appendixname~}
in the preamble.
Instead, if you want to use
\documentclass[a4paper,openany]{memoir}
you can remove the words "Chapter" and "Appendix" from chapter titles by simply adding the following line in your preamble:
\renewcommand*\printchaptername{}
If you want to remove "Chapter" but not "Appendix" add also
\renewcommand*\printchaptername{\chapnamefont\appendixname}
just after issuing \appendix
.
The simplest way would be to use
\addchap{Algorithm}
instead of
\chapter{Algorithm}
In this way, you have an unnumbered chapter with a ToC entry. However, it does not exactly what you want.
If you want to obtain this, add the following lines in your preamble:
\usepackage{etoolbox}
\makeatletter
\appto\appendix{%
\renewcommand*{\chapterformat}{%
{\chapapp\autodot\enskip}%
}
\renewcommand*{\chaptermarkformat}{%
{\chapapp\autodot\enskip}%
}
\patchcmd{\@chapter}%
{\addchaptertocentry{\thechapter}{\scr@ds@tocentry}}%
{\addchaptertocentry{}{\scr@ds@tocentry}}%
{}
{}
}
\makeatother
MWE (I've added the option numbers=noenddot
since it seems that you want to use it):
\documentclass[chapterprefix=true,numbers=noenddot]{scrbook}
\usepackage{etoolbox}
\makeatletter
\appto\appendix{%
\renewcommand*{\chapterformat}{%
{\chapapp\autodot\enskip}%
}
\renewcommand*{\chaptermarkformat}{%
{\chapapp\autodot\enskip}%
}
\patchcmd{\@chapter}%
{\addchaptertocentry{\thechapter}{\scr@ds@tocentry}}%
{\addchaptertocentry{}{\scr@ds@tocentry}}%
{}
{}
}
\makeatother
\begin{document}
\tableofcontents
\chapter{Test}
\appendix
\chapter{Algorithm}
\end{document}
Output (ToC):
Output (Appendix):
EDIT
If you are using hyperref
this is the stuff to be added in the preamble:
\usepackage{etoolbox}
\makeatletter
\appto\appendix{%
\renewcommand*{\chapterformat}{%
{\chapapp\autodot\enskip}%
}
\renewcommand*{\chaptermarkformat}{%
{\chapapp\autodot\enskip}%
}
\patchcmd{\Hy@org@chapter}%
{\addchaptertocentry{\thechapter}{\scr@ds@tocentry}}%
{\addchaptertocentry{}{\scr@ds@tocentry}}%
{}
{}
}
\makeatother
MWE
\documentclass[chapterprefix=true,numbers=noenddot]{scrbook}
\usepackage{hyperref}
\usepackage{etoolbox}
\makeatletter
\appto\appendix{%
\renewcommand*{\chapterformat}{%
{\chapapp\autodot\enskip}%
}
\renewcommand*{\chaptermarkformat}{%
{\chapapp\autodot\enskip}%
}
\patchcmd{\Hy@org@chapter}%
{\addchaptertocentry{\thechapter}{\scr@ds@tocentry}}%
{\addchaptertocentry{}{\scr@ds@tocentry}}%
{}
{}
}
\makeatother
\begin{document}
\tableofcontents
\chapter{Test}
\appendix
\chapter{Algorithm}
\end{document}
Output (ToC):
Best Answer
A solution with the
apptools
andtitlesec
packages: