Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1. documentclass[12pt]{article}
  2.  
  3. usepackage[T1]{fontenc}
  4. usepackage[utf8]{inputenc}
  5. usepackage[
  6. a6paper,
  7. showframe,
  8. ]{geometry}
  9.  
  10. newenvironment{myquote}[1]{%
  11. par
  12. begin{minipage}{dimexprtextwidth-2parindentrelax}%
  13. defmyquoteauthorname{#1}%
  14. }{%
  15. parvspace{1ex}
  16. noindent
  17. hspace*{0.25textwidth}%
  18. rule{0.5textwidth}{.4pt}
  19. parvspace{1ex}
  20. centering
  21. textsc{myquoteauthorname}par
  22. end{minipage}
  23. par}
  24.  
  25. begin{document}
  26.  
  27. begin{myquote}{Robert Kleinhenz}
  28. When asked what it was like to set about proving something, the mathematician
  29. likened proving a theorem to seeing the peak of a mountain and trying to climb
  30. to the top. One establishes a base camp and begins scaling the mountain's sheer
  31. face, encountering obstacles at every turn, often retracing one's steps and
  32. struggling every foot of the journey. Finally when the top is reached, one
  33. stands examining the peak, taking in the view of the surrounding countryside
  34. and then noting the automobile road up the other side!
  35. end{myquote}
  36.  
  37. end{document}
  38.  
  39. documentclass[12pt, twocolumn]{article}
  40.  
  41. usepackage[T1]{fontenc}
  42. usepackage[utf8]{inputenc}
  43. usepackage[
  44. a4paper,
  45. showframe,
  46. ]{geometry}
  47.  
  48. newenvironment{myquotecolumn}[1]{%
  49. par
  50. begin{minipage}{dimexprcolumnwidth -2parindentrelax}%
  51. defmyquoteauthorname{#1}%
  52. }{%
  53. parvspace{1ex}
  54. noindent
  55. hspace*{0.25columnwidth }%
  56. rule{0.5columnwidth }{.4pt}
  57. parvspace{1ex}
  58. centering
  59. textsc{myquoteauthorname}par
  60. end{minipage}
  61. par}
  62.  
  63. begin{document}
  64.  
  65. begin{myquotecolumn}{Robert Kleinhenz}
  66. When asked what it was like to set about proving something, the mathematician
  67. likened proving a theorem to seeing the peak of a mountain and trying to climb
  68. to the top. One establishes a base camp and begins scaling the mountain's sheer
  69. face, encountering obstacles at every turn, often retracing one's steps and
  70. struggling every foot of the journey. Finally when the top is reached, one
  71. stands examining the peak, taking in the view of the surrounding countryside
  72. and then noting the automobile road up the other side!
  73. end{myquotecolumn}
  74.  
  75. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement