update: makefile and vscode latex recipy

This commit is contained in:
2026-04-09 15:53:44 -04:00
parent ea93697fd9
commit 53e23a1363
2 changed files with 26 additions and 1 deletions
+20
View File
@@ -0,0 +1,20 @@
{
"latex-workshop.view.pdf.trim": 0,
"latex-workshop.latex.recipes": [
{
"name": "make",
"tools": ["make"]
}
],
"latex-workshop.latex.tools": [
{
"name": "make",
"command": "make",
"args": [
"autopush"
],
"env": {}
}
],
"latex-workshop.view.pdf.zoom": "page-fit"
}
+6 -1
View File
@@ -1,7 +1,8 @@
main = report main = report
latexmk = latexmk -pdflatex latexmk = latexmk -pdflatex
git_add_files = *.tex imgs/ ref.bib
.PHONY : main clean cleanall .PHONY : main clean cleanall autopush
main: $(main).tex main: $(main).tex
$(latexmk) $< $(latexmk) $<
@@ -11,3 +12,7 @@ clean:
cleanall: cleanall:
$(latexmk) -C $(main).tex $(latexmk) -C $(main).tex
autopush: main
git add $(git_add_files)
git diff --cached --quiet || (git commit -m "update: auto commit" && git push)