bold frame around figure

1,343 views
Skip to first unread message

Anglea

unread,
Oct 9, 2009, 12:46:05 PM10/9/09
to LaTeX Users Group
Hi all

how can I force LATEX to draw a frame around my figure in Article
document type.

best

jon

unread,
Oct 9, 2009, 3:36:03 PM10/9/09
to LaTeX Users Group
On Oct 9, 12:46 pm, Anglea <hanyahamdi...@yahoo.com> wrote:
> how can I force LATEX to draw a  frame around my figure in Article
> document type.

and what exactly is your 'figure'? i'd probably use tikz/pgf for this
sort of thing, but without a minimal example to work with it's hard to
say what the right approach should be....

cheers,
jon.

Anglea

unread,
Oct 10, 2009, 12:10:59 PM10/10/09
to LaTeX Users Group
thanks Jon for your reply, actually I have the following environment
to include a figure in Article, I want a frame around my figure

\begin{figure}[!htp]
\includegraphics[width=7cm,height=7cm]{123.EPS}
\centering
\caption{plaplapla}
\label{fig:4}
\end{figure}

I sthis possible?
best

Paulo

unread,
Oct 11, 2009, 11:19:11 AM10/11/09
to LaTeX Users Group
How Jon say, you can use tikz/pgf for print the frame around your
figure.

Your code stay (using Tikz):

\begin{tikzpicture}
\node (label) at (0,0)[draw=black]{\includegraphics[width=.3\linewidth]
{figure}};
...
\end{tikzpicture}

The option "draw" prints the frame around your figure in any color....

Good luck!

Anglea

unread,
Oct 11, 2009, 12:02:01 PM10/11/09
to LaTeX Users Group
Thanks Paulo

so you're saying
\begin{tikzpicture}
\node (label) at (0,0)[draw=black]{\includegraphics
[width=7cm,height=7cm]{123.EPS}};
\end{tikzpicture}
######
do I need to download any packages for this, because when I've done
this it gave me the following warning message
Environment tikzpicture undefined. \begin{tikzpicture}

I need this in article type document

looking to your help
best

Bruno Lopes

unread,
Oct 11, 2009, 12:10:35 PM10/11/09
to latexus...@googlegroups.com
Just include in the preamble:

\usepackage{tikz}

2009/10/11 Anglea <hanyah...@yahoo.com>



--
Bruno Lopes Vieira

Linux User #324250
Curriculum Vitae: http://lattes.cnpq.br/7793315334001237
--
"Never express yourself more clearly than you are able to think."
(Niels Bohr)

Anglea

unread,
Oct 11, 2009, 12:27:36 PM10/11/09
to LaTeX Users Group
I need something to work with \documentclass[a4paper,11pt]{article}
still giving me a warning message even I download this package


On Oct 11, 5:10 pm, Bruno Lopes <blopesvie...@gmail.com> wrote:
> Just include in the preamble:
>
> \usepackage{tikz}
>
> 2009/10/11 Anglea <hanyahamdi...@yahoo.com>

jon

unread,
Oct 12, 2009, 5:28:59 PM10/12/09
to LaTeX Users Group
On Oct 11, 12:27 pm, Anglea <hanyahamdi...@yahoo.com> wrote:
> I need something to work with  \documentclass[a4paper,11pt]{article}
> still giving me a warning message even I download this package

you need to give people more information if you want useful help:
minimal examples, what kind of error messages, etc.

anyway, you might find this more useful (i just found out about it, in
fact):

\documentclass[a4paper,11pt]{article}

\usepackage{boxedminipage}
%% change the below lengths to suit your needs:
\setlength{\fboxrule}{1pt}
\setlength{\fboxsep}{5pt}

\begin{document}

\begin{figure}[tb]
\begin{boxedminipage}{0.5\textwidth}
\centering
\includegraphics[width=\linewidth]{<graphic.png>}
\caption{my caption}
\end{boxedminipage}
\end{figure}

\end{document}

cheers,
jon.

Anglea

unread,
Oct 13, 2009, 5:13:19 AM10/13/09
to LaTeX Users Group
appreciate your help Jon
that what I need to get exactly,...thanks alot
just small thing how can I change the color of the frame
also how can I increase the height of the minipage as the frame
contain 6 figures, I tried with this command \begin{boxedminipage}
{1\textwidth,3\textheight}, but does not work,

so I tried another way like \includegraphics[width=12cm,height=12cm]
{12.eps}

it seems the minipage does not accept more that
width=12cm,height=12cm, thought still space in the page, really I need
the minipage to cover the whole page.

cheers

jon

unread,
Oct 13, 2009, 6:45:59 PM10/13/09
to LaTeX Users Group
On Oct 13, 5:13 am, Anglea <hanyahamdi...@yahoo.com> wrote:
> appreciate your help Jon
> that what I need to get exactly,...thanks alot
> just small thing how can I change the color of the frame
> also how can I increase the height of the minipage as the frame
> contain 6 figures, I tried with this command \begin{boxedminipage}
> {1\textwidth,3\textheight}, but does not work,
>
> so I tried another way like \includegraphics[width=12cm,height=12cm]
> {12.eps}
>
> it seems the minipage does not accept more that
> width=12cm,height=12cm, thought still space in the page, really I need
> the minipage to cover the whole page.

well, now i'm back to suggesting that you use tikz/pgf, but i don't
really get what you want done. do you want the page framed, only the
picture framed, the picture and caption framed? you need to describe
much more clearly what you're after.

and, please understand that framing a 'float' environment is /not/
easily done at all. you need to think very carefully about what the
finished product must look like and then go about making it happen.
this is probably not something that you can radically redesign at
whim: what works for one approach probably won't work for another.

cheers,
jon.
Reply all
Reply to author
Forward
0 new messages