
나는 표와 그림을 모두 포함하기 위해 WrapFigure를 사용하고 있습니다. 그러나 랩피겨에 있기 때문에 테이블 캡션은 테이블 x가 아닌 "그림 X"로 표시됩니다.
이 문제를 해결할 수 있는 방법이 있나요?
감사합니다! 다음은 내 직접 코드의 일부입니다!
\begin{wrapfigure}{l}{8.5cm}
\begin{tabular}{|c|c|c|c|c|}
\hline
Cluster & Start & End & Muts. in Cluster & P-Value \\ \hline
1 & 751 & 858 & 4 & 1.35E-04 \\
2 & 719 & 751 & 2 & 2.41E-03 \\
3 & 790 & 858 & 2 & 2.82E-03 \\
\hline
\end{tabular}
\caption{The three most significant clusters found in EGFR for the 2GS7 structure.}
\label{tab:EGFRClust}
\includegraphics[width = 0.5\textwidth]{EGFRDrawing.eps}
\caption{The 2GS7 structure color coded by region: 1) cluster 1 - orange, 2) cluster 2 - blue and 3) cluster 3 - yellow. The boundary $\alpha$-carbon amino acids of 719, 751, 768, 790 and 858 are shown as purple spheres.}
\label{fig:EGFR-2GS7}
\end{wrapfigure}
답변1
당신은 사용할 수 있습니다\captionof
다음 중 하나에서 제공되는 명령capt-of
아니면 그caption
패키지:
\documentclass{article}
\usepackage{wrapfig}
\usepackage{capt-of}
\usepackage[demo]{graphicx}
\begin{document}
\begin{wrapfigure}{l}{8.5cm}
\begin{tabular}{|c|c|c|c|c|}
\hline
Cluster & Start & End & Muts. in Cluster & P-Value \\ \hline
1 & 751 & 858 & 4 & 1.35E-04 \\
2 & 719 & 751 & 2 & 2.41E-03 \\
3 & 790 & 858 & 2 & 2.82E-03 \\
\hline
\end{tabular}
\captionof{table}{The three most significant clusters found in EGFR for the 2GS7 structure.}
\label{tab:EGFRClust}
\includegraphics[width = 0.5\textwidth]{EGFRDrawing.eps}
\captionof{figure}{The 2GS7 structure color coded by region: 1) cluster 1 - orange, 2) cluster 2 - blue and 3) cluster 3 - yellow. The boundary $\alpha$-carbon amino acids of 719, 751, 768, 790 and 858 are shown as purple spheres.}
\label{fig:EGFR-2GS7}
\end{wrapfigure}
\end{document}
옵션은 demo
실제 graphicx
그림을 검은색 직사각형으로 대체합니다. 하다~ 아니다실제 문서에서 해당 옵션을 사용하세요.