I have seen the answer to a similar question, but I want more control:
I have roman Chapters and arabic sections. I want the roman numeral to be hidden from the TOC, and from the TOC only (additionally, I will also remove them later from the section titles). The most important is that I need the cross chapter section references to show the chapter number.
I tried titletoc without success (although copying almost identically a command from the manual):
\documentclass[12pt, a4paper]{report}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{titlesec,titletoc}
\renewcommand{\thechapter}{\Roman{chapter}}
\newcommand{\thesectiononly}{\arabic{section}} % Do not override \thesection.
% Large bold section titles with section number only
\titleformat{\section}{\Large\bfseries}{\thesectiononly}{24pt}{}
% bold section names in the table of contents, with section number only.
\titlecontents*{section}[12pt]{\bfseries}{\thesectiononly. }{}{\thecontentspage}
\begin{document}
% Here, we should see 1. First section......
\tableofcontents
\chapter{First chapter}
\section{First section}\label{sec:first-section}
First content.
\section{Second section}
Other content.
\chapter{Second chapter}
\section{section in second chapter}
Last content, referring to section~\ref{sec:first-section}. % Displayed as "I.1"
\end{document}
This compiles, but the resulting TOC is:

- How do I get the correct section numbering?
- How do I get default leading dots to the page number?
I know about tocloft, but haven't found a way to strip off chapter numbers using it.