5

I commonly use textmate+skim or more recently texpad. I have zero problems with pdfsyncing (especially since skim fixed a bug not so long ago). Even more recently I have been playing around with XeLaTeX and I find the syncing behaving incredibly bad.

Is it something I just have to live with, is there a solution to this or am I simply doing something wrong? (I'm using last year's mactex distribution if that makes a difference).

MWE

\documentclass{article}
\begin{document}
This is the document. And it doesn't seem to work!
fudge me it doesn't work!
\subsection{yope}
This is the document. And it doesn't seem to work!
fudge me it doesn't work!
This is the document. And it doesn't seem to work!
fudge me it doesn't work!
\subsection{yope}
This is the document. And it doesn't seem to work!
fudge me it doesn't work!
This is the document. And it doesn't seem to work!
fudge me it doesn't work!

\end{document}
5
  • Can you describe more precisely what you're trying, i.e. what your configuration for compiling and opening a viewer is, and what doesn't work (other than "the syncing behaving incredibly bad"). (I don't use any of the components you mentioned, but I imagine people who do won't be able to get a lot of information out of your question.)
    – doncherry
    Dec 12, 2012 at 8:09
  • Update to the most recent MacTeX; until TeX Live 2011 there was a bug in XeTeX that caused synchronization to be off by a couple of paragraphs.
    – egreg
    Dec 12, 2012 at 10:27
  • @doncherry: what else would be useful to you? I am using both textmate to compile with xelatex and skim to view the pdf. I also use texpad which has everything built in. The tex distribution I use is the one provided my mactex. The syncing is off by a paragraph or two (which is especially annoying when you divide your project into different files for each section and it gets the file wrong). Dec 12, 2012 at 10:43
  • @egreg: I tried on another laptop with the distribution up to date, but it didn't work. I'll try updating on my current laptop anyway. Dec 12, 2012 at 10:46
  • 1
    @carmelodevisu You also have to help SyncTeX: leave a blank line before \section and \subsection commands. I'm no TextMate user, but the synchronization works perfectly with Aquamacs; I tried with TextMate and from the PDF to the TeX file it works (I don't know how to do from TeX to PDF and I'm not interested in discovering it).
    – egreg
    Dec 12, 2012 at 10:51

2 Answers 2

5

SyncTeX works properly with MacTeX 2012 and Skim, with any editor supported by the previewer.

Until TeX Live 2011 a bug in the integration of SyncTeX with XeTeX caused synchronization to be a couple of paragraphs off (and it was an annoying bug indeed). However, the XeTeX version in TeX Live 2012 has fixed the problem.

Thus you have to upgrade to the current MacTeX, if you want synchronization to work correctly. You'll have many more benefits from the upgrade.

1
  • ok, I'll try and see if that was the problem Dec 12, 2012 at 10:48
1

Texpad developers here. Sorry for being late to the party.

I'd like to add a quick note: in v1.5.1, planned for release tomorrow (4-June-2013), we've fixed a few more issues with SyncTeX in Texpad. The synching is now much improved and accurate.

Hope it helps.

1
  • Out of interest, which command should I use in Skim to use the PDF-TeX Sync support. TexPad does not have a preset available and I'm having trouble working out the correct command.
    – FGiorlando
    Apr 13, 2016 at 1:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .