SHARE
TWEET

Untitled

a guest Jun 25th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. documentclass[11pt]{amsart}
  2. usepackage[paper=a4paper,left=35mm,right=25mm,top=40mm,bottom=40mm]{geometry}
  3. begin{document}
  4. tableofcontents
  5. %
  6. newpage
  7. section{First Section}
  8.  
  9. subsection{First Subsection}
  10.  
  11. subsection{Second Subsection}
  12.  
  13. section{Second Section}
  14.  
  15. end{document}
  16.      
  17. documentclass[11pt]{amsart}
  18. usepackage[paper=a4paper,left=35mm,right=25mm,top=40mm,bottom=40mm]{geometry}
  19. begin{document}
  20.  
  21. tableofcontents
  22. %
  23. newpage
  24. part{First Section}
  25.  
  26. section{First Subsection}
  27.  
  28. section{Second Subsection}
  29.  
  30. part{Second Section}
  31.  
  32. end{document}
  33.      
  34. documentclass[11pt]{amsart}
  35. usepackage[paper=a4paper,left=35mm,right=25mm,top=40mm,bottom=40mm]{geometry}
  36.  
  37. makeatletter
  38. defl@section{@tocline{1}{12pt plus2pt}{0pt}{}{bfseries}}% <- added
  39.  
  40. def@tocline#1#2#3#4#5#6#7{relax
  41.     ifnum #1>-1% <- added
  42.   ifnum #1>c@tocdepth % then omit
  43.   else
  44.     par addpenalty@secpenaltyaddvspace{#2}%
  45.     begingroup hyphenpenalty@M
  46.     @ifempty{#4}{%
  47.       @tempdimacsname r@tocindentnumber#1endcsnamerelax
  48.     }{%
  49.       @tempdima#4relax
  50.     }%
  51.     parindentz@ leftskip#3relax advanceleftskip@tempdimarelax
  52.     rightskip@pnumwidth plus4em parfillskip-@pnumwidth
  53.     #5leavevmodehskip-@tempdima #6nobreakrelax
  54.     hfilhbox to@pnumwidth{@tocpagenum{#7}}par
  55.     nobreak
  56.     endgroup
  57.   fi% <- added
  58. fi}
  59.  
  60. makeatother
  61.  
  62. begin{document}
  63.  
  64. tableofcontents
  65. %
  66. newpage
  67. part{First Section}
  68.  
  69. section{First Subsection}
  70.  
  71. section{Second Subsection}
  72.  
  73. part{Second Section}
  74.  
  75. end{document}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top