update: makefile and vscode latex recipy
This commit is contained in:
Vendored
+20
@@ -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"
|
||||||
|
}
|
||||||
@@ -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)
|
||||||
Reference in New Issue
Block a user