Vim LaTeX Просмотрщик PDF?

803
Cristian Bahena

Я попытался изменить Visor DVI по умолчанию Vim-латекс на PDF Visor. Я хочу поставить PDF Reader от Adobe, поэтому я изменил _vimrcфайл:

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' 

Я написал:

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

а из vim с командой \lvпросто печатает:call texViewLatex()

Поэтому я установил PATH(я использую Windows) и добавил:

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

и ничего не изменилось! Он не показывает файл PDF, когда я положил \lv.

Что я должен делать?

0

0 ответов на вопрос

Похожие вопросы