Skip to content

Instantly share code, notes, and snippets.

@rinx
Last active August 29, 2015 14:08
Show Gist options
  • Save rinx/0b01cb21c805ea083e44 to your computer and use it in GitHub Desktop.
Save rinx/0b01cb21c805ea083e44 to your computer and use it in GitHub Desktop.
Reproduction of a showcase of TeX
\documentclass{ltjarticle}
% Reproduction of
% http://blog.revolutionanalytics.com/2014/01/the-fourier-transform-explained-in-one-sentence.html
%
\usepackage[paperwidth=10cm, paperheight=5cm]{geometry}
\usepackage[svgnames]{xcolor}
\usepackage{fontspec}
\usepackage{tikz}
\setmainfont{Helvetica Neue Light Italic}
\begin{document}
\begin{tikzpicture}[remember picture,overlay]
\shade[outer color=gray!5,inner color=white] (current page.south west) rectangle (current page.north east);
\end{tikzpicture}
\[
\textcolor{DarkOrchid}{X_{\textcolor{LimeGreen}{k}}} =
\textcolor{Fuchsia}{\frac{1}{N} \sum_{n=0}^{N-1}}
\textcolor{RoyalBlue}{x_n} \textcolor{Red}{e^{i
\textcolor{Orange}{2\pi} \textcolor{LimeGreen}{k} \textcolor{Fuchsia}{\frac{n}{N}}}}
\]
\small
To find \textcolor{DarkOrchid}{the energy at}
\textcolor{LimeGreen}{a particular frequency},
\textcolor{Red}{spin} \textcolor{RoyalBlue}{your signal}
\textcolor{Orange}{around a circle} \textcolor{LimeGreen}{at that frequency},
and \textcolor{Fuchsia}{average a bunch of points along that path}.
\thispagestyle{empty}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment