To see the pdf click here
A GitHub action was created to generate and commit the pdf.
-
Install a LaTeX Distribution
- Ubuntu/Debian (Linux)
sudo apt update sudo apt install texlive-full latexmk
- macOS
Install MacTeX which is too heavy or use the lightweight version BasicTex.
- Windows
Install MiKTeX.
-
Save Your CV as a .tex File
-
Create a New File:
- Open your terminal and navigate to your desired directory.
- Create a new file named cv.tex:
touch cv.tex
-
Paste Your LaTeX Code:
- Open cv.tex in Neovim:
nvim cv.tex
- Paste your CV LaTeX code into this file.
- Save the file by pressing :w in Neovim.
-
Set Up Neovim with vim-plug and CoC
a. Install vim-plug
If you haven’t installed vim-plug yet:
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
b. Configure init.vim
-
Open Neovim Configuration:
nvim ~/.config/nvim/init.vim
-
Set Up vim-plug in init.vim:
call plug#begin('~/.local/share/nvim/plugged') Plug 'neoclide/coc.nvim', {'branch': 'release'} Plug 'lervag/vimtex' call plug#end()
And then execute :PlugInstall in nvim.
-
-
Configure vimtex Plugin
Add the following configurations to your init.vim:
" VimTeX configuration let g:tex_flavor = 'latex' let g:vimtex_view_method = 'zathura' " Use 'zathura', 'evince', 'okular' let g:vimtex_compiler_method = 'latexmk' " Disable compilation let g:vimtex_map_compile = 0 " Map to compile nmap <leader>la <Plug>(vimtex-compile)
-
Install coc-texlab: In Neovim, run:
:CocInstall coc-texlab
-
Verify if you have latexmk
which latexmk
in case that is not present then install it
sudo tlmgr update --self --all
sudo tlmgr install latexmk enumitem needspace fontawesome5
latexmk -C cv.tex
latexmk -pdf cv.tex
or use our make commands
make fresh
make view
<localleader>la will compile the tex file (according to our config)
<localleader>lc clear aux files
<localleader>lC full clear
<localleader>lv view the generated file
Note
In my case localleader is \