I am currently using the following code to produce a document with a specific style of section title.
\documentclass[11pt, a4paper]{report}
\usepackage[margin=1in]{geometry}
\usepackage[explicit]{titlesec}
\usepackage{xhfill}
\usepackage{varwidth}
\usepackage{lipsum}% just to generate text for the example
\newcommand\Ruled{%
\titleformat{\section}
{\normalfont\Large\bfseries}{}{0em}
{\begin{varwidth}{.7\linewidth}\raggedright##1\end{varwidth}~ \{xrfill[0.3ex]{1.5pt}}
}
\begin{document}
\Ruled
\section{Section 1.1}
\lipsum[4]
\end{document}
I would appreciate it if someone could provide a the code to produce the following output
where the numbers on the far right are page numbers for the relevant subsections. The bottom image shows what I would like to happen if a title for a particular section is too large to fit on one line. The style in
section format and style is similar to the one I am looking for, however I cannot see a way of getting rid of the dots when using minitoc. I would appreciate a quick response, as I would like to use the layout in an upcoming project.
minitocpackage does this sort of function. See http://tex.stackexchange.com/questions/3001/list-sections-of-chapter-at-beginning-of-that-chapter – Steven B. Segletes Jan 13 '17 at 19:02