我想要在文档中根据以下规范定制脚注:
- 脚注编号在正文中显示为上标
(如:foo
1 foo
2 foo
3 foo
4)
- 脚注编号作为脚注部分的正常数字出现
(喜欢:1. foot1 2. foot2 3. foot3 4.foot4
)
这是 MWE,我尝试了一下。我尝试使用 XePersian 包和 XeLaTeX 编写(英语/波斯语)文档。
\documentclass[12pt,oneside]{book}
\usepackage[extrafootnotefeatures]{xepersian}
\settextfont{B Nazanin}
% footnote customization code.
\makeatletter
\long\def\@makefntext#1{\parindent 1em
\noindent\hbox to 2em{}%
\llap{\@thefnmark.\,\,}#1}
\makeatother
\begin{document}
\chapter{مقدمه}
% command for 2 column footnotes (when XePersian
% package load with [extrafootnotefeatures], its
% possible using this command)
\twocolumnfootnotes
مدل
\RTLfootnote{
خلاصهای از واقعیت را مدل گویند.
}
مدل
\LTRfootnote{Simulation is the imitation of the operation of ...}
\end{document}
答案1
我找到了正确的答案这个问答网站,我应该在之前添加这两个命令begin{document}
:
\RTLfootmarkstyle{#1. }
\LTRfootmarkstyle{#1. }
最后
\documentclass[12pt,oneside]{book}
\usepackage[extrafootnotefeatures]{xepersian}
\settextfont{B Nazanin}
% footnote customization code.
\RTLfootmarkstyle{#1. }
\LTRfootmarkstyle{#1. }
\begin{document}
\chapter{مقدمه}
% command for 10 column footnotes (when XePersian
% package load with [extrafootnotefeatures], its
% possible using this command)
\tencolumnfootnotes
مدل
\RTLfootnote{
خلاصهای از واقعیت را مدل گویند.
}
مدل
\LTRfootnote{Simulation is the imitation of the operation of ...}
\end{document}
答案2
extrafootnotefeatures
以某种方式禁用脚注自定义代码。您可以使用dblfnote
包来获得两列脚注。
\documentclass[12pt,oneside]{book}
\usepackage{dblfnote}
\usepackage{xepersian}
\settextfont{B Nazanin}
% footnote customization code.
\makeatletter
\long\def\@makefntext#1{\parindent 1em
\noindent\hbox to 2em{}%
\llap{\@thefnmark.\,\,}#1}
\makeatother
\begin{document}
\chapter{مقدمه}
% command for 2 column footnotes (when XePersian
% package load with [extrafootnotefeatures], its
% possible using this command)
%\twocolumnfootnotes
مدل
\RTLfootnote{
خلاصهای از واقعیت را مدل گویند.
}
مدل
\LTRfootnote{Simulation is the imitation of the operation of ...}
\end{document}