% forksand-bizcard-10x.tex % Create thumbnail images of PDF pages % % Fork Sand Business Cards % % Copyright (C) 2018, Fork Sand, Inc. % % Document template: % Copyright (C) 2018, Fork Sand, Inc. % Copyright (C) 2017, Jeff Moe % Copyright (C) 2011, 2012, 2013, 2014, 2015, 2016, 2017 Aleph Objects, Inc. % Copyright (C) 2009, 2010 Jeff Moe % % This document is licensed under the Creative Commons Attribution 4.0 % International Public License (CC BY-SA 4.0) by Fork Sand, Inc. % %\documentclass[twoside]{minimal} %\documentclass[10pt,final,english,showtrims]{memoir} \documentclass[letter, showtrims]{article} % Letter Size Paper % Works %\usepackage[paperwidth=21.59cm, paperheight=27.94cm,dvips=false,pdftex=false,vtex=false]{geometry} % Test %\usepackage[paperwidth=21.59cm, paperheight=27.94cm,dvips=false,pdftex=false,vtex=false,bindingoffset=0.2in,left=1in,right=1in,top=1in,bottom=1in]{geometry} % sample %\usepackage[letterpaper,bindingoffset=0.2in,left=1in,right=1in,top=1in,bottom=1in]{geometry} %\usepackage[pdflatex,center,cam,height=7in,width=5in]{crop} %\usepackage{crop} \usepackage[height=7in,width=5in,cam,letter,frame,axes,cross,pdftex,center]{crop} %\usepackage[letter,pdflatex,landscape,center]{crop} %\usepackage[final]{pdfpages} %\usepackage{pdfpages} \usepackage{pdflscape} \usepackage{thumbpdf} \usepackage{tikz} %XXX for grid %\usepackage[dvips]{graphicx} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{xcolor} %\usepackage{geometry} % Letter Size %\geometry{total={21.59cm,27.94cm},hmargin=0mm,vmargin=0mm} %\geometry{hmargin=1cm,vmargin=1cm} \usepackage{tikz} \pagestyle{empty} \renewcommand\familydefault{\sfdefault} %%% BUSINESS CARD SIZE \newlength{\cardw} \newlength{\cardh} \newlength{\cardcutw} \newlength{\cardcuth} %% US size: 3.5 in × 2 in \setlength{\cardw}{3.5in} \setlength{\cardh}{2in} \setlength{\cardcutw}{3.62in} \setlength{\cardcuth}{2.12in} \begin{document} \begin{tikzpicture} % card content \foreach \i in {0,1} \foreach \j in {0,1,2,3,4} { % \node at (\i*\cardw+0.5\cardw,\j*\cardh+0.5\cardh) {\includegraphics[width=1.00\cardw]{bizcard-jeff}}; % \node at (\i*\cardcutw+0.5\cardcutw,\j*\cardcuth+0.5\cardcuth) {\includegraphics[width=1.00\cardcutw]{bizcard-jeff}}; }; % grid \foreach \i in {0,1,2,3,4,5} \draw[very thin, gray,dashed] (0,\i*\cardh) -- (2*\cardw,\i*\cardh); \foreach \i in {0,1,2,3,4,5} \draw[very thin, red,dashed] (0,\i*\cardcuth) -- (2*\cardcutw,\i*\cardcuth); \foreach \j in {0,1,2} \draw[very thin, gray,dashed] (\j*\cardw,0) -- (\j*\cardw,5*\cardh); \foreach \j in {0,1,2} \draw[very thin, red,dashed] (\j*\cardcutw,0) -- (\j*\cardcutw,5*\cardcuth); % Shift %\foreach \i in {0,1,2,3,4,5} \draw[very thin, gray,dashed,xshift=-0.5cm, yshift=-0.5cm] (0,\i*\cardh) -- (2*\cardw,\i*\cardh); %\foreach \j in {0,1,2} \draw[very thin, gray,dashed,xshift=-0.5cm, yshift=-0.5cm] (\j*\cardw,0) -- (\j*\cardw,5*\cardh); \end{tikzpicture} \end{document} %% sort of works %\begin{tikzpicture} %% card content %\foreach \i in {0,1} \foreach \j in {0,1,2,3,4} { %% \node at (\i*\cardw+0.5\cardw,\j*\cardh+0.5\cardh) {\includegraphics[width=1.00\cardw]{bizcard-jeff}}; %% \node at (\i*\cardcutw+0.5\cardcutw,\j*\cardcuth+0.5\cardcuth) {\includegraphics[width=1.00\cardcutw]{bizcard-jeff}}; %}; %% grid %\foreach \i in {0,1,2,3,4,5} \draw[very thin, gray,dashed] (0,\i*\cardh) -- (2*\cardw,\i*\cardh); %\foreach \i in {0,1,2,3,4,5} \draw[very thin, red,dashed] (0,\i*\cardcuth) -- (2*\cardcutw,\i*\cardcuth); %\foreach \j in {0,1,2} \draw[very thin, gray,dashed] (\j*\cardw,0) -- (\j*\cardw,5*\cardh); %\foreach \j in {0,1,2} \draw[very thin, red,dashed] (\j*\cardcutw,0) -- (\j*\cardcutw,5*\cardcuth); %% Shift %%\foreach \i in {0,1,2,3,4,5} \draw[very thin, gray,dashed,xshift=-0.5cm, yshift=-0.5cm] (0,\i*\cardh) -- (2*\cardw,\i*\cardh); %%\foreach \j in {0,1,2} \draw[very thin, gray,dashed,xshift=-0.5cm, yshift=-0.5cm] (\j*\cardw,0) -- (\j*\cardw,5*\cardh); %\end{tikzpicture} %% ISO 7810 size: 85.60mm × 53.98mm %\setlength{\cardw}{85.60mm} %\setlength{\cardh}{53.98mm} %% European size: 85mm × 55mm %\setlength{\cardw}{85mm} %\setlength{\cardh}{55mm} % A4? Size Paper %\usepackage[paperwidth=22.86cm, paperheight=30.48cm,dvips=false,pdftex=false,vtex=false]{geometry} % A4 %\geometry{total={22.86cm,30.48cm},hmargin=10mm,vmargin=2mm} % %\usepackage[paperwidth=22.86cm, paperheight=30.48cm,dvips=false,pdftex=false,vtex=false]{geometry}