No description
Find a file
2018-08-25 10:02:12 +02:00
Screen Shots Adds CodelistingSwift.png 2015-09-16 20:51:47 +02:00
.gitignore Initial commit 2014-01-14 02:40:49 -08:00
Apple Documentation Template.pdf Adds support for Swift syntax highlighting. 2015-09-16 19:46:18 +02:00
AppleDocumentationTemplate.tex Renamed tex file so it does not contain spaces 2018-08-25 10:02:12 +02:00
README.md Updated Pygments installation instruction so sudo does not have to be used 2018-08-25 09:44:26 +02:00

Overview

This LaTeX template will let you create beautiful PDF documents inspired by Apple documentations.

  • Title page
  • Table of contents
  • Chapter, section, and subsection headings
  • Objective-C code listing with syntax highlighting
  • Swift code listing with syntax highlighting

How To Get Started

  1. Install MacTex
    1. Check if there are any updates for TeXShop and TeX Live Utility applications
    2. Launch TeX Live Utility and update all packages
  2. Install Pygments
    1. $ easy_install --user Pygments
    2. ln -s /Users/<user>/Library/Python/2.7/bin/pygmentize /usr/local/bin/pygmentize
  3. Integrate the template with TeXShop
    1. Navigate to ~/Library/TeXShop/Engines
    2. Open XeLaTeX.engine file
    3. Add two additional parameters -shell-escape -interaction=nonstopmode

In case of commandline compilation, use xelatex:

xelatex  -file-line-error -synctex=1 -shell-escape -interaction=nonstopmode "File.tex"

Screenshots

Table Of Contents

Sections, subsections

Objective-C listing

Swift listing