Vim LaTeX PDF-Viewer?

449
Cristian Bahena

Ich habe versucht, das Visier-DVI-Standard von Vim-Latex in das PDF-Visier zu ändern. Ich möchte einen PDF-Reader von Adobe, also habe ich die _vimrcDatei geändert :

source $VIMRUNTIME/vimrc_example.vim  set diffexpr=MyDiff() function MyDiff() let opt = '-a --binary ' if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif let arg1 = v:fname_in if arg1 =~ ' ' | let arg1 = '"' . arg1 . '"' | endif let arg1 = substitute(arg1, '!', '\!', 'g') let arg2 = v:fname_new if arg2 =~ ' ' | let arg2 = '"' . arg2 . '"' | endif let arg2 = substitute(arg2, '!', '\!', 'g') let arg3 = v:fname_out if arg3 =~ ' ' | let arg3 = '"' . arg3 . '"' | endif let arg3 = substitute(arg3, '!', '\!', 'g') if $VIMRUNTIME =~ ' ' if &sh =~ '\<cmd' if empty(&shellxquote) let l:shxq_sav = '' set shellxquote& endif let cmd = '"' . $VIMRUNTIME . '\diff"' else let cmd = substitute($VIMRUNTIME, ' ', '" ', '') . '\diff"' endif else let cmd = $VIMRUNTIME . '\diff' endif let cmd = substitute(cmd, '!', '\!', 'g') silent execute '!' . cmd . ' ' . opt . arg1 . ' ' . arg2 . ' > ' . arg3 if exists('l:shxq_sav') let &shellxquote=l:shxq_sav endif endfunction  execute pathogen#infect() set number  " REQUIRED. This makes vim invoke Latex-Suite when you open a tex file. filetype plugin on  " IMPORTANT: win32 users will need to have 'shellslash' set so that latex " can be called correctly. set shellslash  " OPTIONAL: This enables automatic indentation as you type. filetype indent on  " OPTIONAL: Starting with Vim 7, the filetype of empty .tex files defaults to " 'plaintex' instead of 'tex', which results in vim-latex not being loaded. " The following changes the default filetype back to 'tex': let g:tex_flavor='latex'   " to get default compile to pdf let g:Tex_DefaultTargetFormat = 'pdf' let g:Tex_MultipleCompileFormats='pdf, aux' let g:Tex_ViewRule_pdf = 'AcroRd32' 

Ich hab geschrieben:

" to get default compile to pdf let g:Tex_DefaultTargetFormat = 'pdf' let g:Tex_MultipleCompileFormats='pdf, aux' let g:Tex_ViewRule_pdf = 'AcroRd32' 

und von vim mit Befehl \lvnur gedruckt:call texViewLatex()

Also habe ich eingestellt PATH(ich verwende Windows) und fügte hinzu:

C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe 

und nichts hat sich geändert! Es zeigt keine PDF-Datei, wenn ich lege \lv.

Was soll ich machen?

0

0 Antworten auf die Frage