在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):xuhdev/vim-latex-live-preview开源软件地址(OpenSource Url):https://github.com/xuhdev/vim-latex-live-preview开源编程语言(OpenSource Language):Vim Script 99.4%开源软件介绍(OpenSource Introduction):A Vim Plugin for Lively Previewing LaTeX PDF OutputThis plugin provides a live preview of the output PDF of your LaTeX file. The display of the output PDF file will be updated lively as you type (just hold the cursor and you will see the PDF file updated). Currently, vim-latex-live-preview only support UNIX-like systems. Please let me know if you have any suggestions. Table of ContentsInstallationBefore installing, you need to make sure your Vim version is later than 7.3,
and is compiled with vim-plugAdd the plugin in the vim-plug section of your call plug#begin('~/.vim/plugged')
[...]
" A Vim Plugin for Lively Previewing LaTeX PDF Output
Plug 'xuhdev/vim-latex-live-preview', { 'for': 'tex' }
[...]
call plug#end() Then reload the config and install the new plugin. Run inside :so ~/.vimrc
:PlugInstall VundleAdd the plugin in the Vundle section of your call vundle#begin()
[...]
" A Vim Plugin for Lively Previewing LaTeX PDF Output
Plugin 'xuhdev/vim-latex-live-preview'
[...]
call vundle#end() Then reload the config and install the new plugin. Run inside :so ~/.vimrc
:PluginInstall ManuallyCopy UsageSimply execute If the root file is not the file you are currently editing, you can specify it
by executing % !TEX root = <root-filename> The path to the root file can be an absolute path or a relative path, in which case it is relative to the parent directory of the current file.
ConfigurationPDF viewerBy default, you need to have evince or okular installed as pdf viewers.
But you can specify your own viewer by setting let g:livepreview_previewer = 'your_viewer' Please note that not every pdf viewer could work with this plugin. Currently evince and okular are known to work well. You can find a list of known working pdf viewers here. TeX engine
let g:livepreview_engine = 'your_engine' . ' [options]' TeX InputsTeX engines use the environment variable let g:livepreview_texinputs = '/path1/to/files//:/path2/to/files//' Note: The double trailing Bibliography executable
let g:livepreview_use_biber = 1 Please note that the package \usepackage[backend=bibtex]{biblatex} Please note that AutocmdBy default, the LaTeX sources will be recompiled each time the buffer is written
to disk, but also when the cursor holds. To prevent recompilation on cursor
hold (autocmd events let g:livepreview_cursorhold_recompile = 0 Known issuesSwap errorAn error Project treeCurrently, root file must be in the same directory or upper in the project tree (otherwise, one has to save file to update the preview). E492: Not an editor command: LLPStartPreviewSee issue #12, provided the plugin is correctly installed, this is likely a Python issue. Python-related issuesSee issue #24,
currently Bibliography issuesWhy doesn't my bibliography appear, with or without an error? See issue #46 and
PR #99.
If you're using \usepackage[backend=bibtex]{biblatex} Screenshot |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论