答案1
这是一个解决方案titletoc
:
\documentclass[openright]{report}
\usepackage[utf8]{inputenc}
\usepackage{titlesec}
\usepackage{titletoc}
\renewcommand\thesection{\arabic{section}}
\titlecontents{chapter}[1.05em]{\bigskip}%
{\contentslabel[\MakeUppercase{\romannumeral\thecontentslabel}]{1em}\enspace\textsc}%numbered\contentslabel
{\hspace*{-1em}\textsc}%numberless
{\hfill\contentspage}%
%
\titlecontents{section}[1.6em]{\smallskip}%
{\thecontentslabel.\enspace}%numbered
{}%numberless
{\titlerule*[1pc]{.}\contentspage}%
\setcounter{tocdepth}{1}
\usepackage{lipsum}
\begin{document}
\pagenumbering{roman}
\tableofcontents
\chapter*{Preface}
\addcontentsline{toc}{chapter}{Preface}
\clearpage
\pagenumbering{arabic}
\chapter{A first chapter}
\section{A first section}
\lipsum[1-4]
\section{Another section}
\lipsum[5-6]
\chapter{A second chapter}
\lipsum[7-12]
\end{document}