Sublime Forum

Finding words between pdf and tex file

#1

Is there a feature such that, when reading through the pdf build of a tex file, if you spot a mistake, you can click on the word in the pdf doc and have it highlight where it is in the tex file? TexShop has this feature, which I found really useful, but it doesn’t appear to be a feature in Sublime Text, which is a real bummer because it gets awfully tedious finding typos and then pouring back through the tex file to find where the mistake is. Are there any options at all that might address this problem?

0 Likes

#2

https://github.com/SublimeText/LaTeXTools with SumatraPDF if you are on Windows.

0 Likes

#3

I use a Mac. Will it still work?

0 Likes

#4

Sorry I don’t know.

0 Likes

#5

That’s ok. The Readme appears to have some instructions for Mac. Thanks for your help!

0 Likes

#6

I can confirm that it works on Mac, just not with the default PDF viewer (Preview). You must use Skim.

0 Likes

#7

Yes, I figured that out and have it working. However, I’ve noticed that it doesn’t actually take you to the specific piece of text you click on, only to the general paragraph. I’m sure there are specific terms I could be using here but I am not a computer guy at all and thus don’t know them. I only you ST3 for tex files, I know no computer languages. Is there a way to make it take you right to the word you click on, or is the best it can do is take you to the paragraph where you clicked, given limitations of computer codes or whatever?

0 Likes

#8

What you could do (and what I like to do) is to put every sentence in a new line.
It doesn’t make any difference to the generated PDF and has a view advantages (in my opinion:

  • Reverse search takes you to the right sentence, not only the right paragraph
  • You can easily rearrange the order of sentences.
  • You can spot long sentences.
1 Like

#9

Ah, ok. I’ll try it out. Thanks for the tip!

0 Likes