From: "briangpowell ." <briangpowellms@gmail.com>
To: Nick Dokos <ndokos@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: PDF-tools... and LaTeX
Date: Mon, 16 Nov 2015 21:17:47 -0500 [thread overview]
Message-ID: <CAFm0skHQWg-XZ9J3WTKua9EZCmM60wdhGjpSqjxe-7VDWp3OQg@mail.gmail.com> (raw)
In-Reply-To: <87r3jp9ykj.fsf@alphaville.usersys.redhat.com>
[-- Attachment #1: Type: text/plain, Size: 3105 bytes --]
Wow, as usual thanks Nick, great help and insights.
Say, LaTeX and xpdf and poppler and Okular are all great software--suggest
you try out xournal too:
apt-get install xournal
--shows .pdfs and many tools for editing .pdf's
Also, you're well aware of the Emacs/ELisp tools for .pdf's (
https://github.com/politza/pdf-tools); but, suggest you install and tinker
with CPAN/Perl's pdf-tools--well worth investigating.
On Mon, Nov 16, 2015 at 8:58 PM, Nick Dokos <ndokos@gmail.com> wrote:
> AW <alexander.willand@t-online.de> writes:
>
> > Dear all,
> >
> > I dare to ask this slightly off-topic question, because of the discussion
> > about pdf-tools a day ago.
> >
> > I installed pdf-tools (https://github.com/politza/pdf-tools). It is a
> _lot_
> > faster than doc-view. Many thanks to Matt Price
> > (http://matt.hackinghistory.ca/2015/11/11/note-taking-with-pdf-tools/)
> I got
> > it working with orgmode.
> >
> > But I'd like to use it to display my PDFs I produce with LaTeX (Emacs,
> AUCTeX)
> > as well.
> >
> > The trouble is the automagic reloading of the PDF every time it get's
> changed
> > on disk. Okular does this, but pdf-tools need some kind of invitation?!
> >
> > From here https://github.com/politza/pdf-tools/issues/128
> > is this setup for .emacs:
> >
> > ============= 8< ==============
> >
> >
> > (pdf-tools-install)
> > (load "pdf-tools")
> > (setq TeX-view-program-selection '((output-dvi "Okular")
> > (output-pdf "PDF Tools") ;;
> > ))
> >
> > (require 'subr-x)
> > (defun th/pdf-view-revert-buffer-maybe (file)
> > (when-let ((buf (find-buffer-visiting file)))
> > (with-current-buffer buf
> > (when (derived-mode-p 'pdf-view-mode)
> > (pdf-view-revert-buffer nil t)))))
> >
> > (add-hook 'TeX-after-TeX-LaTeX-command-finished-hook
> > #'th/pdf-view-revert-buffer-maybe)
> >
> >
> > ================ >8 ============
> >
> > If I compile a *.tex file again, I get the error
> >
> > "error in process sentinel: Symbol's function definition is void:
> when-let"
> >
> > ...and the PDF won't get updated.
> >
>
> So when-let is not defined above, and it is not defined by emacs, so you
> got to get the definition from somewhere. Go back to the link and you'll
> see further down that the OP complains about the same thing. The
> solution seems to be
>
> (require 'subr-x)
>
> > Can anybody help me to get a working setup? Really, this libpoppler
> behind
> > pdf-tools is such a lot faster, it reminds me on xpdf.
> >
>
> That's because libpoppler is essentially a library version of xpdf:
>
> $ yum info poppler
> Loaded plugins: auto-update-debuginfo, copr, etckeeper, langpacks
> Installed Packages
> Name : poppler
> Arch : x86_64
> Version : 0.26.2
> Release : 9.fc21
> Size : 2.6 M
> Repo : installed
> Summary : PDF rendering library
> URL : http://poppler.freedesktop.org/
> License : (GPLv2 or GPLv3) and GPLv2+ and LGPLv2+ and MIT
> Description : Poppler, a PDF rendering library, is a fork of the xpdf PDF
> : viewer developed by Derek Noonburg of Glyph and Cog, LLC.
>
> --
> Nick
>
>
>
>
>
[-- Attachment #2: Type: text/html, Size: 4595 bytes --]
next prev parent reply other threads:[~2015-11-17 2:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-16 20:17 PDF-tools... and LaTeX AW
2015-11-17 1:58 ` Nick Dokos
2015-11-17 2:17 ` briangpowell . [this message]
2015-11-17 8:17 ` AW
2015-11-17 9:26 ` PDF-tools... and LaTeX (solved) AW
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.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAFm0skHQWg-XZ9J3WTKua9EZCmM60wdhGjpSqjxe-7VDWp3OQg@mail.gmail.com \
--to=briangpowellms@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=ndokos@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/org-mode.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).