<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
You might want to have a look at the tcolorbox package instead of frames. It has a ton of more features and an extensive manual.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
The framed package is very old and limited <br>
</div>
<div class="elementToProof">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
</div>
<div></div>
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px"><br>
</div>
<div style="font-family:Tahoma; font-size:13px"><br>
<b><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(23, 78, 134);">Lars Madsen</span></b></div>
<div style=""><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">Programmør</span></div>
<div style=""><span style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)"></span><br>
<span style="font-family: Calibri, Helvetica, sans-serif;"></span><b><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(23, 78, 134);">Institut for Matematik</span></b><br>
<span style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">Aarhus Universitet</span></div>
<div style=""><br>
<span style="font-family: Calibri, Helvetica, sans-serif;"></span></div>
<div style=""><a href="https://person.au.dk/daleif@math" title="https://person.au.dk/daleif@math"><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">person.au.dk/daleif@math</span></a><br>
</div>
<span style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)"></span><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> texhax <texhax-bounces+daleif=imf.au.dk@tug.org> on behalf of Christopher Ryan via texhax <texhax@tug.org><br>
<b>Sent:</b> 21 March 2023 18:16<br>
<b>To:</b> TeXHaX List <texhax@tug.org><br>
<b>Subject:</b> how to change color of frames around graphics using framed package</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div class="x_gmail_default" style="font-family:monospace,monospace">Trying to put frames/boxes, of varying color, around my graphics and their associated captions. Using MikTeX on Win 10, and experimenting with the framed package.<br>
<br>
The code below puts a black box around the graphic, despite my efforts, in the preamble, to make that frame red. Uncommenting the \definecolor{framecolor} line within the framed environment itself doesn't help.
<br>
<br>
\documentclass[11pt]{article}<br>
<br>
\usepackage{graphicx}<br>
\usepackage[margin=0.75in]{geometry}<br>
\usepackage{framed}<br>
\usepackage{xcolor}<br>
\definecolor{framecolor}{named}{red}<br>
\definecolor{shadecolor}{named}{blue}<br>
<br>
\begin{document}<br>
<br>
\begin{figure}\centering<br>
\begin{framed}<br>
% \definecolor{framecolor}{named}{red}<br>
\includegraphics{emsdailyscatterplotsmoother}<br>
\end{framed}<br>
\end{figure}<br>
<br>
\end{document}<br>
<br>
In contrast, the code below does indeed set the background color of a shaded region blue, as I'd expect.<br>
<br>
\documentclass[11pt]{article}<br>
<br>
\usepackage{graphicx}<br>
\usepackage[margin=0.75in]{geometry}<br>
\usepackage{framed}<br>
\usepackage{xcolor}<br>
\definecolor{framecolor}{named}{red}<br>
\definecolor{shadecolor}{named}{blue}<br>
<br>
\begin{document}<br>
<br>
\begin{figure}\centering<br>
\begin{shaded}<br>
\includegraphics{emsdailyscatterplotsmoother}<br>
\end{shaded}<br>
\end{figure}<br>
<br>
\end{document}<br>
<br>
<br>
I have not found any instructions in the framed package documentation about how to change or set color of the frame. Grateful for any advice.<br>
<br>
-Chris Ryan<br>
</div>
</div>
</div>
</body>
</html>