IEEEtitlepage.sty 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. \ProvidesPackage{IEEEtitlepage}[2016/09/26] % Defines the package
  2. \RequirePackage[compact,sf,bf]{titlesec} % Ensures that titles are formatted properly, being compact, sans and bold
  3. \RequirePackage[nottoc,notlot,notlof]{tocbibind} % Put the bibliography in the Table of Contents
  4. \RequirePackage{tocloft} % Use an indented table of contents
  5. % Define a summary command and provide a default
  6. \newcommand*{\summary}[1]{\gdef\@summary{#1}%
  7. }
  8. \newcommand*{\@summary}{Project Summary.}
  9. % Define a version command and provide a default
  10. \newcommand*{\version}[1]{\gdef\@version{#1}%
  11. }
  12. \newcommand*{\@version}{1.0}
  13. % Define a subtitle command and provide a default (nothing)
  14. \newcommand*{\subtitle}[1]{\gdef\@subtitle{#1}%
  15. }
  16. \newcommand*{\@subtitle}{}
  17. % Define a company command and provide a default of nothing
  18. \newcommand*{\company}[1]{\gdef\@company{#1}%
  19. }
  20. \newcommand*{\@company}{}
  21. % Redefine the maketitle command
  22. \renewcommand*{\maketitle}{%
  23. \begin{titlepage}
  24. % Start with an hrule
  25. \hrule
  26. % Center much of the title page
  27. \begin{centering}
  28. % Include the name of the company
  29. \vspace{2px}
  30. \@company
  31. % Vertically Center
  32. \vfill
  33. % Include Title and Subtitle
  34. {\sf\huge\bfseries\@title\par}
  35. \vspace{0.5em}
  36. {\sf\Large\bfseries\@subtitle\par}
  37. \vspace{0.5em}
  38. \rule{.7\textwidth}{0.5pt}\par
  39. \vspace{1em}
  40. % Include Authors, date and version
  41. {\large\bfseries\@author\unskip\strut\par}
  42. {\large\@date\unskip\strut\par}
  43. {\large Version \@version\unskip\strut\par}
  44. % Finish vertically centering
  45. \vfill
  46. \end{centering}
  47. % Include the project summary
  48. {\parindent=0pt \@summary}
  49. % And a final hrule
  50. \vspace{0.5 em}
  51. \hrule
  52. \end{titlepage}}