Your definition of \appendixmore will works with KOMA-Script version 3.34, too.
If LaTeX as of version 2021/06/01 is used with a KOMA-Script class
From changelog of version 3.34
\appendix contains a LaTeX hook named <class>/appendix, where <class> is the name of the KOMA-Script class.
- This hook is executed before
\appendixmore.
- Option
appendixprefix (and headings=onelineappendix and headings=twolineappendix) is no longer implemented
via \appendixmore, but via the LaTeX hook <class>/appendix.
So a user defined \appendixmore will be executed with KOMA-Script version 3.34, too. Additionally you can use \newcommand\appendixmore{...} even if you use one of the options appendixprefix, headings=onelineappendix or headings=twolineappendix.
Example:
\documentclass
[appendixprefix=false]
{scrreprt}
\newcommand{\appendixmore}{\renewcommand{\chapterformat}{This is \appendixname:\enskip}}
\begin{document}
\chapter{Foo}
\appendix
\chapter{Bar}
\KOMAScriptVersion
\end{document}
works with an uptodate KOMA-Script prerelease of version 3.34 and LaTeX as of version 2021/06/01. But with KOMA-Script version 3.33 or older you would get the error message »Command \appendixmore already defined.«, because the old KOMA-Script versions have defined this macro to implement the options appendixprefix etc.
The following example can be used with KOMA-Script version 3.33 or version 3.34. It removes the dot only from appendix chapters numbering and adds the prefix in ToC without an additional package:
\documentclass{scrreprt}
\newcommand{\appendixmore}{
\renewcommand{\chapterformat}{\thechapter\enskip}%
\renewcommand*{\chaptermarkformat}{\thechapter\enskip}%
\addtocontents{toc}{\protect\appendixtocentry}%
}
\newcommand*{\appendixtocentry}{%
\DeclareTOCStyleEntry[
entrynumberformat=\appendixprefixfixintoc,
dynnumwidth
]{default}{chapter}%
}
\newcommand{\appendixprefixfixintoc}[1]{%
\def\autodot{}%
\appendixname~#1%
}
\begin{document}
\tableofcontents
\KOMAScriptVersion
\chapter{Lorem ipsum}
\section{Dolor sit amet}
\appendix
\chapter{Consectetur adipiscing elit, Consectetur adipiscing elit, Consectetur adipiscing elit}
\chapter{Mauris euismod}
\end{document}
Run three times to get

It is also possible to use the new hook provided by KOMA-Script version 3.34:
\documentclass{scrreprt}[2021-04-30]
\AddToHook{scrreprt/appendix}{%
\AddToHook{cmd/chapterformat/before}{\def\autodot{}}%
\AddToHook{cmd/chaptermarkformat/before}{\def\autodot{}}%
\addtocontents{toc}{\appendixtocentry}%
}
\NewDocumentCommand{\appendixtocentry}{}{%
\DeclareTOCStyleEntry[
entrynumberformat=\appendixprefixfixintoc,
dynnumwidth
]{default}{chapter}%
}
\NewDocumentCommand{\appendixprefixfixintoc}{m}{%
\def\autodot{}%
\appendixname~#1%
}
\begin{document}
\tableofcontents
\KOMAScriptVersion
\chapter{Lorem ipsum}
\section{Dolor sit amet}
\appendix
\chapter{Consectetur adipiscing elit, Consectetur adipiscing elit, Consectetur adipiscing elit}
\chapter{Mauris euismod}
\end{document}
But may be it is better to use a generic hook of command \appendix: cmd/appendix/after. It is executed at the very end of the command body of \appendix. Note \appendixmore - if defined - would be executed before this hook.
\documentclass{scrreprt}[2021-04-30]
\AddToHook{cmd/appendix/after}{%
\AddToHook{cmd/chapterformat/before}{\def\autodot{}}%
\AddToHook{cmd/chaptermarkformat/before}{\def\autodot{}}%
\addtocontents{toc}{\appendixtocentry}%
}
\NewDocumentCommand{\appendixtocentry}{}{%
\DeclareTOCStyleEntry[
entrynumberformat=\appendixprefixfixintoc,
dynnumwidth
]{default}{chapter}%
}
\NewDocumentCommand{\appendixprefixfixintoc}{m}{%
\def\autodot{}%
\appendixname~#1%
}
\begin{document}
\tableofcontents
\KOMAScriptVersion
\chapter{Lorem ipsum}
\section{Dolor sit amet}
\appendix
\chapter{Consectetur adipiscing elit, Consectetur adipiscing elit, Consectetur adipiscing elit}
\chapter{Mauris euismod}
\end{document}
The result is the same as above.
\renewcommand*{\chapterformat}{\appendixname~\thechapter~~}before\appendix, the dots get removed in the chapter title. However, they still appear in the toc. I also tried adding the line in the preable but this does nothing to the punctuation in the toc. – EndOfEra Jun 16 '21 at 09:34noenddotoption and also explains that\autodotcan be removed for specific cases. – schtandard Jun 18 '21 at 07:55