Add LaTeX business card layouts

master
Jeff Moe 7 years ago
parent dda36c313c
commit a77ea4f21d

Binary file not shown.

After

Width:  |  Height:  |  Size: 287 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 320 KiB

@ -0,0 +1,70 @@
% forksand-bizcard-10x.tex
% Create thumbnail images of PDF pages
%
% Fork Sand Letterhead for Notepads
%
% 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]{memoir}
% A4 Size Paper
%\usepackage[paperwidth=22.86cm, paperheight=30.48cm,dvips=false,pdftex=false,vtex=false]{geometry}
% Letter Size Paper
\usepackage[paperwidth=21.59cm, paperheight=27.94cm,dvips=false,pdftex=false,vtex=false]{geometry}
\usepackage[final]{pdfpages}
\usepackage{pdflscape}
\usepackage{thumbpdf}
\usepackage{tikz}
%%% PAGE, STOCK, AND MARGIN SIZE %%%
% US Letter
% 8.50 x 11.00" 21.59 x 27.94cm
\setstocksize{27.94cm}{21.59cm} % { height }{ width }
% A4
% 8.27 x 11.70" 21.00 x 29.70cm
%\setstocksize{29.70cm}{21.00cm} % { height }{ width }
\settrimmedsize{\stockheight}{\stockwidth}{*}
%\settypeblocksize{ height }{ width }{ ratio }
% US Letter
\settypeblocksize{23.0cm}{*}{*}
% A4
%\settypeblocksize{24.0cm}{*}{*}
%\setlrmarginsandblock{ spine }{ edge }{ ratio }
% make the spine have more space than outer edge
% US Letter
\setlrmarginsandblock{*}{2.0cm}{1.4}
% A4
%\setlrmarginsandblock{*}{2.0cm}{1.4}
% \setulmargins{ upper }{ lower }{ ratio }
\setulmargins{2.0cm}{*}{*}
% \setheadfoot{ headheight }{ footskip }
\setheadfoot{12pt}{2cm}
\checkandfixthelayout[fixed]
%%% END PAGE, STOCK, AND MARGIN SIZE %%%
\begin{document}
%\includepdf[nup=2x5,pages={1,1,1,1,1,1,1,1,1,1},landscape=false,noautoscale=false,fitpaper=false,offset=0mm 0mm]{bizcard-jeff.pdf}
% Works
%\includepdf[nup=2x5,pages={1,1,1,1,1,1,1,1,1,1},landscape=false,noautoscale=true,fitpaper=false,offset=0mm 0mm]{bizcard-jeff.pdf}
% With lines, etc.
\includepdf[nup=2x5,pages={1,1,1,1,1,1,1,1,1,1},landscape=false,noautoscale=false,fitpaper=false,offset=0mm 0mm,delta=3mm 3mm]{bizcard-jeff.pdf}
\end{document}

@ -0,0 +1,115 @@
% 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}

Binary file not shown.

@ -0,0 +1,46 @@
\documentclass[10pt]{article}
\usepackage[dvips]{graphicx}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{xcolor}
\usepackage{tikz}
\usepackage{geometry}
% Default
%\geometry{total={210mm,297mm},hmargin=10mm,vmargin=2mm}
% Letter Size
\geometry{total={21.59cm,27.94cm},hmargin=10mm,vmargin=2mm}
% A4
%\geometry{total={,22.86cm30.48cm},hmargin=10mm,vmargin=2mm}
% %\usepackage[paperwidth=22.86cm, paperheight=30.48cm,dvips=false,pdftex=false,vtex=false]{geometry}
\pagestyle{empty}
\renewcommand\familydefault{\sfdefault}
%%% BUSINESS CARD SIZE
\newlength{\cardw}
\newlength{\cardh}
%% 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}
%% US size: 3.5 in × 2 in
\setlength{\cardw}{3.5in}
\setlength{\cardh}{2in}
\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}};
};
% grid
\foreach \i in {0,1,2,3,4,5} \draw[very thin, gray,dashed] (0,\i*\cardh) -- (2*\cardw,\i*\cardh);
\foreach \j in {0,1,2} \draw[very thin, gray,dashed] (\j*\cardw,0) -- (\j*\cardw,5*\cardh);
\end{tikzpicture}
\end{document}
Loading…
Cancel
Save