0

I have a document that I want to change the section to subsection, does a key combination from AUCTeX/Emacs commands to do that exists ?

4
  • \subsection{}??? Jun 30, 2020 at 18:47
  • Are we talking indentation, \thesection, or the secnumdepth counter? Jun 30, 2020 at 19:08
  • Imagine we have 30 sections and we need to move them to subsections. Jun 30, 2020 at 19:14
  • 1
    This will depend on the editor that you use. You probably want to use a search and replace routine.
    – muk.li
    Jun 30, 2020 at 20:04

2 Answers 2

3

You can activate outline-minor-mode. : M-x outline-minor-mode . Next

C-c @ C-< C-c @ C-> to promote or demote section level

3
1

You can use \subsection{} instead:

\documentclass{a4paper}[report]
\usepackage{lipsum}

\begin{document}

\section{This is a Section}

\lipsum[2]

   \subsection{This is a subsection}
   \lipsum[2-3]

   \subsection{This is a 2nd subsection}
   \lipsum[2-3]

\end{document}
2
  • I know, but if I have multiple sections, how would I do it using autex. Jun 30, 2020 at 19:15
  • sorry I can't help you with that.
    – raulindo
    Jun 30, 2020 at 19:41

Not the answer you're looking for? Browse other questions tagged .