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).

Filter by
Sorted by
Tagged with
0 votes
0 answers
26 views

Kern record in SyncTeX file points to tag that does not exist?

Take a simple document: %! TEX program = lualatex \documentclass{article} \usepackage{lipsum} \begin{document} \lipsum[1] \end{document} Compile with lualatex (although similar behavior is seen ...
user202729's user avatar
  • 7,223
0 votes
0 answers
24 views

Inverse search wrong for colored text

I am using large blocks of colored text in my latex documents. Unfortunately, the the inverse search (in TexShop at least) does not work correctly inside of them. The coursor goes to the first line ...
Adam's user avatar
  • 791
1 vote
0 answers
45 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
0 votes
0 answers
20 views

why the synctex get h v by synctex_node_visible_h always return 0

I want to get the pdf location from source in latex editor, then I generate the synctex file when compile the latex pdf, then using the synctex source that invoke from rust to query the pdf location ...
Dolphin's user avatar
  • 843
1 vote
0 answers
39 views

is it possible to parse the main.synctex.gz by myself [duplicate]

Now I am genreate the latex synctex file main.synctex.gz, is it possible to parse the file by myself? I want to pass the file path\line number\column number, to get the element in which page of pdf, ...
Dolphin's user avatar
  • 843
1 vote
1 answer
76 views

SyncTex on TeXworks

I recently made the switch from Overleaf to TeXworks. In Overleaf, one can just double click a part of the compiled pdf, and it takes you to the relevant source code on the left. I wanted something ...
Batrachotoxin's user avatar
0 votes
0 answers
23 views

Click from PDF line to source code in Texmaker doesn't work

I saw that this question was raised, but did not find an answer. I'm running Texmaker 5.1.3, the "clic to jump" function doesn't work even -synctex=1 is written. My file including multiple ...
Fatima  Bogatyreva's user avatar
8 votes
0 answers
137 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
  • 14.9k
2 votes
0 answers
50 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
94 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
1 vote
0 answers
61 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
0 votes
0 answers
73 views

How to configure (if is possible) the Reverse Search with VS Code (with LaTeX Workshop)?, similar to WinEdt ReverseSearch preview [duplicate]

How can I configure (if is possible) the Reverse Search with VS Code (with LaTeX Workshop)? Similar to WinEdt's ReverseSearch preview.
Mika Ike's user avatar
  • 3,761
0 votes
0 answers
68 views

Backward search not working in LyX with Okular

Backward search not working in lyx 2.3.6 and okular 22.08.2 (in Ubuntu 22.04). I've implemented steps from https://wiki.lyx.org/LyX/SyncTeX: [Settings]->[Configure Okular]->[Editor] has LyX ...
Apogentus's user avatar
  • 131
3 votes
1 answer
166 views

What's the \synctex primitive? Where is it documented?

The question is in the title. (needless to say I tried texdoc synctex|etex_man|pdftex|pdftex-a|xetex|luatex and the only thing I found is that it's enabled by the extraprimitives function in LuaTeX. ...
user202729's user avatar
  • 7,223
0 votes
1 answer
270 views

Using synctex for forward/backward searching without jumping cursor on compilation in Texmaker

I like to use SyncTeX when editing files in Texmaker to do forward and backward searches. However, right now, I'm writing a very long paper that requires me to make regular changes to the beginning of ...
DLCom's user avatar
  • 183
1 vote
1 answer
85 views

Option to hide text while maintaining synctex.gz functionality

My goal is the following: I would like to write exercises and their solutions in a single tex file with the option of hiding the solution, so that I do not need two separate tex files for the question ...
Florian R's user avatar
  • 111
0 votes
2 answers
355 views

No "synchronisation file" when trying to forward-inverse-search

sometimes I get the problem that when I build my LaTex files (with Sublime 3, TexLive and SumatraPDF), that I try to double-click on any text in my pdf which should give me the code in the sublime ...
Raoul Luqué's user avatar
0 votes
1 answer
476 views

How to configure Winedt 10.3 to use SumatraPDF

This has become impossible. The advice on the forums is to use magnifying glass in Execution Modes -Pdf viewer and then navigate to C:\Program Files\SumatraPDF but SumatraPDF is not there, it is ...
Florin Avram's user avatar
2 votes
1 answer
164 views

Synctex don't work with tabularray package

With the tabular environment I can jump to the correct line with inverse search: ctrl click in the pdf output (with Texstudio or Texworks). Why it doesn't work with the tabularray package? \...
jrivet's user avatar
  • 207
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,925
0 votes
0 answers
33 views

Synctex problem with exsheets package

If I use forward or backward synctex within the question environment of exsheets package it points out the whole exercise and not precisely the wanted line inside the environment. This is a minimal ...
As soon as possible's user avatar
1 vote
2 answers
116 views

Synctex: make it work with environment accessing its content (e.g. environ or xparse +b option)

If I create an environment using environ and \BODY or xparse and +b, the synctex functionality breaks: instead of going to the appropriate line, it goes at the end of the environment. I guess that the ...
tobiasBora's user avatar
  • 8,714
1 vote
1 answer
124 views

Setting page background will influence the synctex location

I am using TeXstudio editor. When I set a background picture using the \addtohook command. It influence the Synctex locations always pointing to the end of the page not the actual text which I typed ...
Tom's user avatar
  • 7,573
1 vote
1 answer
266 views

synctex without dbus

Is there any PDF viewer available for Linux that supports synctex (inverse and forward search) without the need for DBUS? Ideally, on Wayland compositors, and using vim as editor. (My current solution ...
jj_p's user avatar
  • 627
0 votes
0 answers
62 views

Luatex + (shadows or fadings) tikzlibraries make "gotosource" from the first page jump to pgflibraryfadings.code.tex

Information about the problem The following code is ok with pdflatex and xelatex compilation. But with Lualatex it produces the problem described below; The problem occurs both with TexStudio and ...
AntoineLatex's user avatar
0 votes
1 answer
51 views

Get page number from line number with synctex from command line

I have several hundreds of line numbers in LaTeX file and I need to get corresponding page numbers on pdf. I would like to perform “command line” forward search, using some Synctex command line ...
Miguel V. S. Frasson's user avatar
0 votes
0 answers
124 views

Curiosities about libsynctex

I've browsed through the CTAN repository, and there's no package called libsynctex, and that's also the case with the install script. However, when using linux distributions, e.g. texlive-bin of Arch ...
ygy's user avatar
  • 123
2 votes
1 answer
185 views

How can I capture and rescan TeX source code while preserving synctex data?

This question led to a new package: rescansync Let's say I want to replace all a (in source code, not rendered output) in a section with b... %! TEX program = lualatex \documentclass{article} \...
user202729's user avatar
  • 7,223
0 votes
1 answer
288 views

Synctex is not working with pyluatex (using latexmk in TeXworks, MiKTeX, Windows 10)

I have recently started to experiment with the pyluatex package (which lets you include Python 3 code in a .tex document, and have it run during the .tex compilation process). https://www.ctan.org/pkg/...
mathmandan's user avatar
4 votes
2 answers
495 views

SyncTeX not working right with LuaLaTeX in TeX Live

I am writing my documents using TeXstudio with TeX Live on Windows (all up to date). After typesetting a document with SyncTeX (which is the default), I should be able to Ctrl + Click into the PDF ...
schtandard's user avatar
  • 14.9k
0 votes
1 answer
92 views

menukeys package breaks SyncTeX for \input files?

Including the menukeys package breaks SyncTeX's inverse search for content included by \input. MWE: mwe.tex: \documentclass{article} \usepackage{menukeys} \begin{document} Hello World. \input{...
Scallions's user avatar
1 vote
1 answer
598 views

How to go to .pdf from source in Texshop

From the .pdf I can press 'command' click to take me to the source code. But the same does not work when trying to go from source code to .pdf
ngc1300's user avatar
  • 157
1 vote
0 answers
121 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,223
1 vote
1 answer
101 views

synctex not working when path has letters with accents

I tried many times and found that when my path to my latex files contains an 'é', or any other similar letter with an accent, my pdf to tex editor link doesn't work (Ctrl+space and Ctrl+click). I'm ...
EsseivaN's user avatar
0 votes
1 answer
490 views

Syncing tex file and integrated PDF viewer in Kile

I'm having trouble properly syncing the TeX and PDF files in Kile. At some point, Kile was properly moving the PDF preview following where I was in the TeX file but then it stopped working at some ...
Silmathoron's user avatar
1 vote
0 answers
694 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
2 votes
1 answer
677 views

Evince: how to do a forward-search from Terminal?

Assume that I have produced a pdf file from a tex document with the option \synctex=1 with pdflatex or xelatex. Various forward-search methods tell us how to jump from your text editor to the ...
Name's user avatar
  • 2,846
1 vote
1 answer
682 views

Broken forward and inverse sync on Sublime+Skim

I've recently begun exploring Sublime Text + Skim combination for my LaTeX stuff and I've been loving it so far. However, the forward and inverse search seems to be broken. I've tried looking around ...
AlphaBaal's user avatar
  • 131
0 votes
0 answers
123 views

Forward search doesn't work (from TexMaker to SumatraPDF)

When I try to press ctrl+space (or F7) in order to activate the forward search it doesn't work. The pdfLatex field is pdflatex -synctex=1 -interaction=nonstopmode %.tex The external viewer field is ...
J. Doe's user avatar
  • 11
1 vote
1 answer
363 views

miktex update causes issues "go to source/pdf" in TeXstudio

The most recent MiKTeX update 21.6 resolves an issue involving the aux directory that seems to have changed the behavior of -aux-directory=<filename> to place the .synctex.gz files in the ...
mbert's user avatar
  • 4,226
1 vote
0 answers
184 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
0 votes
0 answers
64 views

Synctex's go to source vs. comment package

In 2013, there was Synctex Go to source from pdf and comment package. Now it is 2021 and the problem still exists: for any parts within a comment-environment (in the given example, it is len for ...
henry's user avatar
  • 6,594
1 vote
0 answers
117 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
  • 181
4 votes
1 answer
883 views

VSCODE & SumatraPDF InverseSearch Problem

Today, I tried to make inverse_Search from sumatraPDF to Vscode(latex workshop). In the column "Set inverse search command-line" in sumatraPDF,I write "E:\VSCODE\Microsoft VS Code\Code....
Chen Fang's user avatar
2 votes
1 answer
201 views

qpdfview command-line argument for forward search

With sumatrapdf, I use the following command to go to the pdf place corresponding to the line 304 of the TeX source file: sumatrapdf file.pdf -forward-search file.tex 304 What is the analogue command ...
Name's user avatar
  • 2,846
0 votes
0 answers
41 views

Can SyncTeX corrupt the .pdf file layout?

I know that the -src-specials option can corrupt the .pdf file when I compile(d) a .tex file with the \pdfoutput=1 option (I know it's not recommended to use \pdfoutput=1). E.g. latex -src-specials ...
Gabriele's user avatar
  • 1,925
2 votes
1 answer
4k views

Setting up SyncTex with vim and zathura

I am a Latex enthusiast and I have set up my own system for compiling and previewing Latex using vim and zathura because I wanted a very minimal setup, without any plugins such as vimtex and the like. ...
fresh's user avatar
  • 413
2 votes
1 answer
506 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
5 votes
0 answers
136 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
  • 23k
0 votes
1 answer
145 views

Is there a chance to get SyncTeX work with text within environments?

I know that SyncTeX does not work correctly in Beamer (see Inverse PDF Search in beamer). But there seems to be also a problem with inverse search in environments defined with \NewEnviron. I want to ...
marli's user avatar
  • 165

1
2 3 4 5
7