These LaTex documents contain the solutions of past year examination questions for Computer Science courses offered by School of Computer Science and Engineering, Nanyang Technological University, Singapore.
All latest release can be found in the Release Page.
Subject | 12-13 S2 | 13-14 S2 | 14-15 S2 | 15-16 S2 |
---|---|---|---|---|
CZ4013 Distributed System | ✗ | ✔ | ✔ | ✗ |
CZ4034 Information Retrieval | ✔ | ✔ | ✔ | ✗ |
CZ4041 Machine Learning | ✗ | ✗ | ✗ | ✔ |
To load this project using Sublime Text 3:
$ subl --project ntucs-pyp.sublime-project
If you would like to build this document from source, first you need to install TeX:
# For ubuntu
$ sudo apt-get install texlive-full
# For Mac OX
$ brew cask install mactex
Once you have TeX installed, make sure that you can use pdflatex
command in terminal. To build the document in PDF format:
# Change directory to some course first, then:
$ make
# Only do these for first time
$ docker pull blang/latex
$ curl -O https://raw.githubusercontent.com/blang/latex-docker/master/dockercmd.sh && chmod +x ./dockercmd.sh
# Build .tex files one by one
$ ./dockercmd.sh pdflatex -shell-escape -halt-on-error -interaction=nonstopmode example.tex
# Build all .tex files
$ find . -type f | grep "\.tex" | xargs -L 1 ./dockercmd.sh pdflatex -shell-escape -halt-on-error -interaction=nonstopmode
To automatically build the PDF while editing .tex
file, you need to install watch-cli using npm
first:
$ npm install -g watch-cli
Then you start watching for changes:
# change the filename to the file you want
$ watch -p "*.tex" -c "pdflatex -shell-escape -halt-on-error -interaction=nonstopmode cz4034-13-14-2.tex"
By tagging a commit, the commit will be build by Travis CI. All PDF files will be uploaded to the release page.
$ git add .
$ git commit -m "Message"
$ git tag v<version-number>
$ git push -u origin master --tags