Как отобразить номер страницы в \listoffigures и \listoftables?

Как отобразить номер страницы в \listoffigures и \listoftables?

МВЭ

\documentclass[12pt, a4paper, twoside, %openright, 
toc=listof, BCOR=5mm, bibliography=totoc, parskip=half]{scrreprt}
\usepackage[square,sort,comma,numbers]{natbib} %Literaturverzeichnis
\usepackage[linktoc=all,hidelinks]{hyperref} %Verlinkungen
\usepackage[automark,headsepline]{scrlayer-scrpage} %header

%header
\clearscrheadfoot
\automark{section}
\ihead{\headmark}
\ohead{Seite\enspace\pagemark}
\setkomafont{pageheadfoot}{\normalfont}

\begin{document}
\thispagestyle{plain}
\pagenumbering{Roman}
\tableofcontents
\thispagestyle{plain}
\KOMAoptions{open=any}
\thispagestyle{plain}
\listoffigures %Abbildungsverzeichnis
\thispagestyle{plain}
\listoftables %Tabellenverzeichnis
\thispagestyle{plain}

\cleardoublepage
\KOMAoptions{open=right}
\pagestyle{headings}

\end{document}

так что я пытался получить здесь вывод, где у меня есть мои обычные заголовки на каждой обычной странице, но просто простой номер страницы (в римском стиле) на страницах моего списка рисунков и списка таблиц, но то, что я получил, это отсутствие номеров страниц на страницах списка, хотя у меня есть номера страниц в оглавлении. Ни один из этих списков не имеет более одной страницы, поэтому я не знаю, будет ли показан номер страницы после первой страницы.

решение1

Я думаю, это то, чего вы хотите добиться.

Сначала настраиваются верхний и нижний колонтитулы для списков, затем все очищается и еще раз настраивается содержимое основной части.

\documentclass[12pt, a4paper, twoside, %openright, 
toc=listof, BCOR=5mm, bibliography=totoc, parskip=half]{scrreprt}
\usepackage[square,sort,comma,numbers]{natbib}

\usepackage{blindtext}
\usepackage{pgffor}
\usepackage{showframe}

\usepackage[automark,headsepline]{scrlayer-scrpage}
\clearpairofpagestyles
%\automark{section}%JB Are you sure?
\cfoot*{\pagemark}
\setkomafont{pageheadfoot}{\normalfont}
\usepackage[linktoc=all,hidelinks]{hyperref}

\begin{document}
\pagenumbering{Roman}
\tableofcontents
\KOMAoptions{open=any}
\listoffigures
\listoftables

\cleardoublepage
\pagenumbering{arabic}
\clearpairofpagestyles
\ohead*{Seite\enspace\pagemark}
\ihead{\headmark}
\KOMAoptions{open=right}

\foreach \x in {1,...,10} {%
    \chapter{Chapter}
    \section{Walzing}
    \blindtext
    \captionof{figure}{Figure \x}
    \captionof{figure}{Figure \x}
    \captionof{figure}{Figure \x}
    \section{Wombat}
    \Blindtext[4][3]
    \captionof{table}{Table \x}
    \captionof{table}{Table \x}
    \captionof{table}{Table \x}
}
\end{document}

Связанный контент