From 3073e6df16abe13c75e7dcc843116c6da4ed398a Mon Sep 17 00:00:00 2001 From: Denis Bakhvalov Date: Mon, 5 Dec 2022 11:15:54 -0500 Subject: [PATCH] Added powershell build command --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1f8b6ef275..ddb29e0c8b 100644 --- a/README.md +++ b/README.md @@ -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.