Skip to content

Instantly share code, notes, and snippets.

@vermiculus
Last active August 29, 2015 14:16
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 vermiculus/39233f755386ab9e914c to your computer and use it in GitHub Desktop.
Save vermiculus/39233f755386ab9e914c to your computer and use it in GitHub Desktop.
\usepackage[paperheight=250pt,paperwidth=220pt]{geometry}
\usepackage{graphicx}
\usepackage{xcolor}
\pagecolor[HTML]{CFE3F7}
\pagenumbering{gobble}
\newcommand\Reddit{{\ttfamily
\color{gray}%
www.reddit.com%
\SubReddit}}
\newcommand\SubReddit{{\ttfamily
\color{blue!75!black}%
\subreddit}}
\newcommand\FullWidth[1]{%
\resizebox{\textwidth}{!}{#1}}
% arara: xelatex
\documentclass{article}
\input{common}
\def\subreddit{/r/emacs}
\begin{document}
\centering
\null\vfill
\FullWidth{\sffamily Want an opinion?}
\vfill\vfill
\FullWidth{%
\fontspec{Source Code Pro}%
\raisebox{-1ex}{%
\includegraphics[height=4ex]{reddit-alien}}~Emacs}
\bigskip
\FullWidth{%
\Reddit
}
\vfill
\end{document}
LOGOS = emacs-sx tex-sx
all:
test -e reddit-alien.png || wget --quiet 'https://www.redditstatic.com/about/assets/reddit-alien.png'
@$(foreach f,$(LOGOS),printf 'Processing %s\n' $(f); arara $(f); printf 'Converting... '; convert -density 1200 $(f).pdf -resize 440x500 $(f).png; printf 'done.\n';)
clean:
rm *.log *.pdf *.aux *.png
% arara: pdflatex
\documentclass{article}
\input{common}
\def\subreddit{/r/LaTeX}
\begin{document}
\centering
\null\vfill
\FullWidth{\sffamily Want an opinion?}
\vfill\vfill
\FullWidth{%
\raisebox{-1ex}{%
\includegraphics[height=4ex]{reddit-alien}}~\LaTeX}
\bigskip
\FullWidth{%
\Reddit
}
\vfill
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment