[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: |
Sat, 25 Mar 2023 16:51:25 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Jan Braun <Jan.Braun@klein-gallien.org> writes:
>> But even with this code added: we may have to dig deeper
>> into the problem?
I think I had a typo in the code I suggested, it should read:
(with-eval-after-load "tex-mode"
(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))))
Now take a small example like this:
%\iffalse
%<*driver>
\documentclass{ltxdox}
\usepackage{microtype} % and other usual LaTeX preamble stuff
\EnableCrossrefs
\CodelineIndex
\RecordChanges
\setcounter{IndexColumns}{2}
\begin{document}
\DocInput{jb-test.dtx}
\end{document}
%</driver>
%\fi
%
% \section{Introduction}
% This is some introduction.
%
% \section{User macros}
% This is some text.
% And this is some text
%
% \section{Implementation}
%
% \begin{macrocode}
%<*package>
% \end{macrocode}
%
% \begin{macrocode}
\def\foo#1{%
$#1$%
}
% \end{macrocode}
%
% \begin{macrocode}
%</package>
% \end{macrocode}
%
%\endinput
% Local Variables:
% mode: doctex
% End:
When I start Emacs with 'emacs -Q', open the file above, do
'M-x outline-minor-mode RET' followed by 'C-c @ C-t', this is what I
see:
Or do you expect something else?
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, 2023/03/21
- 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 <=
- 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
- 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
- bug#62278: 28.2; Outline in DocTeX mode, Jan Braun, 2023/03/28
- bug#62278: 28.2; Outline in DocTeX mode, Arash Esbati, 2023/03/28