unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: dalanicolai <dalanicolai@gmail.com>
To: Jose A Ortega Ruiz <jao@gnu.org>
Cc: Emacs Devel <emacs-devel@gnu.org>
Subject: Re: [ELPA] New package: toc-mode
Date: Wed, 21 Sep 2022 09:12:31 +0200	[thread overview]
Message-ID: <CACJP=3mMmo6-UH5MEYTzkskt-m2sNb8S81hJ_8MwJNtAn=bTew@mail.gmail.com> (raw)
In-Reply-To: <87h711pwde.fsf@mail.jao.io>

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

The package is for extracting a TOC when the document does not yet contain
one.
But it includes a command also to extract the TOC if the document already
has one
(so that it can be altered)

I am working on some alternative/upgrade to doc-view, pdf-tools and
djvu.el, although
 it might take a while as it is a lot of work. I did not make a project
page yet, but will
probably post a link to it soon here. Indeed, for now it provides imenu
commands for
pdf and djvu documents. If you like, I could drop the code for creating the
imenu index
 here (you have it already of course, but you might like to see different
solutions). Just,
let me know if you are interested.



On Tue, 20 Sept 2022 at 23:30, Jose A Ortega Ruiz <jao@gnu.org> wrote:

> On Tue, Sep 20 2022, dalanicolai wrote:
>
> > This package has been for a while on MELPA now, but it would be nice if
> it
> > could be moved to ELPA. The source can be found at
> > https://github.com/dalanicolai/toc-mode.
> >
> > I would like to mention that the PDF functionalities largely depend on
> > pdf-tools, which is not on ELPA of course (doc-view unfortunately does
> > not provide the right features). I am not sure if that somehow is a
> > problem.
>
> for doc-view, if you're willing to rely on "mutool" (a cli program that
> is installed with mupdf), one can extract an outline with something
> similar to this function:
>
>   https://codeberg.org/jao/elibs/src/branch/main/lib/doc/jao-pdf.el#L48
>
>
> i then for instance use it to provide imenu jumping with this code:
>
>
> https://codeberg.org/jao/elibs/src/branch/main/lib/doc/jao-doc-view.el#L50
>
> just in case you'd like to add something like that to your package (all
> in all it's just a dozen lines per function).
>
> cheers,
> jao
> --
> Who knows what Columbus would have discovered if America hadn't got in the
> way. -Stanislaw J. Lec, poet and aphorist (1909-1966)
>

[-- Attachment #2: Type: text/html, Size: 2777 bytes --]

  reply	other threads:[~2022-09-21  7:12 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-20 12:33 [ELPA] New package: toc-mode dalanicolai
2022-09-20 15:57 ` Jean Louis
2022-09-20 20:51   ` Emanuel Berg
2022-09-20 17:37 ` Philip Kaludercic
2022-09-21  6:57   ` dalanicolai
2022-09-21  7:09     ` Emanuel Berg
2022-09-21 16:55       ` dalanicolai
2022-09-21 16:58       ` dalanicolai
2022-09-21  7:46     ` Philip Kaludercic
2022-09-20 18:04 ` Stefan Kangas
2022-09-20 21:30 ` Jose A Ortega Ruiz
2022-09-21  7:12   ` dalanicolai [this message]
2022-09-22  8:02     ` Jean Louis
2022-09-22 15:27     ` Jose A Ortega Ruiz
2022-09-20 22:03 ` Stefan Monnier
2022-09-21  7:18   ` dalanicolai
2022-09-21  7:19     ` dalanicolai
2022-09-25 11:44 ` Visuwesh
2022-09-25 16:47   ` dalanicolai
2022-09-25 16:57     ` dalanicolai
2022-09-25 17:13     ` Yuri Khan
2022-09-25 21:18       ` dalanicolai
2022-09-25 21:37         ` Philip Kaludercic
2022-09-26  4:55           ` dalanicolai
2022-09-26 16:09     ` Visuwesh

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to='CACJP=3mMmo6-UH5MEYTzkskt-m2sNb8S81hJ_8MwJNtAn=bTew@mail.gmail.com' \
    --to=dalanicolai@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=jao@gnu.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).