Skip to content

Commit

Permalink
Merge pull request #5 from mlhetland/mlh/arxiv-compat
Browse files Browse the repository at this point in the history
Improve backward compatibility, in particular for arXiv
  • Loading branch information
mlhetland authored Oct 30, 2019
2 parents 68388ae + 40723be commit ce18ab5
Show file tree
Hide file tree
Showing 6 changed files with 548 additions and 180 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ TARGETS=doc/pseudo.pdf doc/fig/readmefig.svg

LATEX=latexmk -norc -pdf -auxdir=build -outdir=build
FIGS=build/hilitefig.pdf build/pausefig.pdf build/kwfig.pdf
TESTS=build/pseudotest.pdf

all: $(TARGETS)

doc/pseudo.pdf: build/pseudo.pdf
cp $< $@

build/pseudo.pdf: doc/pseudo.tex build/pseudo.bib $(FIGS) README.md pseudo.sty
build/pseudo.pdf: doc/pseudo.tex build/pseudo.bib $(FIGS) $(TESTS) README.md pseudo.sty
$(LATEX) $<

build/pseudo.bib: doc/pseudo.bib
Expand All @@ -23,6 +24,9 @@ build/pausefig.pdf: doc/fig/pausefig.tex pseudo.sty
build/kwfig.pdf: doc/fig/kwfig.tex pseudo.sty
$(LATEX) $<

build/pseudotest.pdf: test/pseudotest.tex pseudo.sty
$(LATEX) $<

pseudo.sty: VERSION LICENSE doc/pseudo.tex
cat LICENSE | sed -e "s/^/% /" | sed -e "s/^% \$$/%/" > pseudo.sty
echo "%" >> pseudo.sty
Expand All @@ -33,7 +37,7 @@ pseudo.sty: VERSION LICENSE doc/pseudo.tex
-e "s/_@@/__pseudo/g" \
-e "s/@@/__pseudo/g" \
-e "s/VERSION/$$(cat VERSION)/g" \
-e "s/DATE/$$(date +"%Y-%m-%d")/g" \
-e "s/DATE/$$(date +"%Y\/%m\/%d")/g" \
-e "s/[ ]*%.*\$$//" \
-e "/^\$$/d" \
-e "p" \
Expand Down
130 changes: 65 additions & 65 deletions doc/fig/readmefig.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/pseudo.pdf
Binary file not shown.
Loading

0 comments on commit ce18ab5

Please sign in to comment.