SHARE
TWEET

Untitled

a guest Apr 21st, 2017 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. documentclass[12pt]{exam}
  2. setlengthlinefillthickness{0.6pt}
  3. setlengthlinefillheight{.35in}
  4. begin{document}
  5. fillwithlines{1.25 in}
  6. end{document}
  7.    
  8. defnumlines#1{
  9.     ifdimdimexpr#1/linefillheight*linefillheightrelax<#1relax
  10.         thenumexprdimexpr#1relax/linefillheightrelax
  11.     else
  12.         thenumexprdimexpr#1relax/linefillheight-1relax
  13.     fi
  14. }
  15.    
  16. documentclass{exam}
  17.  
  18. begin{document}
  19. defnumlines#1{
  20.     ifdimdimexpr#1/linefillheight*linefillheightrelax<#1relax
  21.         thenumexprdimexpr#1relax/linefillheightrelax
  22.     else
  23.         thenumexprdimexpr#1relax/linefillheight-1relax
  24.     fi
  25. }
  26.  
  27.  
  28. numlines{0.6in}:
  29. fillwithlines{0.6in}
  30.  
  31. numlines{1.2in}:
  32. fillwithlines{1.2in}
  33.  
  34. numlines{1.6in}:
  35. fillwithlines{1.6in}
  36.  
  37. numlines{2in}:
  38. fillwithlines{2in}
  39. end{document}
RAW Paste Data
Challenge yourself this year...
Learn something new in 2017
Top