-
Notifications
You must be signed in to change notification settings - Fork 0
Latex Support
🧪 Tested on MacOS Sonoma 14.0
-
PDF Latex which has been changed to
basictex
-
Latexmk.
-
Skim.
First, install basictex
brew install --cask basictex
After installing basictex
, you will need to quit your shell program. This will automatically install tlmgr
, which is a package manager for latex.
Before Downloading latexmk
, you will need to update tlmgr
. This is made with the sudo
command because the directory where it's placed is not writable on mac by default.
sudo tlmgr update --self
Now we proceed to install latexmk
.
sudo tlmgr install latexmk
Here is how to set up Skim to work with Neovim running VimTeX.
-
You will need Skim installed.
-
After making sure your Skim version is up to date, enable automatic document refreshing (so Skim will automatically update the displayed PDF after each compilation) by opening Skim and navigating to
Settings
>Sync
. Then select Check for file changes and Reload automatically.
Place the following code in an appropriate config file:
return {
-- VImTex configuration
{
'lervag/vimtex',
init = function ()
vim.g.vimtex_view_method = "skim"
end,
event = "BufRead",
},
}