Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- documentclass[oneside,11pt,fleqn]{memoir}
- usepackage{titletoc}
- setcounter{tocdepth}{0}
- usepackage[compact,toctitles]{titlesec}
- titleformat{chapter}[block]
- {huge}{chaptertitlename thechapter: }{0pt}{huge}[addtocounter{cherrychapter}{1}]
- title{H&R}
- %%% COUNTERS
- newcounter{cherrychapter}%[chapte]
- setcounter{cherrychapter}{0}
- newcommandkeyword[1]{%
- noindent%
- {#1}%
- phantomsection% comment out if hyperref is noy used
- thecherrychapterthechapteraddcontentsline{key-thecherrychapter}{figure}{#1}
- }
- makeatletter
- newcommandlistkeywordsname{KEYWORDS}
- newcommandlistofkeywords{%
- thecherrychapterthechapter
- section*{listkeywordsname}@starttoc{key-thecherrychapter}
- thecherrychapterthechapter}
- makeatother
- begin{document}%BEGIN
- maketitle
- tableofcontents*
- part{A}
- chapter{aa}
- listofkeywords
- keyword{bb}
- section{aaa}
- keyword{bbb}
- subsection{aaaa}
- keyword{bbbb}
- chapter{cc}
- listofkeywords
- keyword{dd}
- section{ccc}
- keyword{ddd}
- subsection{cccc}
- keyword{dddd}
- end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement