\usepackage{tablefootnote}가 각주를 임의의 위치에 배치하는 이유

\usepackage{tablefootnote}가 각주를 임의의 위치에 배치하는 이유

footnote나는 테이블에 하나를 만들고 싶었습니다 . 그래서 나는 사용했다tablefootnote http://www.ctan.org/tex-archive/macros/latex/contrib/tablefootnote\footnote일반 테이블 내부에서는 작동하지 않기 때문에 Google 검색에서 제안한 대로 그렇게 합니다 .

그런데 실제 각주는 이전 페이지 하단에 표시될 때도 있고, 다음 페이지 하단에 표시될 때도 있는 것 같습니다.

같은 페이지에 각주를 표시하고 싶습니다.

예 1, 각주는 이전 페이지 하단에 표시됩니다.

\documentclass[12pt,notitlepage]{article}%
\usepackage{float}%
\usepackage{lipsum}
\usepackage{tablefootnote}

\begin{document}
\section{A}
\lipsum[4-10]
\section{B}
\begin{table}[htp]
\begin{center}
\begin{tabular}{|l|l|l|}\hline
$e$                      & 0.97774    & 0.9935      \\ \hline
semimajor axis $a$       & 300000     & 262413      \\ \hline
true anamoly $f$         & 163.76     & 176.08       \\\hline
semimajor axis $a$       & 300000     & 262413  \\ \hline
true anamoly $f$         & 163.76     & 176.08     \\\hline
$r_p$                    & 6678       & 1689
  \tablefootnote{spacecraft will hit earth on way back since $r_p<r_{earth}$} \\\hline
\end{tabular}
\caption{Summary table for non-tangential per and post flyby the moon}
\label{tab:part_3_1_summary}
\end{center}
\end{table}
\end{document}

Mathematica 그래픽

예 2, 다음 페이지에 각주가 표시됩니다.

\documentclass[12pt,notitlepage]{article}%
\usepackage{float}%
\usepackage{lipsum}
\usepackage{tablefootnote}

\begin{document}
\section{A}
\lipsum[4-6]
\section{B}
\begin{table}[htp]
\begin{center}
\begin{tabular}{|l|l|l|}\hline
semimajor axis $a$       & 300000  & 262413    \\ \hline
true anamoly $f$         & 163.76   & 176.08   \\\hline
$r_p$                    & 6678 & 1689
 \tablefootnote{spacecraft will hit earth on way back since $r_p<r_{earth}$} \\\hline
\end{tabular}
\caption{Summary table for non-tangential per and post flyby the moon}
\label{tab:part_3_1_summary}
\end{center}
\end{table}
\section{C}
\lipsum[4-10]

\end{document}

Mathematica 그래픽

Miktex 2.9, 최신.

답변1

플로트에 대한 페이지 하단의 각주는 플로트가 다른 페이지로 떠다닐 수 있기 때문에 원하지 않는 효과를 생성합니다. 테이블(또는 일반적으로 부동 소수점)에 대한 각주가 실제로 필요한 경우 다음을 사용하여 얻을 수 있는 부동 소수점 바로 뒤에 각주를 사용하는 것이 더 좋습니다.threeparttable또는ctable패키지.

다음을 사용한 예 threeparttable:

\documentclass[12pt,notitlepage]{article}%
\usepackage{lipsum}
\usepackage{threeparttable}

\begin{document}

\section{A}
\lipsum[4-6]
\section{B}
\begin{table}
\centering
\begin{threeparttable}
\caption{Summary table for non-tangential per and post flyby the moon}
\label{tab:part_3_1_summary}
\begin{tabular}{|l|l|l|}\hline
semimajor axis $a$       & 300000  & 262413    \\ \hline
true anamoly $f$         & 163.76   & 176.08   \\\hline
$r_p$                    & 6678 & 1689\tnote{1} \\ \hline
\end{tabular}
\begin{tablenotes}
\item[1] spacecraft will hit earth on way back since $r_p<r_{earth}$
\end{tablenotes}
\end{threeparttable}
\end{table}
\section{C}
\lipsum[4-10]

\end{document}

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

그리고 동일한 테이블은 다음을 사용합니다 ctable.

\documentclass[12pt,notitlepage]{article}%
\usepackage{lipsum}
\usepackage{ctable}

\begin{document}

\section{A}
\lipsum[4-6]
\section{B}
\ctable[
caption = Summary table for non-tangential per and post flyby the moon.
label={tab:part_3_1_summary}
]{|l|l|l|}
{\tnote[1]{spacecraft will hit earth on way back since $r_p<r_{earth}$}}
{
\hline
semimajor axis $a$       & 300000  & 262413  \\ \hline
true anamoly $f$         & 163.76   & 176.08   \\ \hline
$r_p$ & 6678 & 1689 \\ 
\hline
}
\section{C}
\lipsum[4-10]

\end{document}

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

두 패키지 모두 메모 형식에 대한 일부 사용자 정의 가능성을 제공합니다. 패키지 설명서를 참조하세요.

답변2

나는 그 조언을 따랐다.곤잘로 메디나를 사용한 답변 threeparttable이지만 테이블 위의 캡션을 올바르게 중앙에 배치하는 데 문제가 있었습니다. 표 왼쪽 가장자리에 고정되어 있었는데 캡션이 꽤 길어서 표 왼쪽 가장자리를 넘어 확장되었습니다.

내 해결책은 \begin{threeparttable}표 형식 환경 이전에 캡션 아래로 이동하는 것이었습니다. 이렇게 하면 캡션이 플로트 내 중앙에 배치되고 전체 너비를 사용합니다(원하는 것일 수도 있고 아닐 수도 있음). 각주는 표 아래에 있으며 예상대로 표의 전체 너비만 확장합니다.

\documentclass[12pt,notitlepage]{article}%
\usepackage{threeparttable}

\begin{document}

\begin{table}
\centering
\caption{Here's my long caption text that I want centered on the page.
\label{tab:simulation_parameters}}
\begin{threeparttable}
\begin{tabular}{lp{1.7in}}
\hline
Material & Index of refraction\\ 
\hline
silicon & 3.47772\\
silicon dioxide & 1.54\\
silicon nitride & 2.217\\
HSQ\tnote{a} & 1.39\\ \hline
\end{tabular}
\begin{tablenotes}
\item[a] Here's my footnote.
\end{tablenotes}
\end{threeparttable}
\end{table}

\end{document}

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

관련 정보