On Wed, May 3, 2023 at 10:40 AM Ruijie Yu wrote: > > > Hongyi Zhao writes: > > > ;; Split windows horizontally and display the PDF and TeX source side-by-side > > (setq split-width-threshold 1000) > > (add-hook 'TeX-after-compilation-finished-functions > > #'(lambda () (pdf-tools-deactivate-strip))) > > No need for the #'(lambda () ...) wrapping. In general, you don't need > to #' any lambdas. In this specific case, just saying > #'pdf-tools-deactivate-strip as the second argument to `add-hook' is > sufficient. I tried, but all the above methods don't work, as shown in the attached file. > -- > Best, > > > RY Zhao