I'm making a box with text inside. For it I use the package mdframed. Essentially I want a box with the left border width 2pt and the rest of the borders width 1pt.

What I've got so far:

  • Are you sticking to mdframed or will tcolorbox be a solution too -- you can control every rule width of the box separately within tcolorbox, perhaps this possible with mdframed too
    – user31729
    Oct 22 '14 at 22:08
  • @ChristianHupfer I don't know tcolorbox, but I'll try.
    – Kiyoshi
    Oct 22 '14 at 22:23

This is the tcolorbox style to make such a framed box, where I exaggerated the left rule width a little bit, as a demo...




\begin{tcolorbox}[boxrule=1pt,leftrule=5pt,arc=0pt,auto outer arc]

enter image description here

  • 1
    I will update this solution with the more generic \newtcolorbox command later on
    – user31729
    Oct 22 '14 at 22:37
  • Why not add the \tcbset option as well then? :-)
    – 1010011010
    Oct 22 '14 at 22:50
  • @1010011010: I am in a hurry for another solution ... to another question :-P
    – user31729
    Oct 22 '14 at 22:50
  • @ChristianHupfer Thanks for your solution ;)
    – Kiyoshi
    Oct 23 '14 at 6:47
  • How do I set the default boxrule in my preamble for all the boxes?
    – Matt
    Dec 4 '19 at 0:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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