AppleDocumentationStyleLate.../README.md

1.5 KiB

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
  2. Check if there are any updates for TeXShop and TeX Live Utility applications
  3. Launch TeX Live Utility and update all packages
  4. Integrate the template with TeXShop
  5. Navigate to ~/Library/TeXShop/Engines
  6. Open XeLaTeX.engine file
  7. Add two additional parameters -shell-escape -interaction=nonstopmode
  8. Install Pygments
  9. sudo easy_install Pygments

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