Guest User

Untitled

a guest
May 24th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.85 KB | None | 0 0
  1. documentclass{book}
  2.  
  3. makeatletter
  4. pdfpageattr{
  5. /MediaBox [0 0 612.00000 792.00000]
  6. /BleedBox [81.0 63.0 531.0 729.0]
  7. /CropBox [0 0 612.00000 792.00000]
  8. /TrimBox [90.0 72.0 522.0 720.0]
  9. }
  10.  
  11. makeatother
  12.  
  13. begin{document}
  14. Between 200BC and 100BC, during the Han Dynasty, the Chinese used matrix-type methods with the text textit{Nine chapters on the mathematical art}. There was further development, but it was not until 1683 when the idea of a determinant appeared in Japan when Seki wrote textit{Method of solving the dissimulated problems}. This used matrix methods in tables in the same way as the earlier work of the Chinese. Ten years later the determinant first appeared in Europe in the work of Leibniz. The word determinant was first introduced by Gauss in 1801 while discussing quadratic forms, but Cauchy in 1812 used determinant in the modern sense.
  15.  
  16. Between 200BC and 100BC, during the Han Dynasty, the Chinese used matrix-type methods with the text textit{Nine chapters on the mathematical art}. There was further development, but it was not until 1683 when the idea of a determinant appeared in Japan when Seki wrote textit{Method of solving the dissimulated problems}. This used matrix methods in tables in the same way as the earlier work of the Chinese. Ten years later the determinant first appeared in Europe in the work of Leibniz. The word determinant was first introduced by Gauss in 1801 while discussing quadratic forms, but Cauchy in 1812 used determinant in the modern sense.
  17. end{document}
  18.  
  19. usepackage{everypage}
  20.  
  21. special{pdf:put @pages <</MediaBox [0 0 612.00000 792.00000]>>}
  22. special{pdf:put @pages <</BleedBox [81.0 63.0 531.0 729.0]>>}
  23. special{pdf:put @pages <</CropBox [0 0 612.00000 792.00000]>>}
  24. special{pdf:put @pages <</TrimBox [90.0 72.0 522.0 720.0]>>}
  25.  
  26. AddEverypageHook{%
  27. special{pdf:put @thispage <</MediaBox [0 0 612.00000 792.00000]>>}%
  28. special{pdf:put @thispage <</BleedBox [81.0 63.0 531.0 729.0]>>}%
  29. special{pdf:put @thispage <</CropBox [0 0 612.00000 792.00000]>>}%
  30. special{pdf:put @thispage <</TrimBox [90.0 72.0 522.0 720.0]>>}%
  31. }
  32.  
  33. documentclass{book}
  34. usepackage{atbegshi}
  35.  
  36. % MediaBox can be fixed like so:
  37. AtBeginShipout{AtBeginShipoutAddToBox{
  38. special{pdf:put @thispage <<
  39. /MediaBox [0 0 612.00000 792.00000]
  40. >>}
  41. }}
  42.  
  43. % other boxes
  44. special{pdf:put @pages <<
  45. /BleedBox [81.0 63.0 531.0 729.0]
  46. /CropBox [0 0 612.00000 792.00000]
  47. /TrimBox [90.0 72.0 522.0 720.0]
  48. >>}
  49.  
  50.  
  51. begin{document}
  52. Between 200BC and 100BC, during the Han Dynasty, the Chinese used matrix-type methods with the text textit{Nine chapters on the mathematical art}. There was further development, but it was not until 1683 when the idea of a determinant appeared in Japan when Seki wrote textit{Method of solving the dissimulated problems}. This used matrix methods in tables in the same way as the earlier work of the Chinese. Ten years later the determinant first appeared in Europe in the work of Leibniz. The word determinant was first introduced by Gauss in 1801 while discussing quadratic forms, but Cauchy in 1812 used determinant in the modern sense.
  53.  
  54. Between 200BC and 100BC, during the Han Dynasty, the Chinese used matrix-type methods with the text textit{Nine chapters on the mathematical art}. There was further development, but it was not until 1683 when the idea of a determinant appeared in Japan when Seki wrote textit{Method of solving the dissimulated problems}. This used matrix methods in tables in the same way as the earlier work of the Chinese. Ten years later the determinant first appeared in Europe in the work of Leibniz. The word determinant was first introduced by Gauss in 1801 while discussing quadratic forms, but Cauchy in 1812 used determinant in the modern sense.
  55. end{document}
  56.  
  57. special{pdf:put @pages <<
  58. /Foo /Bar % works
  59. /TrimBox [1 2 3 4] % works
  60. /MediaBox [0 0 612.00000 792.00000] % no effect
  61. >>}
Add Comment
Please, Sign In to add comment