I'm using the code below (which I got off this website: https://jevon.org/wiki/Fancy_Quotation_Boxes_in_Latex) to generate this formal box

I want to have the left-hand vertical bar repeated on the right-hand side of the box, but I'm not sure how to modify the code. Any help would be appreciated. Thanks in advance.


\usepackage{color, colortbl}
% for formal definitions
% environment derived from framed.sty: see leftbar environment definition
\definecolor{darkblue}{rgb}{0.0, 0.0, 0.55}

    {\color{darkblue}\vrule width 2pt}%
    {\color{formalshade}\vrule width 4pt}%
  \noindent\hspace{-4.55pt}% disable indenting first paragraph




1 Answer 1


I'd use tcolorbox insted of framed and define the box as shown in the following example: enter image description here


\definecolor{darkblue}{rgb}{0.0, 0.0, 0.55}

    frame hidden,
    borderline west={2pt}{0pt}{darkblue},
    borderline east={2pt}{0pt}{darkblue},
    sharp corners, 


  • Awesome, thanks leandriis! May 13, 2021 at 13:14
  • @JonathanNewman: Glad I was able to help you. If you like my answer and it was helpful, please consider upvoting (by clicking on the arrows next to the score) and/or marking it as the accepted answer (by clicking on the checkmark ✓).
    – leandriis
    May 13, 2021 at 13:25
  • I made it the accepted answer but unfortunately, I do not have enough reputation points to upvote your answer. Thanks again! May 14, 2021 at 14:03

You must log in to answer this question.

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