10

enter image description here

I tried the following code, but the quotation marks at the top left is not at the right place.

\documentclass{article}

\usepackage[many]{tcolorbox}
\newtcolorbox{note}[1][\linewidth]{
    enhanced,
    colback = white,
    boxrule = -1pt,
    sharp corners,
    frame code = {
      \draw [line width = 5pt, blue]
            ([xshift = 0.3cm]frame.north west) --
            (frame.north east) --
            (frame.south east) --
            (frame.south west) -- 
            ([yshift = -0.3cm]frame.north west);  
      \node [scale = 5] at (frame.north west) {``};
    },
    width = #1
}
\begin{document}

\begin{note}[4cm]
  This is a boxed frame.
\end{note}

\end{document}

Thanks for your help!

3
  • The quotation marks at top left should havce been at frame.north west, but it shifts up.
    – Misaya
    Jan 13, 2021 at 9:30
  • You could raise the box containing the quotes like \raisebox{-1em}{``} but the problem is that it is behind the white box.
    – Sigur
    Jan 13, 2021 at 10:08
  • Thanks! But it doesn't help, since the frame is clipped.
    – Misaya
    Jan 13, 2021 at 12:25

1 Answer 1

16

mwe

\documentclass{article}
\usepackage[many]{tcolorbox}
\newtcolorbox{note}[1][\linewidth]{
width = #1, 
sharp corners,
boxed title style={boxrule=0pt,colframe=white},
attach boxed title to top left={xshift=-3mm,yshift=-2mm},
colbacktitle=white,
colback=white,
colframe=blue,
coltitle=blue,
enhanced, 
fonttitle=\bfseries\Huge,
title=\vbox to 3mm{\kern.1em\hbox to 0pt{\kern-.2em``}}}
\begin{document}
\begin{note}[4cm] This is a boxed frame \end{note}
\end{document}
1
  • 1
    Thanks very much.
    – Misaya
    Jan 20, 2021 at 12:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .