Skip to main content

Questions tagged [forward-inverse-search]

{forward-inverse-search} is a technology for having synchronization between source and preview, e.g., being able to Ctrl-click (or similar) in the source and jump to the corresponding place in the preview of the document (forward search), and vice versa (inverse search).

87 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
9 votes
0 answers
5k views

Getting SyncTeX to work with Emacs, AucTeX and Skim (OS X El Capitan)

I'm attempting to set up LaTeX to work with Emacs on my Mac, running OS X El Capitan 10.11.5. I can compile everything all right, but I'm unable to use forward/inverse searches with Skim. From ...
Jesse's user avatar
  • 183
8 votes
0 answers
146 views

Is there a way to visualize SyncTeX anchors in the PDF?

Forward and reverse synchronization between the TeX source and the PDF output using SyncTeX is an immensely useful tool when writing larger documents. Sometimes, especially when the synchronization is ...
schtandard's user avatar
  • 15.2k
7 votes
1 answer
3k views

Kate editor, Okular, synctex: how to forward search pdf document?

Inverse search of a compiled file with -syntex=1 option is trivial: you just choose Configure -> Editor -> Kate option from Okular -> Settings menu, then use Shift-Click on your favorite line ...
Alexey Orlov's user avatar
6 votes
0 answers
303 views

SyncTeX files on multiple computers: possible to use relative paths?

I store my LaTeX files in a mercurial repository for backup and to transfer work between home and office. This means that my .tex files live in different paths on different computers, but the ...
Chris Le Sueur's user avatar
6 votes
0 answers
2k views

Emacs + AucteX + Skim (MacOS Sierra) Forward Search Problem

Once I upgraded to MacOS Sierra, I started to having problems in forward search in Skim. Backward search functions well. When I press "Cmd + S + Mouse 1" in Skim, it directly goes to the line in Emacs....
virtual_mind's user avatar
5 votes
0 answers
139 views

synctex and piped input

When we execute pdflatex -synctex=-1 normalfile.tex we can see that the first lines of the produced normalfile.synctex are SyncTeX Version:1 Input:1:/path to current folder/normalfile.tex ... But if ...
Kpym's user avatar
  • 23.1k
5 votes
0 answers
1k views

Installing SyncTeX Library

An update in Zathura stopped bundling the SyncTeX library and instead expects it to be installed from TeXLive. The problem is, I can't seem to find it; I can only find the synctex binary. I have ...
JP-Ellis's user avatar
  • 8,949
5 votes
1 answer
290 views

SyncTex for a document with multiple .tex files

Suppose I have a large document which I decide to split into several .tex files. I have a main.tex that contains many calls like \include{chapter1} \include{chapter2} ... In order to focus on a ...
MannyC's user avatar
  • 173
4 votes
0 answers
2k views

todonotes alternative

I'm using Overleaf, and because of todonotes package the inverse search doesn't work: Couldn't find the corresponding source file. It's a known error: https://www.overleaf.com/learn/how-to/...
Dmitry's user avatar
  • 240
4 votes
0 answers
701 views

RStudio, Sweave and synctex

For a few days now I was wondering why RStudio stopped showing the "Sync PDF view to editor location". I still don't know for sure, but since my .synctex.gz file is apparently "(busy)" I assume there ...
Lilith-Elina's user avatar
4 votes
0 answers
221 views

opening pdf at the cursor on lyx

While creating a preview on lyx , I expect the pdf to show me the position of the text at which cursor is positioned. The default behaviour seem to open pdf at first page. How can I change this ...
Vaibhav's user avatar
  • 6,675
3 votes
0 answers
2k views

Syncing pdf with vscode external viewer

Setup: I'm using visual studio code with LaTeX Workshop extension to write latex. I use an external pdf viewer mainly because I want to see the pdf on a different screen. Using Ubuntu 20.04 LTS. ...
Gal's user avatar
  • 131
3 votes
0 answers
633 views

Highlighting forward search in Okular

I have a functional setup that does bidirectional search between emacs (auctex) and okular but lacks the highlighting of the position in pdf. In "conventional" editors, e.g. texstudio, when doing ...
Pouya's user avatar
  • 7,309
3 votes
0 answers
93 views

go to .tex file when clicking on a .pdf in includegraphics

I am trying to figure out a convenient way to do the following: I do my presentations in LaTeX and for the sake of compilation time I usually have my graphics in an extra subfolder. While editing the ...
user104595's user avatar
3 votes
0 answers
575 views

No .gz file created after MikTex/TexWorks update, Synctex fail

I updated my copy of TeXworks to version 0.4.6 recently, and updated my Miktex at the same time. Since then, it's stopped creating .gz-files, so synctex no longer works. Ctrl + Click on the source ...
EAG's user avatar
  • 31
3 votes
0 answers
761 views

Forward search in Lyx/SumatraPDF not working anymore

I use "Lyx" as a Latex software. I have being using the Forward/Reverse search using SumatraPDF without a problem. I used the approach described here: http://wiki.lyx.org/LyX/SyncTeX#toc1 I am using ...
user144542's user avatar
2 votes
0 answers
58 views

TexStudio Ctrl + click on code segment shows me the frame before the code segment

I've been working with TexStudio for a while, and noticed this annoying bug where sometimes Ctrl + (left) clicking on some code section did not show me the corresponding PDF part, but instead the (...
J. Schmidt's user avatar
2 votes
0 answers
95 views

xsim problem with reverse synctex

I am possibly experiencing a strange behaviour with package xsim while working with reverse synctex (from document to source). Expected behaviour I activate reverse synctex in my IDE, then I get ...
marc's user avatar
  • 701
2 votes
1 answer
524 views

Sumatra+Texstudio inverse search not working

I am using TexStudio on Win10 platform. As external pdf viewer I am using SumatraPDF. Last night I got the new update of Texstudio 3.0.4 (64 distribution) and since then I have problems with the ...
Betelgeuse's user avatar
2 votes
0 answers
239 views

LaTeX Editor with proper Tree View

I used TeXnicCenter for years, and since it is not actively maintained, I have to find an alternative (under Windows). My main concern for popular choices such as TeXstudio and TeXmaker is their ...
Tobias's user avatar
  • 101
2 votes
0 answers
2k views

How to get synctex forward searching to work with vim and zathura on macOS?

Using the vimtex plugin, forward searching (from the .tex file to the .pdf) works with Skim but not with zathura. In nvim, the error Vimtex: Viewer cannot find Zathura window ID! appears. This seems ...
Timothy Roes's user avatar
2 votes
0 answers
1k views

Using TeXnicCenter with Sumatra reverse-search open Notepad++, not TeXnicCenter

I'm posting this here because I've had this happen to me multiple times and no Google search ever brings up the solution. I'm running Windows 10 with 64-bit MikTex installed and I use TeXnicCenter as ...
Ryan G's user avatar
  • 21
2 votes
0 answers
2k views

Go to source code using double click in TexStudio

I recently moved to Ubuntu and have started using TexStudio as a replacement for TeXnicCenter. One of the nice features of TeXnicCenter was that we could double click on a pdf, say in Sumatra PDF, ...
Jus12's user avatar
  • 121
2 votes
0 answers
116 views

Precise syncing in conditional environment

If I do an inverse search in pdf for a word written within, say \ifthenelse, conditional environment, it will take me to the bottom of the \ifthenelse block and not at that word in the code .tex file. ...
Shalabh Jain's user avatar
2 votes
0 answers
704 views

synctex and fragile beamer's frame

I'm using synctex on a beamer presentation, and I'm having some trouble. Unlike this question, I can live with the fact that synctex will put me at the end of the current frame. However, for fragile ...
Virgile's user avatar
  • 235
2 votes
0 answers
157 views

SyncTeX backward sync off when using crop with the frame option

When using the crop package with the frame option, SyncTeX' inverse search always seems to be a bit off. Here is a MWE: \documentclass[10pt,a5paper]{report} \usepackage[a4, center, frame]{crop} \...
mtvec's user avatar
  • 539
2 votes
0 answers
983 views

Synchronization between source code and PDF viewer fails for \include{.} (go to source / go to PDF)

In my LaTeX document I am using the following structure: I have a main tex-file from which chapters are included via include(.). Thus, each chapter has its own tex-file. For some time now, I ...
ToJo's user avatar
  • 265
2 votes
0 answers
401 views

It is possible to set up inverse/forward search in LyX with zathura pdf viewer?

In the following wiki page of LyX it is explained how to set up reverse search in LyX using Okular and PDF Sumatra: http://wiki.lyx.org/LyX/SyncTeX#toc1 Additionally, the following link gives the set ...
shamisen's user avatar
  • 294
2 votes
0 answers
180 views

synctex stopped working after I used external pdf viewer

I am using TexMaker and synctex was working fine until I used the external pdf viewer option for a few hours. I did not worry about it but when I went back to the embedded viewer synctex was still no ...
Torben Pastore's user avatar
2 votes
0 answers
1k views

Problems with forward and backwards search in sublime (latextools)

Even though I've done everything as I should in the sublime settings, I cant get forward or backward search to function. I am using sublime2 on ubuntu, where I have both python2.7 and python3 is ...
bjornasm's user avatar
  • 145
2 votes
0 answers
734 views

Skim,emacs,sublime text3, backward search doesn't work

My working enviroment follows: OS: OS X Mavericks 10.9.2 Skim: 1.4.8 Editors: emacs-mac with AucTeX (Homebrew), sublime 3 with LaTeXtools (all versions are up-to-date) I have met a strange issue ...
MagisDing's user avatar
2 votes
0 answers
92 views

Are AUCTeX forward search and inverse search meant to work with C-c C-r and C-c C-b too?

Background: C-c C-r is like C-c C-c except it's for compiling & viewing just a fixed portion (specified by the user) of a TeX buffer. C-c C-b is like C-c C-c except it's for compiling & ...
Jisang Yoo's user avatar
1 vote
0 answers
50 views

Pdf preview not working with Lyx 2.3.7 on Windows 11

I have installed Lyx 2.3.7 and SumatraPdf and followed the instructions provided in LyX 2.3 - How can I successfully set up the forward and inverse search? My Texlive version is 2023 and works without ...
TDH's user avatar
  • 131
1 vote
0 answers
78 views

How to enable synctex with Kile and Okular?

I am using Ubuntu, Kile, and Okular. What are the exact steps to enable and use synctex with that setup? What I want to achieve is that I open the compiled PDF with Okular (from Kile) and then ...
shuhalo's user avatar
  • 2,545
1 vote
0 answers
31 views

synctex using jobname doesn't sync with jobname.pdf

I have a .tex file named MY_FILE.tex and a .pdf file named MY_FILE.pdf. Now I want to produce a slightly modified version of MY_FILE.pdf file using a temp file called TEMP.tex. The only difference ...
Gabriele's user avatar
  • 1,983
1 vote
0 answers
122 views

XeLaTeX forward search does not work properly when a paragraph only have one word

remark: I upgraded to TeX Live 2022 and still can reproduce this problem. It's weird how commenters using same TeX Live 2022 and cannot reproduce When a paragraph has only one word, forward synctex ...
user202729's user avatar
  • 7,513
1 vote
0 answers
729 views

Inverse search from Zathura to .tex file

With the help of someone on this stack I was able to configure vim so that it launches with a server name that is the filename it opens. For example, if I run vim filename.tex, vim will launch with ...
Zeta-Squared's user avatar
1 vote
0 answers
187 views

Inverse search seems glitchy in sublime text 4 + latextools

Inverse search, in evince using latextools, seems to work for some files but doesn't work for some and usually opens a blank document in sublime text 4. Also, forward search and Ctrl+l works as ...
DEBOJIT KUMAR DAS's user avatar
1 vote
0 answers
118 views

Sumatra - TeXstudio - inverse search hits not the exakt line

I do use TeXStudio und Sumatra on Windows 10. I put in Sumatra "C:\Program Files\texstudio\texstudio.exe" "%f" -line %l If I double click on the PDF, it jumps into TeXstudio, but ...
Mash's user avatar
  • 201
1 vote
0 answers
189 views

What Synctex dependencies are missing under WSL?

The setup on my Windows work computer is an Ubuntu instance of Windows Subsystem for Linux (WSL) with an X server and the i3 window manager. I use emacs to edit latex and evince as a viewer. I have ...
Philippe Lamontagne's user avatar
1 vote
0 answers
110 views

TexStudio "Inverse Search" issues

I am using Texstudio/Texworks on Win10 platform, with the most updated MikTex. When I right click the pdf preview in both editors and want to use the inverse search function, it always points to the ...
Mike's user avatar
  • 11
1 vote
0 answers
381 views

vim-latex and Okular: forward/inverse search not working for DVI

I'm trying to get DVI forward search to work (I don't think SyncTeX is relevant) with vim-latex/latex-suite and Okular. I'm using Arch Linux. I've been following the official vim-latex beginner's ...
Jeremy Lindsay's user avatar
1 vote
0 answers
64 views

How to keep SyncTeX aligned when re-ordering pages using LuaTeX `page_order_index` callback?

I'm using the LuaTeX callback page_order_index to re-order the PDF pages (specifically, the last page becomes the first and the rest shifts down by one). This works fine, but the SyncTeX file does ...
Thomas R.'s user avatar
1 vote
0 answers
195 views

SyncTeX jumps to pgflibraryfadings in TeXstudio with todonotes

If I ctrl + mouse click on the output text in TeXstudio with the code below then it takes me to pgflibraryfadings.code.tex which is not what I would expect/like. What can I do to fix this? (LuaTeX ...
JPi's user avatar
  • 13.7k
1 vote
0 answers
130 views

includegraphics forward/inverse search with different image DPIs

Since I started using LaTeX I've found the forward/inverse search utility most helpful. What I've always noticed is that when using \includegraphics the area highlighted when forward searching a ...
Piolie's user avatar
  • 133
1 vote
0 answers
195 views

Synctex with large equations?

I am often working with large equations inside align environment, that span upwards of four lines, often resulting in upwards of 500 characters spread across upwards of 20 lines. If anything needs to ...
kdb's user avatar
  • 1,929
1 vote
0 answers
236 views

SyncTeX stops working in a large document

I'm currently writing on a large document, using AucTeX, and pdf-tools as my pdf viewer. Today, SyncTeX stopped working correctly. Forward search is fine, but backward search doesn't work. Whenever I ...
Florian's user avatar
  • 515
1 vote
0 answers
66 views

inverse search and shadows tikzlibrary

The shadows tikzlibrary makes the inverse search in TeXworks fail in the first page. I included a minimal working example: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shadows} \...
Chang's user avatar
  • 9,568
1 vote
0 answers
755 views

Forward-search with several SumatraPDF files opened does not work sometimes

Reproduce: Get Forward-search working Have TeXstudio opened Have the compiled PDF file opened with SumatraPDF Open a second different pdf with SumatraPDF Click on it so that this document is in ...
doc's user avatar
  • 171
1 vote
0 answers
629 views

TeXworks' "Go to Source" fails with `tcolorbox`

I mainly use TeXworks (windows) as tex editor and I like its "Go to Source" command which allows to Ctrl+click somewhere in .tex (or .pdf) file and cursor jump to corresponding place in result (or ...
Ignasi's user avatar
  • 137k