I recently wrote about cropping figures using the graphics bundle. Here is another fancy way to get more out of your figures.
The fancybox package implements commands for various boxes such as a box with round corners. The command shadowbox
creates a black box with a shadow. It works with normal text, in math mode as well as with floats such as the figure environment.
To add a shadow to a figure, we need two things. First we load the fancybox package. Next, we add a shadowbox
around includegraphics
. Note, the box encompasses only the actual content and not the entire float.
\usepackage{fancybox, graphicx} ... \begin{figure}[ht] \shadowbox{\includegraphics{figure-file}}} \end{figure}
As simple as that.
And here is the result with a minimal working example below.
\documentclass{article} \usepackage{fancybox} \begin{document} \begin{figure}[ht] \centering \shadowbox{\phantom{\rule{4cm}{3cm}}} \caption{Phantom figure} \end{figure} \tiny\hfill Created by http://texblog.org \end{document}
A few clarifications on the minimal working example
\rule{width}{height}
adds a black box as a placeholder for a figure.\phantom{argument}
adds an invisible box of the size of itsargument
.- Again, make sure the box only contains the actual content and not the float.
MPK
Hai Dears
can you sent me full coding of Latex format to convert the file to Ms-Word without affecting mathematics formula and figure. If any one knw Conversion of Coding for Latex TO Word and give me ” HOw The word file convert into Latex format then finally after making latex format i want PDF file”. Kindly sent me the coding of about my queries.
Thanking You
Dr M P Kulandaivel Lecturer, Mathematics Al Musanna College of Technology Sultanate of Oman
tom
Dear Dr Kulandaivel,
Thank you for your question. I have no experience with word2tex and tex2word conversion. A quick google search revealed the following TUG website on the topic which you may find useful. The website mentions several conversion tools. One of which is Open Office, which according to the author provided a good conversion-experience between Word and TeX files.
Hope it helps,
Tom.