Loading .gitignore 0 → 100644 +286 −0 Changes for .gitignore: 286 added lines, 0 removed lines. Original line number Diff line number Diff line !main.pdf ### https://raw.github.com/github/gitignore/2a4de265d37eca626309d8e115218d18985b5435/TeX.gitignore ## Core latex/pdflatex auxiliary files: *.aux *.lof *.log *.lot *.fls *.out *.toc *.fmt *.fot *.cb *.cb2 .*.lb ## Intermediate documents: *.dvi *.xdv *-converted-to.* # these rules might exclude image files for figures etc. # *.ps # *.eps *.pdf ## Generated if empty string is given at "Please type another file name for output:" .pdf ## Bibliography auxiliary files (bibtex/biblatex/biber): *.bbl *.bcf *.blg *-blx.aux *-blx.bib *.run.xml ## Build tool auxiliary files: *.fdb_latexmk *.synctex *.synctex(busy) *.synctex.gz *.synctex.gz(busy) *.pdfsync ## Build tool directories for auxiliary files # latexrun latex.out/ ## Auxiliary and intermediate files from other packages: # algorithms *.alg *.loa # achemso acs-*.bib # amsthm *.thm # beamer *.nav *.pre *.snm *.vrb # changes *.soc # comment *.cut # cprotect *.cpt # elsarticle (documentclass of Elsevier journals) *.spl # endnotes *.ent # fixme *.lox # feynmf/feynmp *.mf *.mp *.t[1-9] *.t[1-9][0-9] *.tfm #(r)(e)ledmac/(r)(e)ledpar *.end *.?end *.[1-9] *.[1-9][0-9] *.[1-9][0-9][0-9] *.[1-9]R *.[1-9][0-9]R *.[1-9][0-9][0-9]R *.eledsec[1-9] *.eledsec[1-9]R *.eledsec[1-9][0-9] *.eledsec[1-9][0-9]R *.eledsec[1-9][0-9][0-9] *.eledsec[1-9][0-9][0-9]R # glossaries *.acn *.acr *.glg *.glo *.gls *.glsdefs *.lzo *.lzs # uncomment this for glossaries-extra (will ignore makeindex's style files!) # *.ist # gnuplottex *-gnuplottex-* # gregoriotex *.gaux *.gtex # htlatex *.4ct *.4tc *.idv *.lg *.trc *.xref # hyperref *.brf # knitr *-concordance.tex # TODO Uncomment the next line if you use knitr and want to ignore its generated tikz files # *.tikz *-tikzDictionary # listings *.lol # luatexja-ruby *.ltjruby # makeidx *.idx *.ilg *.ind # minitoc *.maf *.mlf *.mlt *.mtc[0-9]* *.slf[0-9]* *.slt[0-9]* *.stc[0-9]* # minted _minted* *.pyg # morewrites *.mw # nomencl *.nlg *.nlo *.nls # pax *.pax # pdfpcnotes *.pdfpc # sagetex *.sagetex.sage *.sagetex.py *.sagetex.scmd # scrwfile *.wrt # sympy *.sout *.sympy sympy-plots-for-*.tex/ # pdfcomment *.upa *.upb # pythontex *.pytxcode pythontex-files-*/ # tcolorbox *.listing # thmtools *.loe # TikZ & PGF *.dpth *.md5 *.auxlock # todonotes *.tdo # vhistory *.hst *.ver # easy-todo *.lod # xcolor *.xcp # xmpincl *.xmpi # xindy *.xdy # xypic precompiled matrices and outlines *.xyc *.xyd # endfloat *.ttt *.fff # Latexian TSWLatexianTemp* ## Editors: # WinEdt *.bak *.sav # Texpad .texpadtmp # LyX *.lyx~ # Kile *.backup # gummi .*.swp # KBibTeX *~[0-9]* # TeXnicCenter *.tps # auto folder when using emacs and auctex ./auto/* *.el # expex forward references with \gathertags *-tags.tex # standalone packages *.sta # Makeindex log files *.lpz # REVTeX puts footnotes in the bibliography by default, unless the nofootinbib # option is specified. Footnotes are the stored in a file with suffix Notes.bib. # Uncomment the next line to have this generated file ignored. #*Notes.bib Dockerfile +1 −1 Changes for Dockerfile: 1 added line, 1 removed line. Original line number Diff line number Diff line FROM paperist/alpine-texlive-ja RUN apk --no-cache add make RUN apk --no-cache update && apk --no-cache add make aspell aspell-en inkscape font-noto font-noto-cjk Makefile +16 −23 Changes for Makefile: 16 added lines, 23 removed lines. Original line number Diff line number Diff line STYLE_MAKEFILES := $(shell find ./sty -name Makefile) FIGURES := IMAGE_NAME := alpine-texlive-ja main.pdf: main.dvi dvipdfmx $< SRC := Dockerfile CREATION_TIME := $(shell docker inspect $(IMAGE_NAME) -f {{.Created}} | xargs date +%s -d) LATEST_MOD_TIME := $(shell echo $(SRC) | xargs -n 1 date +%s -r | awk '{if(m<$$1) m=$$1} END{print m}') main.dvi: main.tex bib.bib $(FIGURES) styles aspell --lang=en -p ./.aspell.en.pws -c -t $< platex $< bibtex $(basename $<) platex $< platex $< platex $< .PHONY: run: build_paper .PHONY: styles styles: for makefile_path in $(STYLE_MAKEFILES); do\ cd $${makefile_path%/*} && make;\ done .PHONY: build_image build_image: if [ -z $(CREATION_TIME) ] || [ $(LATEST_MOD_TIME) -ge $(CREATION_TIME) ]; then \ docker build . -t $(IMAGE_NAME); \ else \ echo "Docker container image is ready up to date."; \ fi .PHONY: clean clean: rm -f main.aux main.bbl main.blg main.dvi main.log main.pdf for makefile_path in $(STYLE_MAKEFILES); do\ cd $${makefile_path%/*} && make clean;\ done .PHONY: build_paper build_paper: docker run -ti --rm -v $(PWD):/workdir $(IMAGE_NAME) make -f docker.mk build.shdeleted 100755 → 0 +0 −3 Changes for build.sh: 0 added lines, 3 removed lines. Original line number Diff line number Diff line #!/bin/bash set -eux docker run -ti --rm -v $(realpath `dirname "$0"`):/workdir alpine-texlive-ja make docker.mk 0 → 100644 +41 −0 Changes for docker.mk: 41 added lines, 0 removed lines. Original line number Diff line number Diff line STYLE_MAKEFILES := $(shell find ./sty -name Makefile) LATEX := platex BIBTEX := pbibtex TEXFLAGS := -shell-escape FIGURES := SRC := main.tex bib.bib $(FIGURES) styles NO_ASPELL := IMGSRC := $(wildcard img/*.svg) IMGOBJ := $(IMGSRC:%svg=%eps) MAKEFILE_PATH := $(dir $(realpath $(firstword $(MAKEFILE_LIST)))) $(warning IMGSRC = $(IMGSRC)) $(warning IMGOBJ = $(IMGOBJ)) main.pdf: main.dvi dvipdfmx -l $< main.dvi: $(SRC) $(IMGOBJ) $(LATEX) $(TEXFLAGS) $< $(BIBTEX) $(basename $<) $(LATEX) $(TEXFLAGS) $< $(LATEX) $(TEXFLAGS) $< $(LATEX) $(TEXFLAGS) $< .PHONY: styles styles: for makefile_path in $(STYLE_MAKEFILES); do\ cd $(MAKEFILE_PATH)/$${makefile_path%/*} && make;\ done .PHONY: clean clean: rm -f main.aux main.bbl main.blg main.dvi main.log main.pdf for makefile_path in $(STYLE_MAKEFILES); do\ cd $${makefile_path%/*} && make clean;\ done %.eps: %.svg inkscape $(shell ls img/*.svg) --export-type=eps; Loading
.gitignore 0 → 100644 +286 −0 Changes for .gitignore: 286 added lines, 0 removed lines. Original line number Diff line number Diff line !main.pdf ### https://raw.github.com/github/gitignore/2a4de265d37eca626309d8e115218d18985b5435/TeX.gitignore ## Core latex/pdflatex auxiliary files: *.aux *.lof *.log *.lot *.fls *.out *.toc *.fmt *.fot *.cb *.cb2 .*.lb ## Intermediate documents: *.dvi *.xdv *-converted-to.* # these rules might exclude image files for figures etc. # *.ps # *.eps *.pdf ## Generated if empty string is given at "Please type another file name for output:" .pdf ## Bibliography auxiliary files (bibtex/biblatex/biber): *.bbl *.bcf *.blg *-blx.aux *-blx.bib *.run.xml ## Build tool auxiliary files: *.fdb_latexmk *.synctex *.synctex(busy) *.synctex.gz *.synctex.gz(busy) *.pdfsync ## Build tool directories for auxiliary files # latexrun latex.out/ ## Auxiliary and intermediate files from other packages: # algorithms *.alg *.loa # achemso acs-*.bib # amsthm *.thm # beamer *.nav *.pre *.snm *.vrb # changes *.soc # comment *.cut # cprotect *.cpt # elsarticle (documentclass of Elsevier journals) *.spl # endnotes *.ent # fixme *.lox # feynmf/feynmp *.mf *.mp *.t[1-9] *.t[1-9][0-9] *.tfm #(r)(e)ledmac/(r)(e)ledpar *.end *.?end *.[1-9] *.[1-9][0-9] *.[1-9][0-9][0-9] *.[1-9]R *.[1-9][0-9]R *.[1-9][0-9][0-9]R *.eledsec[1-9] *.eledsec[1-9]R *.eledsec[1-9][0-9] *.eledsec[1-9][0-9]R *.eledsec[1-9][0-9][0-9] *.eledsec[1-9][0-9][0-9]R # glossaries *.acn *.acr *.glg *.glo *.gls *.glsdefs *.lzo *.lzs # uncomment this for glossaries-extra (will ignore makeindex's style files!) # *.ist # gnuplottex *-gnuplottex-* # gregoriotex *.gaux *.gtex # htlatex *.4ct *.4tc *.idv *.lg *.trc *.xref # hyperref *.brf # knitr *-concordance.tex # TODO Uncomment the next line if you use knitr and want to ignore its generated tikz files # *.tikz *-tikzDictionary # listings *.lol # luatexja-ruby *.ltjruby # makeidx *.idx *.ilg *.ind # minitoc *.maf *.mlf *.mlt *.mtc[0-9]* *.slf[0-9]* *.slt[0-9]* *.stc[0-9]* # minted _minted* *.pyg # morewrites *.mw # nomencl *.nlg *.nlo *.nls # pax *.pax # pdfpcnotes *.pdfpc # sagetex *.sagetex.sage *.sagetex.py *.sagetex.scmd # scrwfile *.wrt # sympy *.sout *.sympy sympy-plots-for-*.tex/ # pdfcomment *.upa *.upb # pythontex *.pytxcode pythontex-files-*/ # tcolorbox *.listing # thmtools *.loe # TikZ & PGF *.dpth *.md5 *.auxlock # todonotes *.tdo # vhistory *.hst *.ver # easy-todo *.lod # xcolor *.xcp # xmpincl *.xmpi # xindy *.xdy # xypic precompiled matrices and outlines *.xyc *.xyd # endfloat *.ttt *.fff # Latexian TSWLatexianTemp* ## Editors: # WinEdt *.bak *.sav # Texpad .texpadtmp # LyX *.lyx~ # Kile *.backup # gummi .*.swp # KBibTeX *~[0-9]* # TeXnicCenter *.tps # auto folder when using emacs and auctex ./auto/* *.el # expex forward references with \gathertags *-tags.tex # standalone packages *.sta # Makeindex log files *.lpz # REVTeX puts footnotes in the bibliography by default, unless the nofootinbib # option is specified. Footnotes are the stored in a file with suffix Notes.bib. # Uncomment the next line to have this generated file ignored. #*Notes.bib
Dockerfile +1 −1 Changes for Dockerfile: 1 added line, 1 removed line. Original line number Diff line number Diff line FROM paperist/alpine-texlive-ja RUN apk --no-cache add make RUN apk --no-cache update && apk --no-cache add make aspell aspell-en inkscape font-noto font-noto-cjk
Makefile +16 −23 Changes for Makefile: 16 added lines, 23 removed lines. Original line number Diff line number Diff line STYLE_MAKEFILES := $(shell find ./sty -name Makefile) FIGURES := IMAGE_NAME := alpine-texlive-ja main.pdf: main.dvi dvipdfmx $< SRC := Dockerfile CREATION_TIME := $(shell docker inspect $(IMAGE_NAME) -f {{.Created}} | xargs date +%s -d) LATEST_MOD_TIME := $(shell echo $(SRC) | xargs -n 1 date +%s -r | awk '{if(m<$$1) m=$$1} END{print m}') main.dvi: main.tex bib.bib $(FIGURES) styles aspell --lang=en -p ./.aspell.en.pws -c -t $< platex $< bibtex $(basename $<) platex $< platex $< platex $< .PHONY: run: build_paper .PHONY: styles styles: for makefile_path in $(STYLE_MAKEFILES); do\ cd $${makefile_path%/*} && make;\ done .PHONY: build_image build_image: if [ -z $(CREATION_TIME) ] || [ $(LATEST_MOD_TIME) -ge $(CREATION_TIME) ]; then \ docker build . -t $(IMAGE_NAME); \ else \ echo "Docker container image is ready up to date."; \ fi .PHONY: clean clean: rm -f main.aux main.bbl main.blg main.dvi main.log main.pdf for makefile_path in $(STYLE_MAKEFILES); do\ cd $${makefile_path%/*} && make clean;\ done .PHONY: build_paper build_paper: docker run -ti --rm -v $(PWD):/workdir $(IMAGE_NAME) make -f docker.mk
build.shdeleted 100755 → 0 +0 −3 Changes for build.sh: 0 added lines, 3 removed lines. Original line number Diff line number Diff line #!/bin/bash set -eux docker run -ti --rm -v $(realpath `dirname "$0"`):/workdir alpine-texlive-ja make
docker.mk 0 → 100644 +41 −0 Changes for docker.mk: 41 added lines, 0 removed lines. Original line number Diff line number Diff line STYLE_MAKEFILES := $(shell find ./sty -name Makefile) LATEX := platex BIBTEX := pbibtex TEXFLAGS := -shell-escape FIGURES := SRC := main.tex bib.bib $(FIGURES) styles NO_ASPELL := IMGSRC := $(wildcard img/*.svg) IMGOBJ := $(IMGSRC:%svg=%eps) MAKEFILE_PATH := $(dir $(realpath $(firstword $(MAKEFILE_LIST)))) $(warning IMGSRC = $(IMGSRC)) $(warning IMGOBJ = $(IMGOBJ)) main.pdf: main.dvi dvipdfmx -l $< main.dvi: $(SRC) $(IMGOBJ) $(LATEX) $(TEXFLAGS) $< $(BIBTEX) $(basename $<) $(LATEX) $(TEXFLAGS) $< $(LATEX) $(TEXFLAGS) $< $(LATEX) $(TEXFLAGS) $< .PHONY: styles styles: for makefile_path in $(STYLE_MAKEFILES); do\ cd $(MAKEFILE_PATH)/$${makefile_path%/*} && make;\ done .PHONY: clean clean: rm -f main.aux main.bbl main.blg main.dvi main.log main.pdf for makefile_path in $(STYLE_MAKEFILES); do\ cd $${makefile_path%/*} && make clean;\ done %.eps: %.svg inkscape $(shell ls img/*.svg) --export-type=eps;