Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. documentclass{article}
  2. usepackage{amsmath}
  3. begin{document}
  4. begin{align} % bad spacing at first row, but correctly placed second row
  5. 2 cosh t =& e^t \
  6. &+ e^{-t}
  7. end{align}
  8. begin{align} % good spacing at first row, but incorrectly placed second row
  9. 2cosh t &= e^t \
  10. &+ e^{-t}
  11. end{align}
  12. end{document}
  13.  
  14. documentclass{article}
  15. usepackage{amsmath}
  16. begin{document}
  17. begin{align}
  18. 2 cosh t &= e^t \
  19. &quad+ e^{-t}
  20. end{align}
  21. end{document}
  22.  
  23. documentclass{article}
  24. usepackage{amsmath}
  25. begin{document}
  26.  
  27. noindent
  28. The plus is flush with $e^t$ (I wouldn't recommend it):
  29. begin{align}
  30. 2cosh t ={}& e^t \
  31. & negmedspace+ e^{-t}
  32. end{align}
  33. The plus is moved right (better):
  34. begin{align}
  35. 2cosh t &= e^t \
  36. &qquad+ e^{-t}
  37. end{align}
  38. end{document}
  39.  
  40. documentclass{article}
  41. usepackage{amsmath}
  42. begin{document}
  43.  
  44. begin{equation}
  45. begin{split}
  46. 2cosh t &= e^t \
  47. &qquad + e^{-t}
  48. end{split}
  49. end{equation}
  50.  
  51. documentclass{article}
  52. usepackage{amsmath}
  53. setlengthtextwidth{3in} %% just for this example
  54. begin{document}
  55. begin{align}
  56. 2cosh t &= phantom{{}+{}} mathrm{e}^t \
  57. &phantom{{}={}} + mathrm{e}^{-t}
  58. end{align}
  59. end{document}
  60.  
  61. documentclass{article}
  62.  
  63. usepackage{amsmath}
  64.  
  65. begin{document}
  66.  
  67. begin{align}
  68. 2cosh t
  69. &= e^{t} \
  70. &hphantom{{}=} + e^{-t}
  71. end{align}
  72.  
  73. end{document}
  74.  
  75. 2 cosh t & ; mathord{=} ; e^t \
  76. & ; phantom{=} ; mathord{+} : e^{-t}
  77.  
  78. 2 cosh t & = e^{t} \
  79. & mathrel{phantom{=}} negmedspace {} + e^{-t}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement