Add section about synctex to docs

This commit is contained in:
Karl Yngve Lervåg 2014-08-03 10:23:01 +02:00
parent 2fa0fea6c9
commit 4e6ca11f07

View File

@ -34,6 +34,8 @@ CONTENTS *vim-latex-contents*
7. Folding .............................. |vim-latex-folding| 7. Folding .............................. |vim-latex-folding|
8. Indentation .......................... |vim-latex-indent| 8. Indentation .......................... |vim-latex-indent|
9. Latexmk .............................. |vim-latex-latexmk| 9. Latexmk .............................. |vim-latex-latexmk|
Latexmk tricks ....................... |vim-latex-latexmk-tricks|
Latexmk synctex ...................... |vim-latex-latexmk-synctex|
10. Motion ............................... |vim-latex-motion| 10. Motion ............................... |vim-latex-motion|
11. Change ............................... |vim-latex-change| 11. Change ............................... |vim-latex-change|
12. Table of contents .................... |vim-latex-toc| 12. Table of contents .................... |vim-latex-toc|
@ -676,6 +678,26 @@ This command is then appended to the existing `$success_cmd` and
`$failure_cmd`. Note that if the existing commands are not empty, then they `$failure_cmd`. Note that if the existing commands are not empty, then they
must end with a semicolon in order to allow |vim-latex| to append safely. must end with a semicolon in order to allow |vim-latex| to append safely.
------------------------------------------------------------------------------
Latexmk synctex:~ *vim-latex-latexmk-synctex*
*vim-latex-synctex*
|vim-latex| does not include automatic support for synctex. However, the view
command does accept arguments, which makes it easy to add a forward search
mapping, such as this for the popular viewer Okular: >
let g:latex_viewer = 'okular'
function! SyncTexForward()
call latex#view('--unique '
\ . g:latex#data[b:latex.id].out()
\ . '\#src:' . line(".") . expand('%:p'))
endfunction
nmap <leader>ls :call SyncTexForward()<cr>
Backward search is generally set up inside the specific viewers, and how to do
this depends on the viewer. Please read the specific manuals or search the
web to find out how to do it.
============================================================================== ==============================================================================
MOTION *vim-latex-motion* MOTION *vim-latex-motion*