Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- documentclass{article}
- usepackage{stackengine,xcolor,lipsum}
- letsvitemitem
- newcommanddifbox[1]{stackengine{0pt}{color{gray!30}rule{5ex}{1.15ex}}{%
- color{cyan!60!black}$mkern1mumakeballs{#1}$}{O}{c}{F}{F}{L}}
- defmakeballs#1{ifnum#1>0relax{bullet}%
- expandaftermakeballsthenumexpr#1-1relaxfi}
- newenvironment{benumerate}
- {renewcommanditem[1][1]{defdifficulty{##1}svitem}%
- deflabelenumi{smash{stackunder[1pt]{color{cyan!60!black}%
- bfseriessffamilytheenumi}{difbox{difficulty}}}}%
- enumerate}{endenumerate}
- begin{document}
- begin{benumerate}
- setcounter{enumi}{32}
- item[2] lipsum[4]
- item[3] lipsum[4]
- item[4] lipsum[3]
- end{benumerate}
- end{document}
- documentclass{article}
- usepackage[most]{tcolorbox}
- usepackage{lipsum}
- newtcolorbox[auto counter]{problem}[2][]{%
- breakable,
- blankest,
- enhanced,
- attach boxed title to top left={yshift=-tcboxedtitleheight},
- left=tcboxedtitlewidth+1mm,
- top=0pt,
- colback=white,
- fonttitle=bfseriessffamily,
- coltitle={cyan!60!black},
- colbacktitle=white,
- colframe=white,
- title=thetcbcounter,
- overlay unbroken and first={node[fill=gray!30, inner sep=1pt, minimum width=tcboxedtitlewidth, outer sep=0pt, text=cyan!60!black, anchor=north] at (title.south) {foreach i in {1,...,#2}{if#2gt1{,}fi$bullet$}}; }, #1}
- begin{document}
- lipsum[1]
- begin{problem}{1}
- lipsum[2]
- end{problem}
- begin{problem}{4}
- lipsum[3]
- end{problem}
- begin{problem}{2}
- lipsum[4]
- end{problem}
- end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement