簡體   English   中英

latex 上圖標題中的腳注

[英]Footnote in Caption of Figure on latex

雖然我在一個圖的標題中嘗試了很多腳注的代碼,但它不起作用,真的,問題出在哪里

\documentclass[a4paper,12pt]{report}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{fancyhdr}
\makenomenclature

\usepackage[nottoc]{tocbibind}
\pagenumbering{Roman}


\usepackage{lipsum}

\setcounter{tocdepth}{5}
\setcounter{secnumdepth}{4}
\begin{document} 
              
\begin{figure}
      \centering                        
      \includegraphics[width=0.8\textwidth{images/frog.jpg}
      \caption[frog]{frog \footnotemark }
      \label{fig:pic1}
\end{figure}
\footnotetext{frog}

\end{document} 

兩個問題:

  • 你不能在你的代碼中使用定義它的 package 的\makenomenclature宏,例如nomencl

  • 缺少圖形的可選參數后的]

由於\footnotetext\footnotemark之間的拆分,總是存在浮動圖形和腳注最終會出現在不同頁面上的風險。 您可以通過使用[htbp]作為圖形的浮動說明符來降低風險,這樣您至少允許將圖形放置在腳注所在的位置。


\documentclass[a4paper,12pt]{report}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{fancyhdr}
%\makenomenclature

\usepackage[nottoc]{tocbibind}
\pagenumbering{Roman}


\usepackage{lipsum}

\setcounter{tocdepth}{5}
\setcounter{secnumdepth}{4}
\begin{document} 
              
\begin{figure}[htpb]
      \centering                        
      \includegraphics[width=0.8\textwidth]{example-image-duck}
      \caption[frog]{frog \footnotemark }
      \label{fig:pic1}
\end{figure}
\footnotetext{frog}

\end{document} 

在此處輸入圖像描述

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM