그림 환경의 그래픽 요소

그림 환경의 그래픽 요소

나는 내 문서의 그림과 텍스트 흐름 사이에 경계를 좀 더 설정하고 싶기 때문에 일반 정의에서 또는 필요한 경우 매번 수동으로 그림 환경에 일부 그래픽 요소를 도입하고 싶습니다. 이 작업을 수행하는 가장 바람직한 방법은 무엇입니까?

최소한 그림 위와 아래에 간단한 검정색 선을 추가하고 싶습니다. 한 줄을 인쇄하는 것과 같은 간단한 명령을 사용하면 \hline보기에도 좋지 않고 오류도 발생합니다.

\begin{figure}%
  \begin{center}
\includegraphics[width=\columnwidth]{./2014_Gini_Index2.pdf}
    \label{fig:Gini_index}
    \caption{Gini-Masterflow}
    \vspace{7pt}
    \hline
 \end{center}
\end{figure}

이상적으로는 아래에 빨간색 직사각형과 선으로 표시된 것과 같이 좀 더 정교한 것을 갖고 싶습니다.

어쨌든, 인물을 더 강조하는 방법에 대한 다른 예와 아이디어도 열려 있습니다!

이코노미스트에서 빌려온 그림

답변1

이 같은?

\documentclass[twocolumn]{article}
\usepackage{graphicx, booktabs, lipsum}

\begin{document}

\lipsum[1]
\begin{figure}[!htb]%
\centering
\begin{tabular}{@{}c@{}}
\addlinespace
\toprule
\includegraphics[width=\columnwidth]{2014_Gini_Index2}\\
\bottomrule
\end{tabular}
\caption{Gini-Masterflow}
\label{fig:Gini_index}
\end{figure}
\lipsum[1-4]

\end{document} 

여기에 이미지 설명을 입력하세요

답변2

좋습니다. 현재로서는 다음 솔루션에 매우 만족합니다.

퍼팅 ...

\newcommand\crule[3][black]{\textcolor{#1}{\rule{#2}{#3}}}

\newcommand\newfig[3]{\begin{figure}
\centering
\crule[red]{4pt}{10pt}\raisebox{9.5pt}{\crule[red]{\columnwidth-4pt}{.5pt}}
\includegraphics[width=\columnwidth]{#1}%
\caption{#2}
\crule[red]{\columnwidth-4pt}{0.5pt}\crule[red]{4pt}{10pt}
\label{#3}
\vspace{-2em}
\end{figure}%
}

서문에서 그리고 ...

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

문서 본문에 다음이 나와 있습니다.

결과

아직 결함이 거의 없습니다. 페이지에서는 약간 높은 것처럼 보이고 아래 공백은 미친 짓을 하는 것처럼 보이지만 지금은 그럴 것입니다.

그래도 어떤 의견이라도 환영합니다!

관련 정보