Skip to content

Commit

Permalink
template in makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
rreece committed Oct 27, 2023
1 parent 11fb022 commit b0982ef
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,18 @@ jobs:

- name: Look
run: ls

- name: Run make html
run: make html

- name: Run make html check
run: cat pandoc.log
run: cat pandoc-html.log

- name: Run make pdf
run: make pdf

- name: Run make pdf check
run: cat latex.log

run: |
cat latex.log
cat pandoc-tex.log
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ pdf: $(OUTPUT).pdf
--mathjax \
--filter pandoc-crossref \
$(BIB_OPTIONS) \
-o $@ $< $(BACKMATTER_HTML) meta.yaml > pandoc.log 2>&1
-o $@ $< $(BACKMATTER_HTML) meta.yaml > pandoc-html.log 2>&1
$(PRINT) "make $@ done."

## create tex with references replaced and bibliography created
Expand All @@ -74,7 +74,7 @@ $(OUTPUT).tex: $(MDP_FILES) bibs/mybib.bib meta.yaml
--template=$(TEMPLATE) \
--filter pandoc-crossref \
$(BIB_OPTIONS) \
-o $@ $(MD_FILES) $(BACKMATTER_TEX) meta.yaml
-o $@ $(MD_FILES) $(BACKMATTER_TEX) meta.yaml > pandoc-tex.log 2>&1
$(PRINT) "template1 = $(TEMPLATE1)"
$(PRINT) "template = $(TEMPLATE)"
$(PRINT) "make $@ done."
Expand Down
2 changes: 1 addition & 1 deletion meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ navigation: true
#thumbnail: 'http://rreece.github.io/sw/markdown-memo/img/ATLAS-local-p0-vs-mH.png'

## pdflatex options ---------------------------------------
template: 'templates/book.tex'
template: templates/book.tex
documentclass: 'memoir'
chapterstyle: 'default'
classoption:
Expand Down

0 comments on commit b0982ef

Please sign in to comment.