-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a Makefile to generate PDFs, and a README for instructions
Add a Makefile that uses pandoc to generate PDFs from any .md files present in the repo. Add a README detailing how to use it. Signed-off-by: Vishal Verma <[email protected]>
- Loading branch information
1 parent
9781957
commit a8b66fe
Showing
3 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
PANDOC := pandoc | ||
PANDOC_OPTS += --pdf-engine=xelatex | ||
PANDOC_OPTS += -V geometry:"top=2cm, bottom=2cm, left=2.5cm, right=2.5cm" | ||
PANDOC_OPTS += -V mainfont="DroidSans" | ||
PANDOC_OPTS += -V urlcolor=RoyalBlue | ||
PANDOC_OPTS += --include-in-header=template.tex | ||
|
||
SRCS := $(shell find . -type f \( ! -iname "README*" \) -name '*.md') | ||
OBJS := $(patsubst %.md,%.pdf,$(SRCS)) | ||
|
||
all: $(OBJS) | ||
|
||
%.pdf: %.md | ||
$(PANDOC) $(PANDOC_OPTS) -o $@ $< | ||
|
||
clean: | ||
rm -f *.pdf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
### Building PDFs | ||
* Install prerequisites: | ||
* dnf install pandoc texlive texlive-xetex texlive-ulem | ||
* `make -j` to make everything, or | ||
* `make <desired_file.pdf>` to make a specific pdf. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
\let\oldrule=\rule | ||
\renewcommand{\rule}[1]{\oldrule{\linewidth}} | ||
\pagenumbering{gobble} |