Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change engine to xelatex in Neovim #651

Closed
Spaceface16518 opened this issue Jun 14, 2022 · 4 comments
Closed

Change engine to xelatex in Neovim #651

Spaceface16518 opened this issue Jun 14, 2022 · 4 comments
Labels
bug Something isn't working needs more info Issue requires more information from poster

Comments

@Spaceface16518
Copy link

The solution presented in #263 makes sense but for some reason it is not working on neovim.

My configuration is as follows.

require'lspconfig'.texlab.setup{
    settings = {
        texlab = {
            build = {
                args = { "-pdf", "-pdflatex=xelatex", "-interaction=nonstopmode", "-synctex=1", "%f" }
            }
        }
    }
}

But diagnostics still show the same error and suggest that I switch to xelatex.

Is there something obvious I'm missing? Or is this just broken.

@pfoerster
Copy link
Member

But diagnostics still show the same error and suggest that I switch to xelatex.

Does your log file mention xelatex? texlab itself does not care about the TeX engine you are using (in fact, it does not need a TeX engine for most features) so these errors are originate from latex; texlab only forwards these errors from the build log to neovim.

@pfoerster pfoerster added the needs more info Issue requires more information from poster label Jun 14, 2022
@pfoerster
Copy link
Member

pfoerster commented Jun 14, 2022

My configuration is as follows.

I have found one bug in texlab (there is an easy fix: bd85205). The config does not apply if you do not specify the build executable as well. As a workaround you can set texlab.build.executable to latexmk.

@pfoerster pfoerster added the bug Something isn't working label Jun 14, 2022
pfoerster added a commit that referenced this issue Jun 14, 2022
@Spaceface16518
Copy link
Author

Oh okay thank you so much!

@pfoerster
Copy link
Member

bd85205 is part of the 4.2.0 release

netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this issue Jul 7, 2022
### Added

- Add support for escaping placeholders in forward search ([#649](latex-lsp/texlab#649))
- Add support for diagnostic filtering ([#323](latex-lsp/texlab#323))
- Add pre-built binaries for the following targets:
  - `aarch64-unknown-linux-gnu`
  - `armv7-unknown-linux-gnueabihf`
  - `x86_64-unknown-linux-musl`
  - `aarch64-pc-windows-msvc`
  - `i686-pc-windows-msvc`

### Fixed

- Parse incomplete server options correctly ([#651](latex-lsp/texlab#651))

## [4.1.0] - 12.06.2022

### Added

- Add server commands to clean build directory ([#607](latex-lsp/texlab#607))

### Changed

- Improve output when hovering over BibTeX strings
- Improve the heuristic for finding build artifacts ([#635](latex-lsp/texlab#635))

### Fixed

- Allow brackets in included file paths ([#639](latex-lsp/texlab#639))
- Allow commands in included file paths ([#641](latex-lsp/texlab#641))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs more info Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

2 participants