Skip to content

Commit

Permalink
Added powershell build command
Browse files Browse the repository at this point in the history
  • Loading branch information
dendibakh authored Dec 5, 2022
1 parent dca4186 commit 3073e6d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,16 @@ You need to install:
# Building a book (pdf)

Run:
```
```bash
# Linux bash & Mac
python.exe export_book.py && pdflatex book.tex && bibtex book && pdflatex book.tex && pdflatex book.tex

# Windows Powershell
function Run-Block-With-Error($block) {
$ErrorActionPreference="Stop"
Invoke-Command -ScriptBlock $block
}
Run-Block-With-Error {python.exe export_book.py; pdflatex book.tex; bibtex book; pdflatex book.tex; pdflatex book.tex}
```

First compilation may be slow due to installation of required packets.
Expand Down

0 comments on commit 3073e6d

Please sign in to comment.