Skip to content

Instantly share code, notes, and snippets.

@reusee
Created November 23, 2011 04:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reusee/1387888 to your computer and use it in GitHub Desktop.
Save reusee/1387888 to your computer and use it in GitHub Desktop.
documentclass for kindle 3
\ProvidesClass{kindle}
\LoadClass{book}
\usepackage[margin=0mm,top=1mm,bottom=1mm,papersize={90mm,120mm}]{geometry}
\usepackage{xltxtra}
\usepackage{fontspec}
\setmainfont{LiHei Pro}
\pagestyle{empty}
\sloppy
\XeTeXlinebreaklocale "zh"
\hfuzz=\maxdimen
\tolerance=100000
\hbadness=100000
\renewcommand{\baselinestretch}{1.15}
\raggedright
\usepackage{titlesec}
\titleformat{\part}{\huge\center}{}{0em}{}
\titleformat{\chapter}{\LARGE}{}{0em}{}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment