# how to get corners of the box in latex?

I have created a table in which I have to put this box, any idea how to get this box exactly shown in the image.

• Could you please add an MWE? – user156344 Mar 12 at 14:58
• amssymb has $\ulcorner, \urcorner, \llcorner$ and $\lrcorner$. You could also use a graphics package. – John Kormylo Mar 12 at 15:14

It's very easy with a tcolorbox.

\documentclass{book}
\usepackage[most]{tcolorbox}
\newtcolorbox{mybox}[1][]{%
enhanced,
opacityback=0,
frame hidden,% from https://tex.stackexchange.com/a/247509/101651
% from https://tex.stackexchange.com/a/431760/101651:
overlay unbroken and first ={%
\draw[thick] ([xshift=10pt]frame.north west) -| ([yshift=-10pt]frame.north west);
\draw[thick] ([xshift=10pt]frame.south west) -| ([yshift=10pt]frame.south west);
\draw[thick] ([xshift=-10pt]frame.north east) -| ([yshift=-10pt]frame.north east);
\draw[thick] ([xshift=-10pt]frame.south east) -| ([yshift=10pt]frame.south east);
}
}
\begin{document}
\begin{mybox}
Something:

\dotfill

\dotfill

\dotfill

\dotfill
\end{mybox}
\begin{mybox}
Something else:

\dotfill
\end{mybox}
\end{document}


• @John Kormylo , $\ulcorner$ have solved the problem. However, pacakge tcolorbox is fantastic, provides more flexibility. – Praveen25488 Mar 13 at 13:12
• @Praveen25488 To reply to John, you have to comment under your question. Once you know tcolorbox, you'll never leave it! – CarLaTeX Mar 13 at 13:37