% -*- latex -*-
% LaTeX sourcecode file for making 105x74 stickers for chemicals.
% according to the GHS.
%
% Written by R.F. Smith <rsmith@xs4all.nl> in 2010 and placed in the 
% public domain
%
%%%%%%%%%%%% Contents of the sticker; change these to suit you %%%%%%%%%%%%%%
% \Chemname should contain the product identifier for the substance, use
% \huge, or Large if the name doesn't fit.
\newcommand{\Chemname}{\huge Aceton}
% \Signal contains the signal word
\newcommand{\Signal}{Gevaarlijk}
% Possibilities for Upper/Middle/Lower symbol:
% Symbol          English text            Dutch text
% in figures/
% explos.pdf      explosive               explosiegevaar
% flamme.pdf      flammable               brandgevaarlijk
% rondflam.pdf    oxidyzing               brandbevorderend
% bottle.pdf      gasses under pressure   houder onder druk
% acid.pdf        corrosive               bijtend
% skull.pdf       toxic                   giftig
% exclam.pdf      harmfull                schadelijk
% silhouete.pdf   mutagen/carcinogen      lange termijn gez. schade
% pollu.pdf       aquatic toxicity        mileugevaarlijk
%
% The next three lines select the three symbols that can go on the sticker.
% Leave those that you don't want to use undefined.
\newcommand{\UpperSymbol}{figures/flamme}
\newcommand{\MiddleSymbol}{figures/exclam}
%\newcommand{\LowerSymbol}{}
% Size of the text. Try \small, \footnotesize, \scriptsize or \tiny depending
% on the amount of text.
\newcommand{\txtsize}{\footnotesize}
% Next are the hazard and precautionary statements and additional
% information. You should be able to find them on the MSDS for the
% substance.
\newcommand{\Hazards}{%
Licht ontvlambare vloeistof en damp. %H225
Veroorzaakt ernstige oogirritatie. %H319
Kan slaperigheid of duizeligheid veroorzaken. %H336
}
\newcommand{\Precautions}{%
Verwijderd houden van warmte / vonken / open vuur / hete
  oppervlakken. -- Niet roken. %P210
Beschermende handschoenen / beschermende
  kleding / oogbescherming / gelaatsbescherming dragen. %P280
BIJ CONTACT MET DE OGEN: voorzichtig afspoelen met water
  gedurende een aantal minuten; contactlenzen verwijderen, indien mogelijk;
  blijven spoelen. %P305+P351+P338
Bij onwel voelen een ANTIGIFCENTRUM of een arts raadplegen. %P312
Op een goed geventileerde plaats bewaren. In goed gesloten
  verpakking bewaren. %P403+P233
Inhoud/verpakking afvoeren naar een erkend afvalbedrijf. %P501
}
\newcommand{\Additionals}{%
  Herhaalde blootstelling kan een droge of een gebarsten huid veroorzaken. %EUH066
}
% The name, address and phone number of the supplier should go here.
\newcommand{\Firm}{Brenntag Nederland BV -- Donker Duyvisweg 44, 3316 BM Dordrecht\\
  tel. 078-6544944}
\newcommand{\filedate}{\number\year-\number\month-\number\day}
%%%%%%%%%% Normally no changes are equired below here %%%%%%%%%%
\documentclass[a4paper]{article}
\usepackage{times}
\usepackage[dutch]{babel}
\usepackage[utf8]{inputenc}
\usepackage{ifthen}
\usepackage{graphicx}
\usepackage{labels}
% Settings for the label package; 8 105x74 stickers on an A4 page.
\LabelCols=2%
\LabelRows=4%
\LeftBorder=0mm%
\RightBorder=0mm%
\TopBorder=1mm%
\BottomBorder=0mm%
\numberoflabels=8%
%\LabelGridtrue
%%%%%%%%%%%%%%%%%%%%%% Start of the document %%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\genericlabel{%
  \raisebox{25mm}{\parbox[t][65mm][t]{90mm}{
    \textbf{\Chemname}\\
    \parbox[t][55mm][t]{15mm}{\mbox{}\\
      \ifthenelse{\isundefined{\UpperSymbol}}{}{%
        \resizebox{15mm}{!}{\includegraphics{\UpperSymbol}}}
      \ifthenelse{\isundefined{\MiddleSymbol}}{}{%
        \resizebox{15mm}{!}{\includegraphics{\MiddleSymbol}}}
      \ifthenelse{\isundefined{\LowerSymbol}}{}{%
        \resizebox{15mm}{!}{\includegraphics{\LowerSymbol}}}
    }\hspace{1pt}%
    \parbox[t][55mm][t]{74mm}{\txtsize
      \textbf{\normalsize\Signal}\\[2pt]
      %\textit{\footnotesize Gevaren}\\[1pt]
      {\Hazards}\\[2pt]
      %\textit{\footnotesize Voorzorgsmaatergelen}\\[1pt]
      {\Precautions}\\[2pt]
      %\textit{\footnotesize Aanvullende informatie}\\[1pt]
      {\Additionals}\\
      \vfill
      \rule[2pt]{70mm}{.5pt}\\
      \tiny\Firm\hfill\filedate
    }%
  }}%
}
%%%%%%%%%%%%%% End of the document contents %%%%%%%%%%%%%%%%%%%
\end{document}
