Preview target
This commit is contained in:
parent
1dde3f8e74
commit
a713d560d5
|
@ -4,16 +4,20 @@
|
||||||
#
|
#
|
||||||
# Change only the variable below to the name of the main tex file.
|
# Change only the variable below to the name of the main tex file.
|
||||||
PROJNAME=univalent-categories
|
PROJNAME=univalent-categories
|
||||||
|
MAIN=main.tex
|
||||||
|
|
||||||
# You want latexmk to *always* run, because make does not have all the info.
|
# You want latexmk to *always* run, because make does not have all the info.
|
||||||
# Also, include non-file targets in .PHONY so they are run regardless of any
|
# Also, include non-file targets in .PHONY so they are run regardless of any
|
||||||
# file of the given name existing.
|
# file of the given name existing.
|
||||||
.PHONY: $(PROJNAME).pdf all clean
|
.PHONY: $(PROJNAME).pdf all clean preview
|
||||||
|
|
||||||
# The first rule in a Makefile is the one executed by default ("make"). It
|
# The first rule in a Makefile is the one executed by default ("make"). It
|
||||||
# should always be the "all" rule, so that "make" and "make all" are identical.
|
# should always be the "all" rule, so that "make" and "make all" are identical.
|
||||||
all: $(PROJNAME).pdf
|
all: $(PROJNAME).pdf
|
||||||
|
|
||||||
|
preview: $(MAIN)
|
||||||
|
latexmk -pvc -jobname=$(PROJNAME) -pdf -pdflatex="pdflatex -interactive=nonstopmode" $<
|
||||||
|
|
||||||
# CUSTOM BUILD RULES
|
# CUSTOM BUILD RULES
|
||||||
|
|
||||||
# In case you didn't know, '$@' is a variable holding the name of the target,
|
# In case you didn't know, '$@' is a variable holding the name of the target,
|
||||||
|
@ -36,7 +40,7 @@ all: $(PROJNAME).pdf
|
||||||
# -interactive=nonstopmode keeps the pdflatex backend from stopping at a
|
# -interactive=nonstopmode keeps the pdflatex backend from stopping at a
|
||||||
# missing file reference and interactively asking you for an alternative.
|
# missing file reference and interactively asking you for an alternative.
|
||||||
|
|
||||||
$(PROJNAME).pdf: main.tex
|
$(PROJNAME).pdf: $(MAIN)
|
||||||
latexmk -jobname=$(PROJNAME) -pdf -pdflatex="pdflatex -interactive=nonstopmode" -use-make $<
|
latexmk -jobname=$(PROJNAME) -pdf -pdflatex="pdflatex -interactive=nonstopmode" -use-make $<
|
||||||
|
|
||||||
cleanall:
|
cleanall:
|
||||||
|
|
|
@ -236,7 +236,7 @@ however; the first one is that the standard library's notion of a functor is
|
||||||
indexed by the object map:
|
indexed by the object map:
|
||||||
%
|
%
|
||||||
$$
|
$$
|
||||||
\Functor & \tp (\Type \to \Type) \to \Type
|
\Functor \tp (\Type \to \Type) \to \Type
|
||||||
$$
|
$$
|
||||||
%
|
%
|
||||||
Where $\Functor\ F$ has the member:
|
Where $\Functor\ F$ has the member:
|
||||||
|
@ -248,7 +248,7 @@ $$
|
||||||
Whereas the object map in my definition is existentially quantified:
|
Whereas the object map in my definition is existentially quantified:
|
||||||
%
|
%
|
||||||
$$
|
$$
|
||||||
\Functor & \tp \Type
|
\Functor \tp \Type
|
||||||
$$
|
$$
|
||||||
%
|
%
|
||||||
And $\Functor$ has these members:
|
And $\Functor$ has these members:
|
||||||
|
|
Loading…
Reference in a new issue