-
Notifications
You must be signed in to change notification settings - Fork 0
/
ID_Photo_Template.tex
50 lines (38 loc) · 1.67 KB
/
ID_Photo_Template.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
\documentclass[12pt]{article}
\usepackage[a4paper, margin=1cm]{geometry}
\usepackage{graphicx}
\usepackage{tikz}
\usetikzlibrary{calc}
\pagestyle{empty}
\begin{document}
\newlength{\photowidth}
\setlength{\photowidth}{35mm} % Width of the photo
\newlength{\photoheight}
\setlength{\photoheight}{45mm} % Height of the photo
\newlength{\photosep}
\setlength{\photosep}{5mm} % Separation between photos
\newcommand{\idphoto}[1]{
\begin{tikzpicture}
\node[inner sep=0pt] (photo) at (0,0) {\includegraphics[width=\photowidth,height=\photoheight]{#1}};
\draw[black, very thin] ($(photo.south west)+(-0.05,-0.05)$) rectangle ($(photo.north east)+(0.05,0.05)$);
\draw[blue, thick, dashed] ($(photo.south west)+(-0.0,-0.0)$) -- ++(-0.5,0);
\draw[blue, thick, dashed] ($(photo.south west)+(-0.0,-0.0)$) -- ++(-0.0,-0.5);
\draw[blue, thick, dashed] ($(photo.south east)+(0.0,-0.0)$) -- ++(0.5,0);
\draw[blue, thick, dashed] ($(photo.south east)+(-0.0,-0.5)$) -- ++(0.0,0.5);
\draw[blue, thick, dashed] ($(photo.north west)+(-0.0,0.0)$) -- ++(-0.5,0);
\draw[blue, thick, dashed] ($(photo.north west)+(0.0,0.0)$) -- ++(-0.0,0.5);
\draw[blue, thick, dashed] ($(photo.north east)+(0.0,0.0)$) -- ++(0.5,0);
\draw[blue, thick, dashed] ($(photo.north east)+(0.0,0.0)$) -- ++(0.0,0.5);
\end{tikzpicture}
}
\begin{center}
% Replace "example-image-a" with the actual image filename
\idphoto{Photos/Muster1.png}\hspace{\photosep}
\idphoto{Photos/Muster1.png}\hspace{\photosep}
\idphoto{Photos/Muster1.png}
\vspace{\photosep}
\idphoto{Photos/Muster2.jpg}\hspace{\photosep}
\idphoto{Photos/Muster2.jpg}\hspace{\photosep}
\idphoto{Photos/Muster2.jpg}
\end{center}
\end{document}