|
From: | Kourosh Kalayeh |
Subject: | Add fictitious subsections to RefTeX TOC |
Date: | Sun, 22 Dec 2024 11:05:24 -0500 |
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;
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
To get the following,
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
I have tried \phantomsection
and \addcontentsline
as below;
\phantomsection \refstepcounter{subsubsection} \addcontentsline{toc}{subsubsection}{Aim 1}
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
[Prev in Thread] | Current Thread | [Next in Thread] |