all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Arash Esbati <arash@gnu.org>
To: Jan Braun <Jan.Braun@klein-gallien.org>
Cc: 62278@debbugs.gnu.org
Subject: bug#62278: 28.2; Outline in DocTeX mode
Date: Sat, 25 Mar 2023 16:51:25 +0100	[thread overview]
Message-ID: <864jq8g77m.fsf@gnu.org> (raw)
In-Reply-To: <0AB85CE9-29C1-41E2-BB75-D4741F4218E3@klein-gallien.org> (Jan Braun's message of "Sat, 25 Mar 2023 08:08:20 +0100")

[-- Attachment #1: Type: text/plain, Size: 1490 bytes --]

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:

[-- Attachment #2: outline.png --]
[-- Type: image/png, Size: 5767 bytes --]

[-- Attachment #3: Type: text/plain, Size: 47 bytes --]


Or do you expect something else?

Best, Arash

  reply	other threads:[~2023-03-25 15:51 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-19 17:36 bug#62278: 28.2; Outline in DocTeX mode Jan Braun
2023-03-21  7:43 ` Arash Esbati
2023-03-21  8:45   ` Jan Braun
2023-03-21 11:09     ` Arash Esbati
     [not found]       ` <5EC720A1-129F-439E-AE98-C7D9E7E8C94C@klein-gallien.org>
2023-03-25  7:08         ` Jan Braun
2023-03-25 15:51           ` Arash Esbati [this message]
2023-03-25 18:00             ` Jan Braun
2023-03-25 21:35               ` Arash Esbati
2023-03-26  7:55                 ` Jan Braun
2023-03-27  7:50                   ` Arash Esbati
2023-03-27  9:58                     ` Jan Braun
2023-03-27 10:14                       ` Arash Esbati
2023-03-27 13:34                         ` Jan Braun
2023-03-27 17:48                           ` Arash Esbati
2023-03-28  6:01                             ` Jan Braun
2023-03-28  7:42                               ` Arash Esbati
2023-03-28  8:21                                 ` Jan Braun
2023-03-28  8:33                                   ` Arash Esbati

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=864jq8g77m.fsf@gnu.org \
    --to=arash@gnu.org \
    --cc=62278@debbugs.gnu.org \
    --cc=Jan.Braun@klein-gallien.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.