I would like to establish a little bit more of a border between figures and the flow of text in my documents and therefore would like to introduce some graphic elements to a figure enviroment, either in the general definition or each time manually, if necessary. What would be the most advisable way of doing this?

At least, I would like to add a simple black line above and under the figure. Using a simple command like \hline prints a line, but doesn't look good and throws errors as well.


Ideally, I would like to have something more sophisticated, like the one depicted below with the red rectangle and the line.

Anyways, I am also open to other example and ideas on how to emphasize figures futher!

Figure borrowed from the Economist

2 Answers 2


Something like this?

\usepackage{graphicx, booktabs, lipsum}




enter image description here

  • Thanks, but most importantly, the second line should be below the caption. Plus, this wouldn't be easily adaptable to include the rectangle and coloring. Is there a way to do this with TikZ and include it in the environment?
    – Xima
    Commented Jan 25, 2017 at 13:45

Ok, for now I'm quite satisfied with the following solution:

Putting ...



in the preamble and ...

\newfig{./2014_Gini_Index2.pdf}{Overview of Gini-Indices in the World in the year of 2006 - 2011, respectively}{fig:Gini_index}

in the document body gives me this:


There are still little flaws to it. Like it's a little bit high on the page it seems and the white space below does crazy stuff, but it'll do for now.

Still, any remarks are very welcome!

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .