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 ...@@ -15,4 +15,4 @@ $pdflatex = 'pdflatex %O -interaction=nonstopmode -synctex=1 -file-line-error %S
$pdf_previewer = $ENV{'VIEWER'}; $pdf_previewer = $ENV{'VIEWER'};
# push @generated_exts, 'lol', 'synctex.gz'; # push @generated_exts, 'lol', 'synctex.gz';
push @generated_exts, 'blg','lol', 'cut', 'nav', 'snm', 'vrb', 'synctex.gz'; push @generated_exts, 'blg', 'fls', 'lol', 'cut', 'nav', 'snm', 'vrb', 'synctex.gz';
\ No newline at end of file \ No newline at end of file
BASENAME = demo BASENAME = demo
BUILDDIR = build BUILDDIR = build
TARGET = $(BASENAME).pdf
# Environment # Environment
TEXDIRS = resources/tex:resources/latex-sty:resources/listings:resources/latex:resources/images:resources/tables:resources/latex TEXDIRS = resources/tex:resources/latex-sty:resources/listings:resources/latex:resources/images:resources/tables:resources/latex
...@@ -9,25 +7,30 @@ BIBDIRS = resources/latex/ ...@@ -9,25 +7,30 @@ BIBDIRS = resources/latex/
BSTDIR = resources/latex-bst/ BSTDIR = resources/latex-bst/
# cf. latexmkrc # cf. latexmkrc
LATEXMKS = export TARGET=$(basename $(notdir $1)).pdf && $(call LATEXMK, $(basename $1)$2)
LATEXMK = latexmk $1 LATEXMK = latexmk $1
VIEWER = xdg-open VIEWER = xdg-open
all: $(TARGET) all: $(BASENAME).build
pv: $(BASENAME).pv
pvc: $(BASENAME).pvc
clean: $(BASENAME).clean
distclean: $(BASENAME).distclean
$(TARGET): .FORCE | $(BUILDDIR)/ %.build:
$(call LATEXMK,) $(call LATEXMKS, $@, )
pv: %.pv:
$(call LATEXMK,-pv) $(call LATEXMKS, $@, -pv)
pvc: %.pvc:
$(call LATEXMK,-pvc) $(call LATEXMKS, $@, -pvc)
clean: %.clean:
$(call LATEXMK,-c) $(call LATEXMKS, $@, -c)
distclean: %.distclean:
$(call LATEXMK,-C) $(call LATEXMKS, $@, -C)
%/: %/:
mkdir -p $@ mkdir -p $@
......
No preview for this file type
\documentclass{standalone} \documentclass{standalone}
% \usepackage{booktabs,tabu,multirow,multicol,xfrac} % \usepackage{booktabs,tabu,multirow,multicol,xfrac}
% \usepackage[binary-units]{siunitx} % \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} \begin{document}
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
% \setlist[acronyms]{labelwidth = 5em} % \setlist[acronyms]{labelwidth = 5em}
% \DeclareAcroListStyle{acrostyle}{list}{ list = acronyms } % \DeclareAcroListStyle{acrostyle}{list}{ list = acronyms }
% \acsetup{ list-style = acrostyle } % \acsetup{ list-style = acrostyle }
% \input{../latex/acronyms} % \input{resources/latex/acronyms}
\begin{document} \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