Skip to content

Commit

Permalink
Simplify build instructions on Windows
Browse files Browse the repository at this point in the history
Signed-off-by: NTOS Linux <[email protected]>
  • Loading branch information
ntoslinux committed Jan 4, 2024
1 parent 274e691 commit 685f5a6
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,9 @@ Run:
# Linux bash
python 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}
# Windows
cmd
python export_book.py && pdflatex book.tex && bibtex book && pdflatex book.tex && pdflatex book.tex
```

As a result, `book.pdf` will be generated. The first compilation may be slow due to the installation of required packets.
Expand Down

0 comments on commit 685f5a6

Please sign in to comment.