Advertisement
fangfufu

Extracting Parkrun Barcode

Jan 2nd, 2018
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 0.80 KB | None | 0 0
  1. \documentclass{article}
  2. \usepackage[paperheight=300mm,paperwidth=200mm,margin=0mm]{geometry}
  3.  
  4. \usepackage{graphicx}
  5. \usepackage{parskip}
  6.  
  7. \newcommand{\ParkrunBarcodeOne}[1]{
  8.  {
  9.    \setlength{\fboxsep}{5pt}%
  10.     \setlength{\fboxrule}{1pt}%
  11.     \fbox{
  12.       \includegraphics[
  13.       clip,
  14.       % trim=left bottom right top
  15.       % Original
  16.       % trim=1.22cm 22.13cm 11.49cm 2.71cm,
  17.       % Smaller version
  18.       trim=2.50cm 22.13cm 12.8cm 4.20cm,
  19.       keepaspectratio
  20.     ]{#1}
  21.      }
  22.  }
  23. }
  24. \newcommand{\ParkrunBarcode}[1]{
  25.  \ParkrunBarcodeOne{#1}\ParkrunBarcodeOne{#1}\ParkrunBarcodeOne{#1}\\
  26. }
  27.  
  28. \begin{document}
  29.  
  30. \ParkrunBarcode{Beth}
  31. \ParkrunBarcode{Caolan}
  32. \ParkrunBarcode{Charlotte}
  33. \ParkrunBarcode{Henryk}
  34. \ParkrunBarcode{Nancy}
  35. \ParkrunBarcode{Tommy}
  36. \ParkrunBarcode{Fufu}
  37.  
  38. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement