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).
319
questions
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 ...
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 ...
1
vote
0
answers
43
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 ...
0
votes
0
answers
18
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 ...
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, ...
1
vote
1
answer
75
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 ...
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 ...
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 ...
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 (...
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 ...
1
vote
0
answers
59
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 ...
0
votes
0
answers
72
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.
0
votes
0
answers
67
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 ...
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. ...
0
votes
1
answer
263
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 ...
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 ...
0
votes
2
answers
354
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 ...
0
votes
1
answer
470
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 ...
2
votes
1
answer
163
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?
\...
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 ...
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 ...
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 ...
1
vote
1
answer
123
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 ...
1
vote
1
answer
263
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 ...
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 ...
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 ...
0
votes
0
answers
122
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 ...
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}
\...
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/...
4
votes
2
answers
487
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 ...
0
votes
1
answer
91
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{...
1
vote
1
answer
596
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
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 ...
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 ...
0
votes
1
answer
487
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 ...
1
vote
0
answers
690
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 ...
2
votes
1
answer
673
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 ...
1
vote
1
answer
677
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 ...
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
...
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 ...
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 ...
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 ...
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 ...
4
votes
1
answer
875
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....
2
votes
1
answer
200
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 ...
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 ...
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. ...
2
votes
1
answer
505
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 ...
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 ...
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 ...