That worked! So there must be an issue with my startup files or my zsh
function.

On Fri, Sep 13, 2024 at 9:24 AM Arash Esbati <[email protected]> wrote:

> Roger Lipsett <[email protected]> writes:
>
> > I have been unable to get Emacs/Auctex to sync properly with
> > Skim. Skim is opened when I invoke the sync command, but does not
> > scroll the PDF to the selected location. This is on an M2 Macbook
> > running Sonoma 14.5, Emacs 29.4, Auctex 14.0.6 installed from ELPA,
> > Skim 1.7.4.
> >
> > I have had a long discussion with Arash Esbati on
> > tex.stackexchange.com
> > (https://tex.stackexchange.com/questions/725521), who suggested that I
> > send this email.
> >
> > I invoke emacs via a zsh script that starts a server if one does not
> > exist and otherwise calls emacsclient.
> >
> > Happy to forward that script and my emacs startup files if that would
> > help.
>
> I think we should look at what's happening when you start Emacs with
> "emacs -Q" and a minimal setup and then try to debug this issue.  For
> me, it works when I start Emacs from the CLI with "emacs -Q" and eval
> this in the scratch buffer:
>
> --8<---------------cut here---------------start------------->8---
> (progn
>   (package-initialize t)
>   (package-activate 'auctex)
>   (server-start)
>   (setq TeX-parse-self t)
>   (setq-default TeX-master nil)
>   (setq TeX-view-program-selection '((output-pdf "displayline")))
>   (setq TeX-view-program-list
>         '(("displayline"
>            "/Applications/Skim.app/Contents/SharedSupport/displayline %n
> %o %b"
>            "displayline"))))
> --8<---------------cut here---------------end--------------->8---
>
> I tried it with these files:
>
> --8<---------------cut here---------------start------------->8---
> \documentclass{article}
>
> \begin{document}
>
> This is some text.
> \begin{equation}
>   \label{eq:1}
>   a + b = c
> \end{equation}
>
> \include{Temp/sub-file.tex}
>
> \begin{verbatim}
> Some verbatim text
> \end{verbatim}
>
> \end{document}
>
> %%% Local Variables:
> %%% mode: LaTeX
> %%% TeX-master: t
> %%% TeX-source-correlate-mode: t
> %%% End:
> --8<---------------cut here---------------end--------------->8---
>
> --8<---------------cut here---------------start------------->8---
> This is some text in a sub-file.
>
> %%% Local Variables:
> %%% mode: LaTeX
> %%% TeX-master: "../mwe.ltx"
> %%% End:
> --8<---------------cut here---------------end--------------->8---
>
> in this directory layout:
>
> --8<---------------cut here---------------start------------->8---
> .
> ├── Temp
> │   └── sub-file.tex
> └── mwe.ltx
> --8<---------------cut here---------------end--------------->8---
>
> Best, Arash
>

Reply via email to