6

I would like to clone this box used on the tcolorbox manual, but I couldn't find the configuration in the manual.

Tcolorbox tip

Can you help me?

closed as unclear what you're asking by user31729, Jesse, Zarko, Svend Tveskæg, Claudio Fiandrino Jun 12 '16 at 9:38

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • It's in the documentation source only. Look for marker -- I explicitly asked the package author however, for permission to use the code! – user31729 May 2 '16 at 12:14
  • You're more likely to get a helpful answer by supplying some initial code-frame and showing the work you already put into it. – sheß May 2 '16 at 12:18
12

The code box is called marker and can be found in tcolorbox.doc.s_main.sty, i.e. the documentation source of tcolorbox manual.

The marker environment is made with \newtcolorbox and has an optional argument to allow further customization.

The corner is made with some underlay using TikZ.

Side note: I am using the marker environment in the documentation of personal packages after I have asked Thomas F. Sturm for permission. I think this will be granted to everyone given that there is some remark about Thomas' contribution.

\documentclass{article}

\usepackage[most]{tcolorbox}

\newtcolorbox{marker}[1][]{enhanced,
  before skip=2mm,after skip=3mm,
  boxrule=0.4pt,left=5mm,right=2mm,top=1mm,bottom=1mm,
  colback=yellow!50,
  colframe=yellow!20!black,
  sharp corners,rounded corners=southeast,arc is angular,arc=3mm,
  underlay={%
    \path[fill=tcbcol@back!80!black] ([yshift=3mm]interior.south east)--++(-0.4,-0.1)--++(0.1,-0.2);
    \path[draw=tcbcol@frame,shorten <=-0.05mm,shorten >=-0.05mm] ([yshift=3mm]interior.south east)--++(-0.4,-0.1)--++(0.1,-0.2);
    \path[fill=yellow!50!black,draw=none] (interior.south west) rectangle node[white]{\Huge\bfseries !} ([xshift=4mm]interior.north west);
    },
  drop fuzzy shadow,#1}

\begin{document}
\begin{marker}
Foo
\end{marker}
\end{document}

enter image description here

Not the answer you're looking for? Browse other questions tagged or ask your own question.