Skip to content

Instantly share code, notes, and snippets.

@tvwerkhoven
Created October 29, 2010 10:57
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 tvwerkhoven/653329 to your computer and use it in GitHub Desktop.
Save tvwerkhoven/653329 to your computer and use it in GitHub Desktop.
Adaption of 'Beauty of LaTeX' by Dario Taraborelli (2008)
%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
% Dario Taraborelli (2008)
% The Beauty of LaTeX
% URL: http://nitens.org/taraborelli/latex
% Some rights reserved: CC-BY-SA
\documentclass[11pt,a4paper]{article}
\usepackage[dvipdfm, colorlinks, breaklinks, pdftitle={The Beauty of LaTeX},pdfauthor={Taraborelli, Dario}]{hyperref}
\usepackage[usenames]{color}
\definecolor{Gray}{rgb}{.5,.5,.5}
\usepackage{xunicode}
\usepackage{xltxtra}
\defaultfontfeatures{Mapping=tex-text}
\newcommand{\red}[1]{\color{red} #1}
\newcommand{\old}[1]{\fontspec[Alternate=1,Ligatures={Common, Rare}, Swashes={LineInitial, LineFinal}]{Hoefler Text}\fontsize{24pt}{30pt}\selectfont #1}%
\newcommand{\smallprint}[1]{\fontspec{Adobe Garamond Pro}\fontsize{10pt}{13pt}\color{Gray}\selectfont #1}%
\begin{document}
\thispagestyle{empty}
\vspace*{1in}
\old\begin{quote}
``\emph{N}{\textsc eque} porro quisquam est qui do{\red lorem ipsum} quia {\red dolor sit amet, consectetur, adipisci velit}.''
\end{quote}
\vfill{}
\raggedleft\smallprint{from sections 1.10.32 of Cicero's \emph{De finibus bonorum et malorum}, \url{http://en.wikipedia.org/wiki/Lorem_ipsum}}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment