Guest User

Untitled

a guest
Dec 10th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. documentclass[10pt,article]{amsart}
  2.  
  3. begin{document}
  4.  
  5. tableofcontents
  6.  
  7. section{Section A}
  8. subsection{Subsection (16px Indent)}
  9. subsection{Subsection (16px Indent)}
  10. section{Section B}
  11. subsection{Subsection (16px Indent)}
  12. subsection{Subsection (16px Indent)}
  13.  
  14. end{document}
  15.  
  16. documentclass[10pt,article]{amsart}
  17.  
  18. makeatletter
  19. def@tocline#1#2#3#4#5#6#7{relax
  20. ifnum #1>c@tocdepth % then omit
  21. else
  22. par addpenalty@secpenaltyaddvspace{#2}%
  23. begingroup hyphenpenalty@M
  24. @ifempty{#4}{%
  25. @tempdimacsname r@tocindentnumber#1endcsnamerelax
  26. }{%
  27. @tempdima#4relax
  28. }%
  29. parindentz@ leftskip#3relax advanceleftskip@tempdimarelax
  30. rightskip@pnumwidth plus4em parfillskip-@pnumwidth
  31. #5leavevmodehskip-@tempdima
  32. ifcase #1
  33. oror hskip 1em or hskip 2em else hskip 3em fi%
  34. #6nobreakrelax
  35. hfillhbox to@pnumwidth{@tocpagenum{#7}}par% <---- dotfill -> hfill
  36. nobreak
  37. endgroup
  38. fi}
  39. makeatother
  40.  
  41. begin{document}
  42.  
  43. tableofcontents
  44.  
  45. section{Section A}
  46. subsection{Subsection (16px Indent)}
  47. subsection{Subsection (16px Indent)}
  48. section{Section B}
  49. subsection{Subsection (16px Indent)}
  50. subsection{Subsection (16px Indent)}
  51.  
  52. end{document}
  53.  
  54. documentclass{article}
  55. usepackage{amssymb,amsmath,amsthm}
  56. begin{document}
  57.  
  58. tableofcontents
  59.  
  60. section{Section A}
  61. subsection{Subsection (16px Indent)}
  62. subsection{Subsection (16px Indent)}
  63. section{Section B}
  64. subsection{Subsection (16px Indent)}
  65. subsection{Subsection (16px Indent)}
  66.  
  67. end{document}
Add Comment
Please, Sign In to add comment