\bgroup
  
    \let\ifx=\relax
  
    \let\:temp=\relax
  
    \let\:tempa=\expandafter
  
    \let\expandafter=\relax
  
    \let\:TableOfContents=\relax
  
    \let\else=\relax
  
    \let\if=\relax
  
    \let\fi=\relax
  
    \def\Auto:ent#1{\noexpand\Auto:ent{#1,toclvla,liketoclvla,toclvlb,%
  
       liketoclvlb,toclvlc,liketoclvlc,toclvld,liketoclvld,toclvle,%
  
       liketoclvle,toclvlf,liketoclvlf,toclvlg,liketoclvlg,toclvlh,%
  
       liketoclvlh,toclvli,liketoclvli,toclvlj,%
  
       liketoclvlj,toclvlk,liketoclvlk,toclvll,liketoclvll}}
  
    \edef\:TOC{\def\noexpand\:TOC{\:TOC}}
  
    \:tempa
  
 \egroup \:TOC
-_-_-
   
 
      The cmidrule introduces ruler segments at different rows, instead of all of them in
the same row.