<div dir="ltr"><div class="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>