Hi Everyone, I’m trying to add a "fictitious" subsubsection to the RefTeX TOC so that it appears in the RefTeX table of contents but does not render in the compiled document. For example, I’d like to add =2.3.1 General= and =2.3.2 Aim 1= to the following TOC; #+begin_example 2.3 Approach 2.3.0.1 Sub approach-1 2.3.0.2 Sub approach-2 2.3.0.3 Introduction 2.3.0.4 Expected Results, Interpretations, Possible Pitfalls 2.3.0.5 Statistical Plan #+end_example
To get the following, #+begin_example 2.3 Approach 2.3.1 General 2.3.1.1 Sub approach-1 2.3.1.2 Sub approach-2 2.3.2 Aim 1 2.3.2.2 Introduction 2.3.2.2 Expected Results, Interpretations, Possible Pitfalls 2.3.2.3 Statistical Plan #+end_example I have tried =\phantomsection= and =\addcontentsline= as below; #+begin_src LaTeX \phantomsection \refstepcounter{subsubsection} \addcontentsline{toc}{subsubsection}{Aim 1} #+end_src This works with =\tableofcontents= command in LaTeX but not with RefTeX. Is there a straightforward way to achieve this in RefTeX? Thank you for your help! Best, Kourosh