The hpath functions in Hyperbole are configurable for both inside and outside of Emacs display, so you just need to look in the Hyperbole manual and configure .pdf to use a pdf-tools command.
-- rsw > On Feb 21, 2025, at 3:01 PM, Mats Lidell <ma...@gnu.org> wrote: > > Hi Tomás, > >> Tomás Chapunov writes: >> I am starting my journey on Hyperbole. I have been using Emacs since twenty >> years ago or more. It is the second time I give it a try. The previous >> time, I remember it had some issue with being maintained. > > Welcome back. > >> It is a well thought and powerful package, underscored. I love the tools it >> brings to the table. >> >> I have a question about pdf. I am a heavy user of pdf-tools. I read PDF >> inside Emacs. So what is the canonical way to create an hyperbole button to >> open a PDF in the page I want, or in the first result of an occur search? > > A path link to the pdf file is fine. Either an implicit link or explicit > link will work. > >> I have seen that klinks can open cells at will. And some buttons can be made >> to open an org file, by example, in an arbitrary headline or subtree, or a >> web page in some particular heading. I am looking for that feature, but for >> PDF, and inside Emacs, not using xdg-open because I don't want to read the >> file outside Emacs. > > I'm afraid there is no "smart" support in Hyperbole for dealing with pdf > files. > >> I don't know if this is the place to ask for help, but I hope it is. Thanks >> in advance! > > Asking here is the right place. > > %% Mats >