我想在文档末尾的尾注中插入一些方程式:
\documentclass[12pt,a4paper]{report}
\usepackage[T1]{fontenc}
\usepackage{amsmath,amsfonts,amssymb}
\usepackage{endnotes}
\let\footnote\endnote
\def\footnotetext{\endnotetext[\number+1]}
\let\footnotemark\endnotemark
\def\enoteheading{\par\kern2\baselineskip%
\footnoterule%
\kern1\baselineskip}
\usepackage{hyperref}
\hypersetup{colorlinks,citecolor=black,filecolor=black,linkcolor=black,urlcolor=black}
\begin{document}
\chapter{chap 1}
Hello\endnote{
\begin{equation}
z = x + y
\end{equation}}
\begin{equation}
A = B \sin(x)
\end{equation}
\chapter{chap 2}
\begin{equation}
C = D \cos(x)
\end{equation}
\appendix
\theendnotes
\end{document}
我希望环境中的这些方程式endnote
位于附录部分,并且方程式编号从开始A.1
,A.2
等等。实现这一目标的最简单方法是什么?
答案1
只要您在开始时使用正确的标记,此操作就会默认完成。
\documentclass[12pt,a4paper]{report}
\usepackage[T1]{fontenc}
\usepackage{amsmath,amsfonts,amssymb}
\usepackage{endnotes}
\let\footnote\endnote
\renewcommand\enoteheading{\chapter{Notes}}
\usepackage{hyperref}
\hypersetup{colorlinks,citecolor=black,filecolor=black,linkcolor=black,urlcolor=black}
\begin{document}
\chapter{chap 1}
Hello\endnote{Let's state an equation
\begin{equation}
z = x + y
\end{equation}}
\begin{equation}
A = B \sin(x)
\end{equation}
\chapter{chap 2}
\begin{equation}
C = D \cos(x)
\end{equation}
\appendix
\theendnotes
\end{document}