Your first question can be solved by using the
tocstyle-package included in the KOMAscript-bundle. Try
at an command prompt to see the documentation.
By redefining some internal variables, if I understand your question correctly, you will have the answer to your first question. Put this commands in your preamble:
Your second question was:
However, I want to treat them as appendices to appear correctly in the page headings as "Appendix A. Electro..."
This be solved by using the class-option
appendixprefix=true, if I understand your question correctly.
A complete MWE, which (hopefully) solve all questions:
If you are using
\fronmatter, remember to use the starred version to avoid a
Chapter . with empty number in your Table of Contents. Also, if you are using the command
\addchapin you document, use the starred version (
For further reading, see page 80 in the English manual, and this discussion at the KOMAscript homepage.
NB! This code needs a recent version of