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.
Asked
Active
Viewed 536 times
2
-
2Could you please add an MWE? – Mar 12 '19 at 14:58
-
1amssymb has $\ulcorner, \urcorner, \llcorner$ and $\lrcorner$. You could also use a graphics package. – John Kormylo Mar 12 '19 at 15:14
1 Answers
3
It's very easy with a tcolorbox.
Next time you ask, please add a minimal working example (MWE).
\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}
CarLaTeX
- 62,716
-
@John Kormylo , $\ulcorner$ have solved the problem. However, pacakge tcolorbox is fantastic, provides more flexibility. – Praveen25488 Mar 13 '19 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 '19 at 13:37

