-
Notifications
You must be signed in to change notification settings - Fork 407
E716: Key not present in Dictionary: "subsubsubsubsection" #2850
Copy link
Copy link
Closed
Labels
Description
Description
I create deeper section levels: sub-sub-sub-section and sub-sub-sub-sub-section.
In the preamble, the declaration is as follows.
\usepackage{relsize} % For \relscale{}
\makeatletter
\newcommand{\subsubsubsection}{\@startsection{paragraph}{5}{\z@}{-2.5ex\@plus -1ex \@minus -.25ex}{1.25ex \@plus .25ex}{\noindent\normalfont\relscale{1.2767}}}
\makeatother
\setcounter{secnumdepth}{5}
\setcounter{tocdepth}{5}
\makeatletter
\newcommand{\subsubsubsubsection}{\@startsection{subparagraph}{6}{\z@}{-2.5ex\@plus -1ex \@minus -.25ex}{1.25ex \@plus .25ex}{\noindent\normalfont\relscale{1.123}}}
\makeatother
\setcounter{secnumdepth}{6}
\setcounter{tocdepth}{6}
sub-sub-sub-section shows in ToC (vimtex-toc-open ), functioning normally. However, once there is sub-sub-sub-sub-section in text, ToC gives the following message.
Error detected while processing function 90[12]..95[5]..vimtex#parser#toc[13]..vimtex#parser#toc#parse[8]..vimtex#parser#toc#level:
line 1:
E716: Key not present in Dictionary: "subsubsubsubsection"
Is there any remedy for this? Thanks.
Additional info:
OS: Win 10
Steps to reproduce
test.tex
\documentclass[10pt,b5paper]{article}
\makeatletter
\newcommand{\subsubsubsection}{\@startsection{paragraph}{5}{\z@}{-2.5ex\@plus -1ex \@minus -.25ex}{1.25ex \@plus .25ex}{\noindent\normalfont}}
\makeatother
\setcounter{secnumdepth}{5}
\setcounter{tocdepth}{5}
\makeatletter
\newcommand{\subsubsubsubsection}{\@startsection{subparagraph}{6}{\z@}{-2.5ex\@plus -1ex \@minus -.25ex}{1.25ex \@plus .25ex}{\noindent\normalfont}}
\makeatother
\setcounter{secnumdepth}{6}
\setcounter{tocdepth}{6}
\begin{document}
\frontmatter
\tableofcontents
\mainmatter
\section{Section}
123
\subsection{Sub-Section}
123
\subsubsection{Sub-Sub-Section}
123
\subsubsubsection{Sub-Sub-Sub-Section}
123
\subsubsubsubsection{Sub-Sub-Sub-Sub-Section}
123
\end{document}
Expected behavior
ToC can function normally where
- sub-sub-sub-sub-section may show in ToC or
- sub-sub-sub-sub-section may not show.
Actual behavior
Vimtex gives the following message
Error detected while processing function 90[12]..95[5]..vimtex#parser#toc[13]..vimtex#parser#toc#parse[8]..vimtex#parser#toc#level:
line 1:
E716: Key not present in Dictionary: "subsubsubsubsection"
Do you use a latexmkrc file?
No. There is no such file latexmkrc in the project directory.
VimtexInfo
Error detected while processing function vimtex#info#open[2]..vimtex#scratch#new[2]..222[32]..224[4]..210[1]..211[1]..<SNR>99_get_os_info[18]..vimtex#jobs#cached[4]..8[4]..9:
line 6:
E474: String "<a5>D<be><f7><a6>W<ba><d9>: HW1120005" contains byte that does not start any UTF-8 character
Error detected while processing function vimtex#info#open[2]..vimtex#scratch#new[2]..222[32]..224[4]..210:
line 1:
E1098: String, List or Blob requiredReactions are currently unavailable