Skip to content

Instantly share code, notes, and snippets.

@borodiychuk
Last active August 29, 2015 14:02
Show Gist options
  • Save borodiychuk/2254e2a4b6849a878e62 to your computer and use it in GitHub Desktop.
Save borodiychuk/2254e2a4b6849a878e62 to your computer and use it in GitHub Desktop.
The markup of window area and folding lines at A4 paper for envelopes of DL format.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% %%
%% This file defines a DL-envelope markup %%
%% %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Corners for the client's details
%
\begin{textblock}{93}(14,47) % minus 1 mm
\vspace*{38mm} % minus 1 mm
\setlength{\unitlength}{1mm}
\begin{picture}(0,0)
\linethickness{0.075mm}
% Left bottom
\put(0,0){\line(0,1){5}}
\put(0,0){\line(1,0){5}}
% Left top
\put(0,39){\line(0,-1){5}}
\put(0,39){\line(1,0){5}}
% Right bottom
\put(93,0){\line(0,1){5}}
\put(93,0){\line(-1,0){5}}
%Right top
\put(93,39){\line(0,-1){5}}
\put(93,39){\line(-1,0){5}}
\end{picture}
\end{textblock}
%
% Fold lines
%
\begin{textblock}{210}(0,98) % minus 1 mm
\setlength{\unitlength}{1mm}
\begin{picture}(0,0)
\linethickness{0.075mm}
% Left
\put(0,0){\line(1,0){5}}
% Right bottom
\put(210,0){\line(-1,0){5}}
\end{picture}
\end{textblock}
\begin{textblock}{210}(0,197) % minus 1 mm
\setlength{\unitlength}{1mm}
\begin{picture}(0,0)
\linethickness{0.075mm}
% Left
\put(0,0){\line(1,0){5}}
% Right bottom
\put(210,0){\line(-1,0){5}}
\end{picture}
\end{textblock}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% %%
%% This file defines a DL-envelope markup %%
%% %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Corners for the client's details
%
\begin{textblock}{91}(103,41.5) % minus 1 mm
\vspace*{24mm} % minus 1 mm
\setlength{\unitlength}{1mm}
\begin{picture}(0,0)
\linethickness{0.075mm}
% Left bottom
\put(0,0){\line(0,1){5}}
\put(0,0){\line(1,0){5}}
% Left top
\put(0,25){\line(0,-1){5}}
\put(0,25){\line(1,0){5}}
% Right bottom
\put(90,0){\line(0,1){5}}
\put(90,0){\line(-1,0){5}}
%Right top
\put(90,25){\line(0,-1){5}}
\put(90,25){\line(-1,0){5}}
\end{picture}
\end{textblock}
%
% Fold lines
%
\begin{textblock}{210}(0,98) % minus 1 mm
\setlength{\unitlength}{1mm}
\begin{picture}(0,0)
\linethickness{0.075mm}
% Left
\put(0,0){\line(1,0){5}}
% Right bottom
\put(210,0){\line(-1,0){5}}
\end{picture}
\end{textblock}
\begin{textblock}{210}(0,197) % minus 1 mm
\setlength{\unitlength}{1mm}
\begin{picture}(0,0)
\linethickness{0.075mm}
% Left
\put(0,0){\line(1,0){5}}
% Right bottom
\put(210,0){\line(-1,0){5}}
\end{picture}
\end{textblock}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment