Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- documentclass[oneside]{book}
- usepackage{color, xcolor}
- newcommand{mysection}[2]{
- setcounter{section}{#1}
- setcounter{section}{0}
- chapter*{#2}
- addcontentsline{toc}{section}
- {protectnumberline{hspace{-1.15cm}%
- colorbox{blue!50}{color{blue}stringparbox[c][.72em]{1em}
- {strutprotect}}%
- hspace{1em}bfseriessffamily MakeUppercase{#2}protect}}
- }
- begin{document}
- tableofcontents
- frontmatter
- mysection{1}{Introduction}
- mysection{0}{Acknowledgments}
- mainmatter
- end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement