Commit 94b5f34e authored by Alija Sabic's avatar Alija Sabic
Browse files

Enhance makefile: main targets available for every tex file. FIXME: preamble...

Enhance makefile: main targets available for every tex file. FIXME: preamble of standalone needs to be placed depending on the target.
parent 4caaa0ab
......@@ -15,4 +15,4 @@ $pdflatex = 'pdflatex %O -interaction=nonstopmode -synctex=1 -file-line-error %S
$pdf_previewer = $ENV{'VIEWER'};
# push @generated_exts, 'lol', 'synctex.gz';
push @generated_exts, 'blg','lol', 'cut', 'nav', 'snm', 'vrb', 'synctex.gz';
\ No newline at end of file
push @generated_exts, 'blg', 'fls', 'lol', 'cut', 'nav', 'snm', 'vrb', 'synctex.gz';
\ No newline at end of file
BASENAME = demo
BUILDDIR = build
TARGET = $(BASENAME).pdf
# Environment
TEXDIRS = resources/tex:resources/latex-sty:resources/listings:resources/latex:resources/images:resources/tables:resources/latex
......@@ -9,25 +7,30 @@ BIBDIRS = resources/latex/
BSTDIR = resources/latex-bst/
# cf. latexmkrc
LATEXMKS = export TARGET=$(basename $(notdir $1)).pdf && $(call LATEXMK, $(basename $1)$2)
LATEXMK = latexmk $1
VIEWER = xdg-open
all: $(TARGET)
all: $(BASENAME).build
pv: $(BASENAME).pv
pvc: $(BASENAME).pvc
clean: $(BASENAME).clean
distclean: $(BASENAME).distclean
$(TARGET): .FORCE | $(BUILDDIR)/
$(call LATEXMK,)
%.build:
$(call LATEXMKS, $@, )
pv:
$(call LATEXMK,-pv)
%.pv:
$(call LATEXMKS, $@, -pv)
pvc:
$(call LATEXMK,-pvc)
%.pvc:
$(call LATEXMKS, $@, -pvc)
clean:
$(call LATEXMK,-c)
%.clean:
$(call LATEXMKS, $@, -c)
distclean:
$(call LATEXMK,-C)
%.distclean:
$(call LATEXMKS, $@, -C)
%/:
mkdir -p $@
......
No preview for this file type
\documentclass{standalone}
% \usepackage{booktabs,tabu,multirow,multicol,xfrac}
% \usepackage[binary-units]{siunitx}
\sisetup{quotient-mode=fraction,fraction-function=\sfrac,product-units=single,exponent-product=\times}
% \sisetup{quotient-mode=fraction,fraction-function=\sfrac,product-units=single,exponent-product=\times}
\begin{document}
......
......@@ -10,7 +10,7 @@
% \setlist[acronyms]{labelwidth = 5em}
% \DeclareAcroListStyle{acrostyle}{list}{ list = acronyms }
% \acsetup{ list-style = acrostyle }
% \input{../latex/acronyms}
% \input{resources/latex/acronyms}
\begin{document}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment