Skip to content

Instantly share code, notes, and snippets.

@subidit
Created March 21, 2024 08:21
Show Gist options
  • Select an option

  • Save subidit/b40ee35250acf0dbd6810185c1d57304 to your computer and use it in GitHub Desktop.

Select an option

Save subidit/b40ee35250acf0dbd6810185c1d57304 to your computer and use it in GitHub Desktop.
Helix LaTeX setup. with latexmk/tectonic builds and zathura/okular forward search.
[[language]]
name = "latex"
[language.config.texlab]
auxDirectory = "build"
[language.config.texlab.chktex]
onOpenAndSave = true
onEdit = true
[language.config.texlab.forwardSearch]
executable = "zathura"
args = [ "--synctex-forward", "%l:%c:%f", "%p" ]
# executable = "okular"
# args = ["--unique", "file:%p#src:%l%f"]
[language.config.texlab.build]
forwardSearchAfter = true
onSave = true
# executable = "latexmk"
# args = [
# "-pdf",
# "-interaction=nonstopmode",
# "-synctex=1",
# "-shell-escape",
# "-output-directory=build",
# "%f"
# ]
executable = "tectonic"
args = [
"-X",
"compile",
"%f",
"--synctex",
"--keep-logs",
"--keep-intermediates",
"--outdir=build",
"-Zshell-escape",
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment