Question
How can I exclude a custom titling command (sectioning command) from the table of contents? Note that I do not want to simply inherit the \paragraph, because it is reserved for and extra deeper layer of sectioning.
Example
I would like to create a section called \minisec with titlesec, that is
- numbered, yet does not show the number (for possible future decisions regarding numbering).
- It does not show up in the table of contents.
- It is lower than
\paragraph
Sample Code
\titleclass{\minisec}{straight}[\paragraph]
\newcounter{minisec}
\setcounter{secnumdepth}{5}
\titleformat{\minisec}[hang]{\normalsize\bfseries}{}{0pt}{#1}
\titlespacing*{\minisec}{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}
\newcommand{\minisecautorefname}{minisec}
I adapted this code from https://tex.stackexchange.com/a/17278/13552

\titleclass{\minisec}{straight}[\paragraph] \newcounter{minisec} \setcounter{secnumdepth}{5} \titleformat{name=\minisec,numberless}[hang]{\normalsize\bfseries}{}{0pt}{#1} \titlespacing*{\minisec}{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}is OK for you? – Feb 04 '15 at 13:01\minisec{Presettings}. Could that have something to do with the fact that I am using theexplicitoption intitlesec? – Jonathan Komar Feb 04 '15 at 13:28\minisec*{Presettings}Note the star. – Feb 04 '15 at 13:47setcounter{secnumdepth}{5}. Using starred commands are not an option for me. Also, my\paragraphhas been reassigned to work like a\subsubsubsection, so the code you provided will not work. – Jonathan Komar Feb 04 '15 at 13:51minisecby default ;-) – Johannes_B Feb 04 '15 at 15:29\subsubsubsection, so how could we have guessed that? Please, instead of just useless snippets, add to your question a complete, yet minimal, document showing (only) the relevant settings related to your question. – Gonzalo Medina Feb 04 '15 at 16:40