Add gitignore files for code and latex directories.