Skip to content

Commit

Permalink
Simplifica Make, tira estilos, Pandoc ~> 2.16.1
Browse files Browse the repository at this point in the history
  • Loading branch information
p3palazzo committed Nov 13, 2021
1 parent 8bf11dc commit d14d2c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 29 deletions.
31 changes: 4 additions & 27 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,36 +1,13 @@
# {{{1 Configurações gerais
# ====================

VPATH = .:assets
vpath %.csl styles
vpath %.html .:_includes:_layouts:_site
vpath %.scss assets/css
vpath %.xml _site
vpath %.yaml .:_spec

PANDOC/LATEX := docker run -u "`id -u`:`id -g`" \
-v "`pwd`:/data" -v "`pwd`/assets/fonts:/usr/share/fonts" \
pandoc/latex:2.11.2

# {{{1 Produtos PDF
# ============

artigo.pdf : pdf.yaml artigo.md | styles
$(PANDOC/LATEX) -o $@ -d $^

%.pdf : pdf.yaml %.md | styles
$(PANDOC/LATEX) -o $@ -d $^
pandoc/latex:2.16.1

%.tex : pdf.yaml %.md | styles
$(PANDOC/LATEX) -o $@ -d $^

# {{{1 PHONY
# =====

styles :
git clone https://github.com/citation-style-language/styles.git
artigo.pdf : artigo.md pdf.yaml bibliografia.yaml
$(PANDOC/LATEX) -o $@ -d _spec/pdf.yaml $<

.PHONY : clean
clean :
rm -rf *.aux *.bbl *.bcf *.blg *.fdb_latexmk *.fls *.log *.run.xml

# vim: set foldmethod=marker shiftwidth=2 tabstop=2 :
4 changes: 2 additions & 2 deletions artigo.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ title :
subtitle:
author :
date :
lang : pt
csl: "styles/associacao-brasileira-de-normas-tecnicas.csl"
lang : pt-BR
csl : "https://raw.githubusercontent.com/citation-style-language/styles/master/associacao-brasileira-de-normas-tecnicas.csl"
suppress-bibliography: false
bibliography-title: "Referências bibliográficas"
---

0 comments on commit d14d2c5

Please sign in to comment.