註腳不顯示

註腳不顯示
\documentclass[12pt]{report}
\usepackage[utf8]{inputenc}
\usepackage{gensymb}
\usepackage[version=3]{mhchem}
\usepackage{mathtools}
\usepackage{float}
\usepackage{booktabs}
\usepackage[bottom]{footmisc}
\usepackage{tocbibind} % fa apparire la bibliography
\usepackage{graphicx}
\graphicspath{{images/}}
\usepackage{dirtytalk}
\usepackage{csquotes}
\usepackage{siunitx}
\usepackage{color, colortbl}
\newcommand{\ammonia}{\ce{NH3}}
\newcommand{\co}{\ce{CO2}}
\newcommand{\water}{\ce{H2O}}
\setlength\parindent{0pt}
\usepackage{enumerate}
\usepackage{listings}
\usepackage{color}
\usepackage{mathptmx}
\usepackage{geometry}
\geometry{a4paper, top=3 cm, left=3.5 cm, right=3.0cm, bottom=3.0cm}
\linespread{1.5}
\renewcommand{\thefootnote}{\alph{footnote}}
\usepackage{ragged2e}
\definecolor{LightCyan}{rgb}{0.88,1,1}
\renewcommand{\thefootnote}{\alph{footnote}}
\usepackage{listings}
\usepackage{xr}


\begin{equation}\label{eq:Ammonia} 
\centerline{\ce{2NH3_{(g)} + \co_{(g)} <=> NH2COONH4_{(l)}}
\footnote{$\Delta H =\SI{-117}{\frac{Kj}{mol}}$ at 110 atm and 160\celsius}}
\end{equation}

\begin{equation}\label{eq:urea}
\centerline{\ce{NH2COONH4_{(l)} <=> CO(NH2)2_{(l)} + H2O_{(l)}}
\footnote{($\Delta H =\SI{+15.5}{\frac{Kj}{mol}}$ at 160-180\celsius}} 
\end{equation}

我想在頁面底部顯示腳註,但它不顯示。

答案1

您的程式碼中有幾個弱點。例如,使用\centerline它會導致您頭痛,但根本沒有任何作用。

您正在載入軟體包但沒有正確使用它們。還有重複您加載的其他人的操作的包。例如,gensymb什麼都不做siunitx可以做得更好。也csquotesdirtytalk.

你的序言很混亂,而且有很多重複。我刪除了一些無用的軟體包(如果您加載float[H]選項,請不要加載)。使用選項來調用,而不是colortbl和。也應接收選項或將目錄列在目錄中。colorxcolortabletocbibindnottoc

我也刪除了\linespread{1.5};如果您需要增加行間,請使用setspace.

請注意,這\SI{-117}{\kilo\joule\per\mol}避免了用大寫字母表示“kilo”前綴和用小寫字母表示“joule”的錯誤。我設定了per-mode=fraction,但結果如您所見,很差。

相反mathptmx,這樣做更好

\usepackage{newtxtext,newtxmath}

(但我沒有改變這一點)。

最後,我只是將註釋添加為顯示後面的文本,而不是為顯示的公式添加腳註。但你(或你的顧問)是最終的評判者。

\RequirePackage{fix-cm} % pull away spurious warnings
\documentclass[12pt]{report}
\usepackage[utf8]{inputenc}
\usepackage{geometry}

\usepackage{mathptmx}

\usepackage[version=3]{mhchem}
\usepackage{mathtools}
\usepackage{booktabs}
\usepackage[bottom]{footmisc}
\usepackage[nottoc]{tocbibind} 
\usepackage{graphicx}
\usepackage{enumerate}
\usepackage{listings}
\usepackage{csquotes}
\usepackage{siunitx}
\usepackage[table]{xcolor}
\usepackage{ragged2e}
\usepackage{xr}

% generic set up
\geometry{a4paper, top=3 cm, left=3.5 cm, right=3.0cm, bottom=3.0cm}

\graphicspath{{images/}}

\renewcommand{\thefootnote}{\alph{footnote}}

\definecolor{LightCyan}{rgb}{0.88,1,1}

\sisetup{per-mode=fraction}

% personal commands

\newcommand{\ammonia}{\ce{NH3}}
\newcommand{\co}{\ce{CO2}}
\newcommand{\water}{\ce{H2O}}

\begin{document}

\begin{equation}\label{eq:Ammonia} 
\ce{2NH3_{(g)} + \co_{(g)} <=> NH2COONH4_{(l)}}
\footnote{$\Delta H =\SI{-117}{\kilo\joule\per\mol}$ at \SI{110}{atm} 
  and \SI{160}{\celsius}}
\end{equation}

\begin{equation}\label{eq:urea}
\ce{NH2COONH4_{(l)} <=> CO(NH2)2_{(l)} + H2O_{(l)}}
\footnote{($\Delta H =\SI{+15.5}{\kilo\joule\per\mol}$ at
   \SIrange{160}{180}{\celsius}}
\end{equation}

\end{document}

在此輸入影像描述

(註:為了產生較小的圖片,我對文字高度進行了作弊,但這對最終結果沒有影響。)

相關內容