[Tex/LaTex] Change border color of \fbox


Possible Duplicate:
Is there an \arrayrulecolor-like command to change the rule color of \fbox?

I'm using an \fbox to have a border around a minipage.

my content

Is there any way to set the border color of the \fbox?

Best Answer

The xcolor package provides \fcolorbox{<frame color>}{<background color>}{<text>}. You can also use my adjustbox package with the cfbox=<color> and minipage=<width> keys:


% ...


% or, if the whole thing should be 0.25\textwidth wide, including the border:


You can define your own command using:

% usage: \myfbox{<content>}
Related Question