Comments (4)
I use zathura as vimtex viewer, but zathura won't open while press '\lv'.
Since you are on MacOS, you could also use Skim. It is known to work well.
According to other issues, I'd tried to run
zathura -x "/opt/homebrew/Cellar/neovim/0.9.0/bin/nvim --headless -c \"VimtexInverseSearch %{line} '%{input}'\"" --synctex-forward 4:14:'/Users/ccandle/Coding/LaTeX/minimal/minimal.tex' 'build/minimal.pdf'&
and it returned
error: Could not connect to session bus: Could not connect: No such file or directory error: Got no usable data from SyncTeX or D-Bus failed in some way. [1] + 19760 exit 255 zathura -x --synctex-forward 'build/main.pdf'
Please read :help vimtex-view-zathura
, then :help vimtex-faq-zathura-macos
. If that section can not help you, then I don't have any further ideas. Sorry!
nvim calls 'plugins.vim' and the vimtex part is …
let g:tex_flavor = 'latex' let g:vimtex_view_method = 'zathura' let g:vimtex_quickfix_mode = 0 let g:vimtex_quickfix_ignore_filters = [ \ 'Underfull', \ 'Overfull' \ ] let g:vimtex_compiler_latexmk_engines = {'_' : '-xelatex'} let g:vimtex_compiler_latexmk = { \ 'build_dir': 'build', \ 'callback' : 1, \ 'continuous' : 1, \ 'executable' : 'latexmk', \ 'hooks' : [], \ 'options' : [ \ '-verbose', \ '-file-line-error', \ '-shell-escape', \ '-synctex=1', \ '-interaction=nonstopmode', \ ], \} let g:maplocalleader=' ' let g:view_enable=1 let g:view_automatic=1 let g:vimtex_texcount_custom_arg = '-ch -total'
Comments:
- You don't need
let g:tex_flavor
- remove it. - VimTeX options all start with
g:vimtex_
. maplocalleader
is not really a VimTeX option, it is a Vim/Neovim specific thing. You should not have that as part of the VimTeX config.- You can simplify things.
Here's a simplified version:
let g:maplocalleader=' '
let g:vimtex_view_method = 'zathura'
let g:vimtex_quickfix_mode = 0
let g:vimtex_quickfix_ignore_filters = [
\ 'Underfull',
\ 'Overfull'
\ ]
let g:vimtex_compiler_latexmk_engines = {'_' : '-xelatex'}
let g:vimtex_compiler_latexmk = {
\ 'build_dir': 'build',
\ 'options' : [
\ '-verbose',
\ '-file-line-error',
\ '-shell-escape',
\ '-synctex=1',
\ '-interaction=nonstopmode',
\ ],
\}
let g:vimtex_texcount_custom_arg = '-ch -total'
from vimtex.
By the way, it's nothing todo with the build_dir
. Things will go the same if I set 'build_dir': ''
.
from vimtex.
Since you are on MacOS, you could also use Skim. It is known to work well.
Skim works well, but I prefer zathura. Luckily zathura works again after reinstalling the nvim, vimtex and zathura, using the exact same configuration. I guess it's something about file permissions and zathura settings.
Comments:
- You don't need
let g:tex_flavor
- remove it.- VimTeX options all start with
g:vimtex_
.maplocalleader
is not really a VimTeX option, it is a Vim/Neovim specific thing. You should not have that as part of the VimTeX config.- You can simplify things.
Here's a simplified version:
...
Thanks for your guiding, it's really helpful for me as a beginner. I tried modifying other people's tutorials online, which maybe messed up vimtex.
from vimtex.
Great, glad to hear it works now! I'll close the issue then.
from vimtex.
Related Issues (20)
- Help Add custom concealing rule for VimTeX on neovim HOT 3
- How do I get rid of a "latexmk is not executable" error? HOT 4
- supertab completion takes 20 seconds to complete a word when using many latex packages HOT 5
- Inverse search does not work with sioyek HOT 10
- Magic comment for compiler fails if there are trailing spaces HOT 3
- Vimtex doesnt boot HOT 25
- package 'unicode-math' yields compile error HOT 3
- [SOLVED] Focus the terminal when doing inverse search HOT 3
- viewer shouldn't open automatically when compilation finished HOT 10
- Vimtex: Viewer cannot find Zathura window ID HOT 7
- vimtex compilation fails despite compiling successfully when done from command line HOT 6
- completion is missing equation labels when using autonum HOT 4
- FR: syntax inclusions when using the LaTeX package 'robust-externalize' HOT 12
- `vimtex-i$` works in markdown math `\(...\)` but not `$...$` HOT 7
- Compilation doesn't update PDF HOT 3
- WSL2: Viewer cannot find Zathura window ID! HOT 17
- Feature request: support apastyle prenotes HOT 5
- -shell-escape and pygments for minted HOT 2
- Failed to load vimtex after update HOT 3
- Square brackets unnecessarily concealed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vimtex.