Skip to content

Commit

Permalink
Smoothing up the build process (#63)
Browse files Browse the repository at this point in the history
* Add prerequisites to book make target

In order to build the book, one needs to have some code and figures
generated. Adding this explicitly to the corresponding make target
allows to simply call `make book`, wait, and receive the final pdf file.

* Add prerequisites to slides make target

In order to build the slides, one needs to have some code and figures
generated. Adding this explicitly to the corresponding make target
allows to simply call `make genslides`, wait, and receive the final
pdf file.

* Fix LaTeX build error

The xcolor packages was provided with the non-existent option pdflatex.
This seems to be a rather common problem. The code is changed according to
the solution presented at StackOverflow:
https://tex.stackexchange.com/questions/713015/unknown-option-pdflatex-for-package-xcolor-edef

* Make the Makefile for the tutorial build as much as possible

---------

Co-authored-by: Oliver Keszöcze <olike@dtu.dk>
  • Loading branch information
keszocze and Oliver Keszöcze authored Nov 7, 2024
1 parent 6ce1594 commit c9c87db
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ checkref:
fig:
make -C figures

book:
book: gencode fig
pdflatex $(DOC)
pdflatex $(DOC)
bibtex $(DOC)
makeindex $(DOC)
pdflatex $(DOC)
pdflatex $(DOC)

genslides:
genslides: gencode fig
cd slides; ./doslides.sh

veryclean:
Expand Down
5 changes: 4 additions & 1 deletion slides-tutorial/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@

all:
pdflatex program
pdflatex intro
pdflatex features
pdflatex chisel-10min
pdflatex chisel-30min
pdflatex unit1
pdflatex unit2
pdflatex unit3
pdflatex unit4
Expand Down
2 changes: 1 addition & 1 deletion slides/common/slides_common.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\documentclass[xcolor=pdflatex,dvipsnames,table]{beamer}
\documentclass[xcolor={dvipsnames,table}]{beamer}
\usepackage{epsfig,graphicx}
\usepackage{palatino}
\usepackage{fancybox}
Expand Down

0 comments on commit c9c87db

Please sign in to comment.