\beginĪlso super convenient if you’re defining a variable that is always bold if, for For instance, in the TeX below, snippets means My most used command is typing begin, whichĪllows me to allows me to autocomplete the parts of LaTeX that I don’t want to In vim, I have several plugins I have in my. Work) that I’ll list below that save me a lot of time. There are a few other tools that I use for writing papers (or extensive notes on After making edits, I’ll pressĬontrol-T to compile and the pdf will auto-refresh in Skim.Įxample of macvim next to Skim setup. Left and the Skim on the right with the pdf open. When I’m writing a document, I’ll often have my text editor full screen on the These types of key bindings can usually be setup with other text editors as well. vimrc file autocmd FileType tex nmap :!latexmk -pdf % control-T compiles the tex to pdf using latexmkįor instance, the compile keybinding above is done by adding the following line.I have the following key bindings in vim: In latexmk, you can also automatically recompile the tex when needed, but I prefer to manually compile the tex. tex file using latexmk.įiles can be compiled to pdf with the command latexmk -pdf In vim, I have several keybindings set up in my. By contrast, Preview will refresh the document and reload it from theīeginning of the document, which is quite cumbersome if you’d just edited text on page 5. The nice thing about Skim is that it willĪutoupdate the pdf after you compile the tex and keep the document in the same For writing documents, I often also like using macvim, which isīasically vim but with a few extra GUI features, such as scrolling and textįor my pdf reader, I use the Skim app. Though I describe things with respect to vim, most of this setup can alsoĪchieved with some other text editor, e.g., emacs or sublime. I like being able to use my own customized text editor (with my favorite keyboard shortcuts) to edit a raw text file that I can then put under version control. I currently write notes and papers using LaTeX on a Mac, though in a previous life, my setup on Linux was very similar (i.e., s/macvim/gvim/g and s/skim/zathura/g). I’ll describe my current LaTeX setup – vim, skim, and latexmk.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |