Skip to content

Commit

Permalink
Add output destination in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
EduardoZepeda committed Nov 9, 2024
1 parent 74c03ff commit 54dce87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ create/epub:
@ mkdir -p output;
@ mkdir -p output/epub;
@ pandoc -f markdown -t epub3 -o output/epub/ApuntesCursos.epub $$(find Notes/ -depth -iregex '.*\.\(md\)' -printf "%p\n" | sort -V | tr '\n' ' ') --metadata title="Apuntes Cursos" --toc -s --toc-depth=1 --css=styles/pandoc_styles.css;
@echo 'Epub was created at output/epub/ApuntesCursos.epub'

## create/pdf: Create a single pdf from all the notes included in the Cursos directory
.PHONY: create/pdf
Expand All @@ -19,6 +20,6 @@ create/pdf:
@ mkdir -p output;
@ mkdir -p output/pdf;
@ pandoc -f markdown -t pdf -N --template=templates/template.tex -s -o output/pdf/apuntes.pdf $$(find Notes/ -depth -iregex '.*\.\(md\)' -printf "%p\n" | sort -V | tr '\n' ' ') --css styles/pandoc_styles.css --pdf-engine=xelatex -f markdown-raw_tex;

@echo 'Pdf was created at output/pdf/apuntes.pdf'


0 comments on commit 54dce87

Please sign in to comment.