A LaTeX template inspired by Obisdian.
LaXidiaN is a LaTeX template inspired by Obsidian for taking notes.
This template features:
- Unbreakable callout boxes. There are four types of callout boxes: success, danger, info and warning.
- Custom callout boxes. You can create your own callout box if you have specifc needs.
- Referencable callout boxes. You can create a reference to one or more of your callout boxes and re-use them later in the document.
- Pre-defined mathematical operators and expression.
- Custom images and tables fitting and formatting.
- Custom theorems, proofs and quotes.
The template is structured as follows:
packages.sty
, it contains all the packages used for styling and defining new commands;definitions.sty
, it contains all the definitions of the mathematical operators and expressions;styles.sty
, here are defined the styles for the various callout boxes, along with the theorems, proofs and quotes.
In order to write and compile LaTeX on VsCode, install the LaTeX Workshop extension on the marketplace.
Once you have enabled it, open the extension's settings and set the Out Dir
option to %TMPDIR%
, like illustrated below. This will ensure that all compiled files will be placed in a temporary directory and not in your current working directory.
Finally, edit your settings.json
file and paste the following code:
"latex-workshop.latex.tools": [
{
"name": "latexmk",
"command": "latexmk",
"args": [
"-shell-escape",
"-synctex=1",
"-interaction=nonstopmode",
// "-file-line-error",
"-pdf",
"-outdir=%TMPDIR%",
"%DOC%"
],
"env": {}
},
{
"name": "lualatexmk",
"command": "latexmk",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"-lualatex",
"-outdir=%OUTDIR%",
"%DOC%"
],
"env": {}
},
{
"name": "xelatexmk",
"command": "latexmk",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"-xelatex",
"-outdir=%OUTDIR%",
"%DOC%"
],
"env": {}
},
{
"name": "latexmk_rconly",
"command": "latexmk",
"args": [
"%DOC%"
],
"env": {}
},
{
"name": "pdflatex",
"command": "pdflatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOC%"
],
"env": {}
},
{
"name": "bibtex",
"command": "bibtex",
"args": [
"%DOCFILE%"
],
"env": {}
},
{
"name": "rnw2tex",
"command": "Rscript",
"args": [
"-e",
"knitr::opts_knit$set(concordance = TRUE); knitr::knit('%DOCFILE_EXT%')"
],
"env": {}
},
{
"name": "jnw2tex",
"command": "julia",
"args": [
"-e",
"using Weave; weave(\"%DOC_EXT%\", doctype=\"tex\")"
],
"env": {}
},
{
"name": "jnw2texminted",
"command": "julia",
"args": [
"-e",
"using Weave; weave(\"%DOC_EXT%\", doctype=\"texminted\")"
],
"env": {}
},
{
"name": "pnw2tex",
"command": "pweave",
"args": [
"-f",
"tex",
"%DOC_EXT%"
],
"env": {}
},
{
"name": "pnw2texminted",
"command": "pweave",
"args": [
"-f",
"texminted",
"%DOC_EXT%"
],
"env": {}
},
{
"name": "tectonic",
"command": "tectonic",
"args": [
"--synctex",
"--keep-logs",
"%DOC%.tex"
],
"env": {}
}
],
"latex-workshop.latex.autoClean.run": "onBuilt",
"latex-workshop.latex.clean.subfolder.enabled": true,
"latex-workshop.latex.outDir": "%TMPDIR%",
"latex-workshop.message.warning.show": false,
If you'd like to contribute to the project, please:
- Create a fork of this repository;
- Clone the newly created fork;
- Create a branch named with the feature/fix you would like to implement, for example:
git branch -m fix-boxes
- Create a pull request and wait for approval;
Cmon, join our contributors:
This template is distributed under the GNU General Public License v3.0.