Using SyncTex with geany and qpdfview
This is more an answer than a question. I couldn't find much out there on getting geany (http://
https:/
Now, to view the generated pdf in qpdfview at the spot corresponding to the current line in geany, I can use this as a build or execute command in geany:
qpdfview --unique %e.pdf#src:%f:%l:0
Or for a multifile latex project:
qpdfview --unique main.pdf#
Where main.tex is the main file in the document hierarchy. Of course, for this to work, -synctex=1 has to be invoked when calling pdflatex so that the .synctex.gz file is generated. Here's my build command in geany:
pdflatex -synctex=1 --file-line-error "%f"
Or for a multifile latex project:
pdflatex -synctex=1 --file-line-error "main.tex"
Going in the other direction is simpler: just set this in qpdfview's "Source editor" setting:
geany %1:%2:%3
Now, double-clicking a spot in the pdf will pop open geany at the corresponding line in the source. Hooray!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- qpdfview Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Martin Spacek
- Solved:
- Last query:
- Last reply: