My current TeX environment
Here I record my current (December 2022) TeX environement: VS code, TeXmacs and GitHub.
Visual Studio Code
I use Visual Studio Code (VS code) for LaTeX typing.
The greatest feature of VS code is that it has many extensions. For LaTeX, I use the following extensions.
You can also make your own customization by modifying json files.
To change the general setting, go to Code > Preferences > Settings
or open settings.json file (type ⌘ + SHIFT + P (for Mac) and enter ‘settings.json’). For me, the settings.json file is as follows.
{
“workbench.colorTheme”: “Quiet Light”,
“editor.minimap.enabled”: false,
“latex-workshop.intellisense.citation.backend”: “biblatex”,
“git.autofetch”: true,
“editor.tabCompletion”: “onlySnippets”,
“explorer.excludeGitIgnore”: true,
“editor.fontSize”: 14
}
There are json files specific to some file types. For instance, if you want to define snippets for .tex files, you should modify latex.json (go to Code > Preferences > Configure User Snippets
and find or create ‘latex.json’). My latex.json file is quite long due to many snippets, which are inspired by TeXmacs. In the long run, defining snippets increases efficiency. Let’s say that you want to type the following.
\begin{align*}
\alpha = \int_s^t \mathcal{A}(x) \mathrm{d} x.
\end{align*}
With my latex.json, you can just type eq + TAB + * + TAB + a + TAB + = \int_s^t + cA + TAB + (x) + rd + TAB + x.. See Fig 2.
TeXmacs
TeXmacs is something like Word for LaTeX.
I use TeXmacs to record some primitive mathematical ideas, and to create slides (to me it is much easier than beamer). I also used TeXmacs for an online seminar, like Gubinelli’s lecture.
GitHub
GitHub is a code sharing platform based on version control git. Although it is famous for open source repository, you can also create private repositories and use them for collaborative works. Currently all my projects are associated with GitHub repositories. VS code is equipped with basic GitHub user interface. I prefer GitHub over Dropbox, because GitHub has more functions such as the concept of branches, and with GitHub it is easier to see which parts are modified (Fig 4). I prefer GitHub over Overleaf, because you can use your own favorite text editor: I cannot do it without Vim.