News for hackers. Stuff that matters.
Re:My Mathematics PhD research workflow: LaTeX notes and ins... by rcap on Sunday April 10, 2022 @05:00PM (#30981670)
Author here, if you have any questions, feel free to ask them.

It really is amazing how hard it is just to retrieve the currently opened pdf file and its page number in a pdf viewer. Some pdf viewers (Like Zathura) provide this via DBus, but even very common ones like Evince don't. I managed to find a way using gvfs, although it's a bit of a hack.

For others (e.g. Mendeley), I have no idea on how to do this... Anybody have ideas? it is Qt based, maybe I can hook into that via some debugging tool?

Re:My Mathematics PhD research workflow: LaTeX notes and ins... by joeman1000 on Sunday April 10, 2022 @07:17PM (#30982734)
The solution is emacs. I know you’ve got a lot invested in vim already. You can get instant LaTeX rendering with AUCTeX, view the pdf in emacs with pdf-tools, which can be used with something like org-ref (there are many bibliography packages) to query a db with the DOI of the pdf. (Try saying that two times fast). This EmacsConf talk should give you a taste of what I mean:

https://emacsconf.org/2021/talks/research/

Your old post with instantly rendering latex snippets actually inspired me to start using vim/LaTeX. This opened up a whole new world for me. I started programming, got back into my engineering degree, started using emacs/org-mode and have nearly finished the degree. Thank you, from the bottom of my heart. I don’t know what I’d be doing if I hadn’t seen your post. It revealed a way of using computers that I had never seen before.

Re:My Mathematics PhD research workflow: LaTeX notes and ins... by jgwil2 on Sunday April 10, 2022 @08:22PM (#30983175)
Re:My Mathematics PhD research workflow: LaTeX notes and ins... by joeman1000 on Monday April 11, 2022 @06:12AM (#30986728)
Yes, this is the one. I couldn’t help but want the same speed and beauty as in that post.
Re:My Mathematics PhD research workflow: LaTeX notes and ins... by triyambakam on Sunday April 10, 2022 @10:44PM (#30983998)
Where are you taking your degree?
Re:My Mathematics PhD research workflow: LaTeX notes and ins... by joeman1000 on Monday April 11, 2022 @06:10AM (#30986715)
Monash university
Re:My Mathematics PhD research workflow: LaTeX notes and ins... by 533474 on Sunday April 10, 2022 @05:59PM (#30982145)
Try emacs and org-mode sometime. Configurability is off the charts and vi keybindings are easily configurable (and so are the snippets). I loved the workflow, I believe that a mind like yours will also find emacs elisp captivating and I would love to see what you could come up with in that much more flexible ecosystem (I am a former Vim evangelist)
Re:My Mathematics PhD research workflow: LaTeX notes and ins... by hollerith on Sunday April 10, 2022 @06:08PM (#30982217)
What does org mode have to do with the problem where you have a document open in a PDF viewer and you want to retrieve the location of the document in the file system and what page is currently showing in the viewer's window?
Re:My Mathematics PhD research workflow: LaTeX notes and ins... by joeman1000 on Sunday April 10, 2022 @07:18PM (#30982742)
The fact that pdf-tools (in emacs) makes this an utterly trivial task.
Re:My Mathematics PhD research workflow: LaTeX notes and ins... by nonrandomstring on Sunday April 10, 2022 @07:07PM (#30982672)
If you're using Org-ref, and have used that to drill down into your pdfs then you always have the document context (and bibtex etc context) from within emacs. But I don't think that is the OPs use case, so apologies for the noise. Also careful use of unix find with pdfgrep can be handy.
Re:My Mathematics PhD research workflow: LaTeX notes and ins... by dancsi on Sunday April 10, 2022 @05:28PM (#30981893)
I guess it will be easier to get it working with Zotero, as it's open source, and I think it even supports custom plug-ins.
Re:My Mathematics PhD research workflow: LaTeX notes and ins... by jessriedel on Monday April 11, 2022 @06:34AM (#30986861)
Yes, Zotero does support custom plug-ins ("add-ons").
Re:My Mathematics PhD research workflow: LaTeX notes and ins... by mixedmath on Monday April 11, 2022 @02:00AM (#30985197)
On recent-ish versions of evince it is possible to do a bit more via dbus. For example, forward and reverse synctex search between evince and vim over dbus is done at [1]. I use this when I use evince, but I acknowledge that it has stupid flaws.

[1]: https://github.com/peterbjorgensen/sved

Re:My Mathematics PhD research workflow: LaTeX notes and ins... by mixedmath on Monday April 11, 2022 @02:13AM (#30985282)
Having written this, I am actually completely incapable of retrieving the page number over dbus. (As you had mentioned). I'm a bit surprised that forward and reverse search can still be done.
Re:My Mathematics PhD research workflow: LaTeX notes and ins... by sverona on Sunday April 10, 2022 @09:41PM (#30983614)
No questions. You're a pretty swell dude and I used a lot of your advice while writing my thesis. Love your work.
Re:My Mathematics PhD research workflow: LaTeX notes and ins... by randomsilence on Monday April 11, 2022 @01:35AM (#30985051)
Have you tried contacting the developers? This seems like a feature that every pdf viewer should have.