Using this template you can generate PDFs similar to Apple documentation PDFs.
Code highlighting using minted:
To compile document that uses minted powered code listings use the following command:
$ xelatex --file-line-error --synctex=1 --shell-escape --interaction=nonstopmode "Apple Documentation Template.tex"
To use Xcode pygments style this extra setup is required:
-
Copy xcode.py into pygments "styles" directory /Library/Python/2.7/site-packages/Pygments-1.6-py2.7.egg/pygments/styles/
-
Edit file pygments/styles/ init.py and add the following line to the STYLE_MAP dictionary: 'xcode': 'xcode::XcodeStyle',