Advertisement
Guest User

Untitled

a guest
Sep 29th, 2017
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. \documentclass{lms}
  2. \usepackage{etoolbox}
  3. \makeatletter
  4. \AtEndPreamble{%
  5. \let\proof\relax
  6. \let\endproof\relax
  7. \let\old@thm\@thm
  8. \let\old@xthm\@xthm
  9. \let\old@ythm\@ythm
  10. \let\old@begintheorem\@begintheorem
  11. \usepackage{amsthm}%
  12. \let\@thm\old@thm
  13. \let\@xthm\old@xthm
  14. \let\@ythm\old@ythm
  15. \let\@begintheorem\old@begintheorem
  16. }
  17. \makeatother
  18. \newtheorem{theorem}{Theorem}[section]
  19. \newnumbered{definition}[theorem]{Definition}
  20. \usepackage{thmtools}
  21. \begin{document}
  22. \begin{theorem}[({cite some people})]
  23. This doesn't display as a theorem.
  24. \end{theorem}
  25. \begin{theorem}
  26. This theorem displays fine. Why?
  27. \end{theorem}
  28. \begin{theorem}
  29. If $X$, then $Y$.
  30. \end{theorem}
  31. \begin{theorem}
  32. Now
  33. \end{theorem}
  34. \begin{theorem}
  35. a
  36. \end{theorem}
  37. \begin{theorem}
  38. few
  39. \end{theorem}
  40. \begin{theorem}
  41. more...
  42. \end{theorem}
  43. \begin{definition}
  44. too deeply nested?!
  45. \end{definition}
  46. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement