diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..b79111f --- /dev/null +++ b/.vscode/settings.json @@ -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" +} \ No newline at end of file diff --git a/Makefile b/Makefile index 04bdc60..b6d9f6d 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,8 @@ main = report latexmk = latexmk -pdflatex +git_add_files = *.tex imgs/ ref.bib -.PHONY : main clean cleanall +.PHONY : main clean cleanall autopush main: $(main).tex $(latexmk) $< @@ -11,3 +12,7 @@ clean: cleanall: $(latexmk) -C $(main).tex + +autopush: main + git add $(git_add_files) + git diff --cached --quiet || (git commit -m "update: auto commit" && git push) \ No newline at end of file