Want more features on Pastebin? Sign Up, it's FREE!
Guest

custom sections

By: a guest on Jan 21st, 2013  |  syntax: Latex  |  size: 0.41 KB  |  views: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. \makeatletter
  2.  
  3. \def\sect{\@dblarg\@sect}
  4. \def\@sect[#1]#2{%
  5.   \par%
  6.   \nolinenumbers%
  7.   \section[#1]{#2}%
  8.   \linenumbers%
  9. }
  10.  
  11. \def\subsect{\@dblarg\@subsect}
  12. \def\@subsect[#1]#2{%
  13.   \par%
  14.   \nolinenumbers%
  15.   \subsection[#1]{#2}%
  16.   \linenumbers%
  17. }
  18.  
  19. \def\subsubsect{\@dblarg\@subsubsect}
  20. \def\@subsubsect[#1]#2{%
  21.   \par%
  22.   \nolinenumbers%
  23.   \subsubsection[#1]{#2}%
  24.   \linenumbers%
  25. }
  26.  
  27. \makeatother
clone this paste RAW Paste Data