Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. documentclass[varwidth]{standalone}
  2. usepackage{expl3}
  3. begin{document}
  4. ExplSyntaxOn
  5. % following is 60.0ptmm (which is 300/5,
  6. % not to mention silly units; ridiculous)
  7. dim_eval:n{300pt/5mm}\
  8.  
  9. % following is 14.22636pt (I guess/hope it's correct
  10. % conversion of 5mm to pt units)
  11. dim_eval:n{5mm}\
  12.  
  13. % following is 21.42857pt (which is 300/14,
  14. % not 300/14.22636)
  15. % followed by .22636pt (decimal of 14.22636pt;
  16. % which is also ridiculous)
  17. dim_eval:n{300pt/14.22636pt}
  18. ExplSyntaxOff
  19. end{document}
  20.  
  21. dim_eval:n{300pt/5mm}
  22.  
  23. dim_eval:n{300pt/5}mm
  24.  
  25. dim_eval:n{300pt/14.22636pt}
  26.  
  27. dim_eval:n{300pt/14}.22636pt
  28.  
  29. documentclass[varwidth]{standalone}
  30. usepackage{expl3}
  31. begin{document}
  32. ExplSyntaxOn
  33.  
  34. fp_eval:n{(300pt)/(5mm)}
  35.  
  36. ExplSyntaxOff
  37. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement