diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2012-07-08 21:30:21 +0200 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2012-07-08 21:30:21 +0200 |
commit | cfec3f2b9aff71c580f7ba61244e31c85ef18431 (patch) | |
tree | 70541fc432e1b66fd4bd6b516781b21296cdde82 /chessstorm.tex |
Initial commit - very early work in progress.
Diffstat (limited to 'chessstorm.tex')
-rw-r--r-- | chessstorm.tex | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/chessstorm.tex b/chessstorm.tex new file mode 100644 index 0000000..0631a68 --- /dev/null +++ b/chessstorm.tex @@ -0,0 +1,54 @@ +\documentclass[parskip]{scrartcl} +\usepackage[T1]{fontenc} +\usepackage{textcomp} +\usepackage[paperwidth=2.74in,paperheight=3.74in,top=0.08in,left=0.08in,bottom=0in,right=0in]{geometry} +\usepackage{tikz} +\usepackage{graphicx} +\usepackage{lastpage} +\usepackage[default]{lato} + +\include{icons} + +\newcommand{\card}[4]{ +\begin{tikzpicture}[x=1in,y=1in] +% Card title + \node (title) [below right, text width=2.10in, text centered, rounded corners=0.15in, fill=yellow!50, draw=yellow, line width=0.02in, font=\Huge] at (0.14, 3.36) {#1}; +% Card rule + \node [below right, text width=2.20in, text badly centered, font=\small] at (0.10, 2.85) {#2}; +% Card note + \node [below right, text width=2.20in, text badly centered, font=\scriptsize] at (0.10, 0.85) { \tikz{\fill (0.00, 0.00)--(2.20, 0.00);} #3}; +% Card number + \node [above right, text width=0.4in, rounded corners=0.05in, fill=red!20, draw=red!50, line width=0.01in, font=\tiny] at (0.14, 0.14) {\hfill\thepage\ / \pageref{LastPage}}; +% Card icons + \node [above left] at (2.40, 0.10) {#4}; + +% Bottom left cutting guide + \draw[color=magenta, opacity=1] (-0.04, 0.00)--( 0.04, 0.00); + \draw[color=cyan, opacity=1] ( 0.00,-0.04)--( 0.00, 0.04); +% Top left cutting guide + \draw[color=magenta, opacity=1] (-0.04, 3.50)--( 0.04, 3.50); + \draw[color=cyan, opacity=1] ( 0.00, 3.46)--( 0.00, 3.54); +% Bottom right cutting guide + \draw[color=magenta, opacity=1] ( 2.46, 0.00)--( 2.54, 0.00); + \draw[color=cyan, opacity=1] ( 2.50,-0.04)--( 2.50, 0.04); +% Top right cutting guide + \draw[color=magenta, opacity=1] ( 2.46, 3.50)--( 2.54, 3.50); + \draw[color=cyan, opacity=1] ( 2.50, 3.46)--( 2.50, 3.54); + +% The main card square + \draw[color=black, opacity=1, rounded corners=0.15in] (0.00, 0.00) rectangle (2.50, 3.50); +% Safe zone + \draw[color=black, opacity=0, rounded corners=0.15in] (0.10, 0.10) rectangle (2.40, 3.40); + +% Watermark + \node [rotate=60, scale=2.8, text opacity=0.05] at (current page.center) { Work in progress }; +\end{tikzpicture} + +\newpage +} + +\begin{document} +\include{cards} +\end{document} + + |