Is there an easy way to create a inner section like environment that can produce a sub-table of contents at a preferred location? The sub-table does not necessarily need to give page numbers, but it should set links to the inner subsection items.
What I have in mind looks somewhat like this
\section{Lorem Ipsum}
\myinnersec_subtable
\myinnersec{InnerSubSectionOne}\label{InnerSubSectionOne}
....
\myinnersec{InnerSubSectionTwo}\label{InnerSubSectionTwo}
....
and should produce something like
Best Answer
You can achieve the partial ToC using the
titletoc
package and its\startcontents
,\printcontents
,\stopcontents
commands. A little example, showing the partial ToC for a section and the active hyperlinks:In a comment to the question, it has been requested that the inner subsections shouldn't be included in the general table of contents; this can be achieved by using
\startcontents
,\printcontents
,\resumecontents
to print the general table of contents: