\documentclass[8pt,a4paper,oneside]{book} \usepackage{ctex} \usepackage{endnotes} \renewcommand{\notesname}{\textbf{【注释】 }} \makeatletter \newskip\@endindent \@endindent=1em \long\def\@makeentext#1{\@setpar{\@@par\@tempdima \hsize \advance\@tempdima-\@endindent \parshape \@ne \@endindent \@tempdima}\par \noindent \hbox to \z@{\hss\@theenmark\hspace{0.2em}}#1} \renewcommand\theendnote{\myendnotestyle{\arabic{endnote}}} \def\@makeenmark{\hbox{\@theenmark}}%正文中脚注标签与正文平齐 \iffalse \newcommand\myendnotestyle[1]{\ifcase#1 \or \ding{192}\or \ding{193}\or \ding{194}\or \ding{195}\or \ding{196}\or \ding{197}% \or \ding{198}\or \ding{199}\or \ding{200}\or \ding{201}\else *\fi\relax}%数字单纯带圈,正常数字 \fi \makeatother \begin{document} 夫释缚脱艰\endnote{释缚脱艰:解脱束缚和艰难。释,《说文》:“解也。”},全真导气\endnote{全真导气:保全真精,导引元气。},拯\endnote{拯:拯救。}黎元\endnote{黎元:与黎民义同。黎,即黎民。《书》尧典:“黎民于变时雍。”孔颖达疏:“黎,众也。”蔡传:“黎,黑也,黎民,黑发之人。”元,即元元。《国策》秦策:“子元元,臣诸候。”\\注:“元,善也。民之善类,故称元。” }于仁寿。 \theendnotes \end{document}

2 回答2

1
``` \documentclass[8pt,a4paper,oneside]{book} \usepackage{ctex} \usepackage{endnotes} \renewcommand{\notesname}{\textbf{【注释】 }} \makeatletter \newskip\@endindent \@endindent=1em \long\def\@makeentext#1{\@setpar{\@@par\@tempdima \hsize \advance\@tempdima-\@endindent \parshape \@ne \@endindent \@tempdima}\par \noindent \hbox to \z@{\hss\@theenmark\hspace{0.2em}}#1} \renewcommand\theendnote{\myendnotestyle{\arabic{endnote}}} \def\@makeenmark{\hbox{\textsuperscript{\@theenmark}}}%正文中脚注标签采取上标形式 \usepackage{pifont} \newcommand\myendnotestyle[1]{\ifcase#1 \or \ding{192}\or \ding{193}\or \ding{194}\or \ding{195}\or \ding{196}\or \ding{197}% \or \ding{198}\or \ding{199}\or \ding{200}\or \ding{201}\else *\fi\relax}%数字单纯带圈,正常数字 \makeatother \begin{document} 夫释缚脱艰\endnote{释缚脱艰:解脱束缚和艰难。释,《说文》:“解也。”},全真导气\endnote{全真导气:保全真精,导引元气。},拯\endnote{拯:拯救。}黎元\endnote{黎元:与黎民义同。黎,即黎民。《书》尧典:“黎民于变时雍。”孔颖达疏:“黎,众也。”蔡传:“黎,黑也,黎民,黑发之人。”元,即元元。《国策》秦策:“子元元,臣诸候。”\par 注:“元,善也。民之善类,故称元。” }于仁寿。 \theendnotes \end{document} ``` `endnote`这个计数器似乎有问题,`footnote`计数器可以直接重定义`\theendnote`,这个`\theendnote`重定义后计数会出问题 ![](https://pics.latexstudio.net/data/images/202004/0fd5be23f59e701.png)

作者追问:2020-04-12 14:50

弄了,但是数字序号没带圈怎么办,没有带圈的数字
  • 回复 undefined :第二个问题我做不到 – 合肥-Renascence_5.1 2020-04-13 15:50 回复
  • 回复 undefined :第一个注释是当前页面的页眉,如果要去掉,加上`\def\enoteheading{\section*{\notesname \@mkboth{\leftmark}{\r – 合肥-Renascence_5.1 2020-04-13 15:49 回复
  • good,还有怎么让正文数字在上方,而注释中的数字与文字平齐 – 只道当时 2020-04-13 13:50 回复
  • 谢了,但是第一个 【注释】 是怎么来的,怎么消除呀 – 只道当时 2020-04-13 13:39 回复
0
能用代码块把代码重新编辑一下吗……

作者追问:2020-04-12 16:01

代码块?啥意思,不懂

回答: 2020-04-12 16:18

网站提供的编辑器上的一个按钮,你这样把代码直接粘贴过来,复制的时候很容易丢失 `\`

作者追问:2020-04-12 16:42

```tex \documentclass[8pt,a4paper,oneside]{book} \usepackage{ctex} \usepackage{endnotes} \renewcommand{\notesname}{\textbf{【注释】 }} \makeatletter \newskip\@endindent \@endindent=1em \long\def\@makeentext#1{\@setpar{\@@par\@tempdima \hsize \advance\@tempdima-\@endindent \parshape \@ne \@endindent \@tempdima}\par \noindent \hbox to \z@{\hss\@theenmark\hspace{0.2em}}#1} \renewcommand\theendnote{\arabic{endnote}} \def\@makeenmark{\hbox{\textsuperscript{\@theenmark}}}%正文中脚注标签采取上标形式 \iffalse \newcommand[1]{\ifcase#1 \or \ding{192}\or \ding{193}\or \ding{194}\or \ding{195}\or \ding{196}\or \ding{197}% \or \ding{198}\or \ding{199}\or \ding{200}\or \ding{201}\else *\fi\relax}%数字单纯带圈,正常数字 \fi \makeatother \begin{document} 夫释缚脱艰\endnote{释缚脱艰:解脱束缚和艰难。释,《说文》:“解也。”},全真导气\endnote{全真导气:保全真精,导引元气。},拯\endnote{拯:拯救。}黎元\endnote{黎元:与黎民义同。黎,即黎民。《书》尧典:“黎民于变时雍。”孔颖达疏:“黎,众也。”蔡传:“黎,黑也,黎民,黑发之人。”元,即元元。《国策》秦策:“子元元,臣诸候。”\par 注:“元,善也。民之善类,故称元。” }于仁寿。 \theendnotes \end{document} ```

作者追问:2020-04-12 16:42

是这样吗

回答: 2020-04-12 21:40

是的。我问了另外一个人关于尾注怎么用带圈数字,他在 github 给了一种方法,见 https://github.com/muzimuzhi/latex-examples/issues/1

你的回答

请登录后回答

你的回答将会帮助更多人,请务必认真回答问题。