-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #370 from ScorexFoundation/tex_autocompile
Add TeX software autodetect and respective warnings. Also make TeX...
- Loading branch information
Showing
2 changed files
with
26 additions
and
4 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 |
---|---|---|
@@ -1,9 +1,20 @@ | ||
#!/usr/bin/env bash | ||
#!/usr/bin/env sh | ||
|
||
command -v pdflatex && command -v bibtex | ||
if [[ "$?" != 0 ]]; then | ||
echo "Command 'pdflatex' or 'bibtex' not exist, both must be installed. For Ubuntu, try:" | ||
echo "sudo apt install texlive-latex-base texlive-binaries" | ||
echo | ||
echo "You may also need to install additional packages like fonts, etc. For Ubuntu, try:" | ||
echo "sudo apt-get install texlive-fonts-recommended latex-xcolor texlive-latex-extra cm-super" | ||
exit 1; | ||
fi | ||
|
||
pdflatex sigmastate_protocols | ||
bibtex sigmastate_protocols | ||
pdflatex sigmastate_protocols | ||
pdflatex sigmastate_protocols | ||
rm sigmastate_protocols.aux | ||
rm sigmastate_protocols.log | ||
rm sigmastate_protocols.out | ||
rm sigmastate_protocols.toc | ||
rm sigmastate_protocols.log |
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 |
---|---|---|
@@ -1,9 +1,20 @@ | ||
#!/usr/bin/env bash | ||
#!/usr/bin/env sh | ||
|
||
command -v pdflatex && command -v bibtex | ||
if [[ "$?" != 0 ]]; then | ||
echo "Command 'pdflatex' or 'bibtex' not exist, both must be installed. For Ubuntu, try:" | ||
echo "sudo apt install texlive-latex-base texlive-binaries" | ||
echo | ||
echo "You may also need to install additional packages like fonts, etc. For Ubuntu, try:" | ||
echo "sudo apt-get install texlive-fonts-recommended latex-xcolor texlive-latex-extra cm-super" | ||
exit 1; | ||
fi | ||
|
||
pdflatex sigma | ||
bibtex sigma | ||
pdflatex sigma | ||
pdflatex sigma | ||
rm sigma.aux | ||
rm sigma.log | ||
rm sigma.out | ||
rm sigma.toc | ||
rm sigma.log |