[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#62278: 28.2; Outline in DocTeX mode
From: |
Arash Esbati |
Subject: |
bug#62278: 28.2; Outline in DocTeX mode |
Date: |
Tue, 21 Mar 2023 08:43:57 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Jan Braun <Jan.Braun@klein-gallien.org> writes:
> When I start it as 'emacs -Q <file>.dtx‘ it opens the requested file in
> DocTeX mode.
>
> Next I load 'outline-minor-mode‘. If I than run the command
> 'outline-hide-body‘ I’d expect to be presented with the various
> \section, \subsection, … commands. But this does not happen.
>
> Instead the first meta comment, the documentclass command and the
> document environment are displayed, see the text below. Any other
> sectioning command is hidden.
I'd say this is by design: `latex-outline-regexp' defined in tex-mode.el
doesn't cater for headings which start with '%', but in doctex mode,
almost all of them do so. So you have to tell doctex about it with this
piece of code (which I haven't tested) in your init file:
(add-hook 'doctex-mode-hook
(lambda ()
(setq-local latex-outline-regexp
(concat "[% \t]*" "\\\\"
(regexp-opt
(append latex-metasection-list
(mapcar #'car latex-section-alist))
t))))
(setq-local outline-regexp latex-outline-regexp))
Best, Arash
- bug#62278: 28.2; Outline in DocTeX mode, Jan Braun, 2023/03/19
- bug#62278: 28.2; Outline in DocTeX mode,
Arash Esbati <=
- bug#62278: 28.2; Outline in DocTeX mode, Jan Braun, 2023/03/21
- bug#62278: 28.2; Outline in DocTeX mode, Arash Esbati, 2023/03/21
- Message not available
- bug#62278: 28.2; Outline in DocTeX mode, Jan Braun, 2023/03/25
- bug#62278: 28.2; Outline in DocTeX mode, Arash Esbati, 2023/03/25
- bug#62278: 28.2; Outline in DocTeX mode, Jan Braun, 2023/03/25
- bug#62278: 28.2; Outline in DocTeX mode, Arash Esbati, 2023/03/25
- bug#62278: 28.2; Outline in DocTeX mode, Jan Braun, 2023/03/26
- bug#62278: 28.2; Outline in DocTeX mode, Arash Esbati, 2023/03/27
- bug#62278: 28.2; Outline in DocTeX mode, Jan Braun, 2023/03/27
- bug#62278: 28.2; Outline in DocTeX mode, Arash Esbati, 2023/03/27