mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-02-05 19:54:56 +01:00
Improve synctex documentation
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
98cbbb6dab
commit
1d67949b32
1 changed files with 18 additions and 0 deletions
|
@ -8,7 +8,25 @@ pass the arguments to *synctex view*'s *-i* option to zathura via
|
|||
*--syntex-forward* and zathura will pass the information to the correct
|
||||
instance.
|
||||
|
||||
For gvim forward and backwards synchronization support can be set up as follows:
|
||||
First add the following to the vim configuration:
|
||||
|
||||
::
|
||||
|
||||
function! Synctex()
|
||||
execute "silent !zathura --synctex-forward " . line('.') . ":" . col('.') . ":" . bufname('%') . " " . g:syncpdf
|
||||
redraw!
|
||||
endfunction
|
||||
map <C-enter> :call Synctex()<cr>
|
||||
|
||||
Then launch *zathura* with
|
||||
|
||||
::
|
||||
|
||||
zathura -x "gvim --servername vim -c \"let g:syncpdf='$1'\" --remote +%{line} %{input}" $file
|
||||
|
||||
Some editors support zathura as viewer out of the box:
|
||||
|
||||
* LaTeXTools for SublimeText
|
||||
(https://latextools.readthedocs.io/en/latest/available-viewers/#zathura)
|
||||
* LaTeX for Atom (https://atom.io/packages/latex)
|
||||
|
|
Loading…
Reference in a new issue