unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tsdh@gnu.org>
To: Visuwesh <visuweshm@gmail.com>
Cc: Eli Zaretskii <eliz@gnu.org>, 73638@debbugs.gnu.org
Subject: bug#73638: 31.0.50; doc-view: imenu index cannot be made for LaTeX PDFs
Date: Mon, 07 Oct 2024 17:04:05 +0200	[thread overview]
Message-ID: <87msjgymxm.fsf@gnu.org> (raw)
In-Reply-To: <87v7y43wh8.fsf@gmail.com> (Visuwesh's message of "Mon, 07 Oct 2024 18:23:39 +0530")

Visuwesh <visuweshm@gmail.com> writes:

>> The patch looks good.  But during testing, it seems that the index is
>> always off by one page, i.e., the index for some section brings me to
>> page 117 but the section heading is actually on page 118.
>>
>> I have that both with the Peter Atkins et al. book you suggested as
>> well as with own papers which didn't work at all previously due to
>> #nameddest references.
>
> Ugghhh, looks like the page number returned by the JS function is
> zero-indexed.  Thanks for the catch (and sorry for the many mistakes
> and hence the back-and-forth).  Should be corrected in the attached
> patch.

Nope, now I get off-by-many-hundreds errors.  The Imenu entries have the
page number in parens, right?  If so, I have many references to pages
that are thrice as large as the actual number of pages, e.g., here some
parts of the *Completions* buffer for the Atkins book:

--8<---------------cut here---------------start------------->8---
FOCUS.1.The.properties.of.gases.(341)
FOCUS.10.Molecular.symmetry.(4181)
FOCUS.11.Molecular.spectroscopy.(4481)
FOCUS.12.Magnetic.resonance.(5181)
FOCUS.13.Statistical.thermodynamics.(5621)
FOCUS.14.Molecular.interactions.(6141)
FOCUS.15.Solids.(6701)
FOCUS.16.Molecules.in.motio.(7201)
FOCUS.17.Chemical.kinetics.(7521)
FOCUS.18.Reaction.dynamics.(8101)
FOCUS.19.Processes.at.solid.surfaces.(8541)
--8<---------------cut here---------------end--------------->8---

It's large but doesn't have more than 8000 pages.

Bye,
  Tassilo





  reply	other threads:[~2024-10-07 15:04 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-05 11:06 bug#73638: 31.0.50; doc-view: imenu index cannot be made for LaTeX PDFs Visuwesh
2024-10-05 19:56 ` Tassilo Horn
2024-10-06  5:42   ` Eli Zaretskii
2024-10-06  6:28     ` Visuwesh
2024-10-06  6:39       ` Eli Zaretskii
2024-10-06  8:16       ` Tassilo Horn
2024-10-06 10:32         ` Visuwesh
2024-10-06 11:26           ` Tassilo Horn
2024-10-06 12:32             ` Visuwesh
2024-10-07  7:02               ` Tassilo Horn
2024-10-07  9:26                 ` Visuwesh
2024-10-07  9:55                   ` Visuwesh
2024-10-07 11:03                     ` Tassilo Horn
2024-10-07 12:53                       ` Visuwesh
2024-10-07 15:04                         ` Tassilo Horn [this message]
2024-10-08  9:44                           ` Visuwesh
2024-10-08 15:43                             ` Tassilo Horn
2024-10-06  6:39     ` 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=87msjgymxm.fsf@gnu.org \
    --to=tsdh@gnu.org \
    --cc=73638@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=visuweshm@gmail.com \
    /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).