Skip to content

Commit

Permalink
Sistema simplificado, não precisa mais de template personalizado
Browse files Browse the repository at this point in the history
  • Loading branch information
p3palazzo committed Nov 26, 2020
1 parent f86f5f5 commit 8bf11dc
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 522 deletions.
18 changes: 10 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,23 @@ vpath %.csl styles
vpath %.html .:_includes:_layouts:_site
vpath %.scss assets/css
vpath %.xml _site
vpath %.yaml .:spec
vpath default.% lib
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
docker run -v "`pwd`:/data" --user "`id -u`:`id -g`" \
-v "`pwd`/assets/fonts:/usr/share/fonts" \
pandoc/latex:2.10 -o $@ -d $^
$(PANDOC/LATEX) -o $@ -d $^

%.tex : pdf.yaml %.md | styles
docker run -v "`pwd`:/data" --user "`id -u`:`id -g`" \
-v "`pwd`/assets/fonts:/usr/share/fonts" \
pandoc/latex:2.10 -o $@ -d $^
$(PANDOC/LATEX) -o $@ -d $^

# {{{1 PHONY
# =====
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# UnB-LaTeX

Template para Pandoc e LaTeX com as fontes da Universidade de
Brasília e um Makefile simples.
Template para Pandoc e LaTeX com as fontes da Universidade de
Brasília e um Makefile simples.

Este template formata a página e insere cabeçalhos e rodapés padrão, com
a marca da UnB em versão contorno.
Expand Down
2 changes: 1 addition & 1 deletion spec/html.yaml → _spec/html.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ shift-heading-level-by: 2
cite-method : citeproc
filters:
- pandoc-crossref
- pandoc-citeproc
- citeproc
metadata:
csl: "styles/associacao-brasileira-de-normas-tecnicas.csl"
suppress-bibliography: false
Expand Down
31 changes: 13 additions & 18 deletions spec/pdf.yaml → _spec/pdf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,23 @@ to : latex
standalone : true
file-scope : true
number-sections : true
template : "lib/default.latex"
pdf-engine : xelatex
fail-if-warnings: true
cite-method : citeproc
filters:
- pandoc-crossref
- pandoc-citeproc
- citeproc
variables:
documentclass: article
fontsize: 11pt
geometry:
- top=3cm
- right=2cm
- bottom=2.5cm
- left=3cm
header-includes:
- \usepackage{fancyhdr}
- \pagestyle{fancy}
- \fancyhf{}
- \lhead{\XeTeXglyph \XeTeXglyphindex "ass_completa_CONT" \relax}
- \lfoot{\small{FAU/THAU/PP/2020}}
Expand All @@ -20,26 +28,13 @@ variables:
- \renewcommand{\footrulewidth}{0.5pt}
include-before:
- \thispagestyle{empty}
metadata:
csl: "styles/associacao-brasileira-de-normas-tecnicas.csl"
suppress-bibliography: false
bibliography-title: "Referências bibliográficas"
lang: pt
documentclass: article
fontsize: 11pt
papersize: a4
indent: true
secnumdepth: 2
pagestyle: fancy
mainfont: "UnB Pro"
sansfont: "UnB Pro-Light"
mainfontoptions:
- Numbers=Proportional
- Numbers = Proportional
- BoldFont = UnBPro-Bold
- ItalicFont = UnBPro-RegularItalic
- BoldItalicFont = UnBPro-BoldItalic
geometry:
- top=3cm
- right=2cm
- bottom=2.5cm
- left=3cm
papersize: a4
secnumdepth: 2
5 changes: 4 additions & 1 deletion artigo.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ title :
subtitle:
author :
date :
lang : pt-BR
lang : pt
csl: "styles/associacao-brasileira-de-normas-tecnicas.csl"
suppress-bibliography: false
bibliography-title: "Referências bibliográficas"
---
Loading

0 comments on commit 8bf11dc

Please sign in to comment.