我需要根据出版商的意愿稍微调整一下脚注的法语样式:在脚注中,数字应该在行上,没有缩进(并且向左对齐)。出于多种原因,我需要 babel-french。我尝试了几种解决方案,但都没有成功。在第一个 MWE(注释 1)中,文本中的结果很好,我几乎得到了我想要的脚注,只是脚注中的数字向右对齐。我尝试将它们放在一个小框中以纠正这个问题(注释 2),结果在脚注中是完美的,但随后小框显然也出现在正文中(我夸大了尺寸以清楚地显示发生了什么)!
这是第一个 MWE
\documentclass[a4paper,12pt,twoside,openright]{book}
\usepackage[body={10cm, 3cm}]{geometry}
\usepackage[french]{babel}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[splitrule, hang]{footmisc}
\setlength{\parindentFFN}{0.2cm}
\renewcommand{\dotFFN}{}
\renewcommand{\kernFFN}{\hspace{1 cm}}
\setcounter{footnote}{8}
\begin{document}
A lot of text to place footnotes\footnote{Note 1.}. A lot of text in order to place footnotes\footnote{Note 2.}.
\end{document}
\documentclass[a4paper,12pt,twoside,openright]{book}
\usepackage[body={10cm, 3cm}]{geometry}
\usepackage[french]{babel}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[splitrule]{footmisc}
\setlength{\parindentFFN}{1cm}
\renewcommand{\dotFFN}{}
\renewcommand{\kernFFN}{\hspace{1 cm}}
\renewcommand\thefootnote{\hbox to 1cm{\arabic{footnote}\hss}}
\setcounter{footnote}{8}
\begin{document}
A lot of text to place footnotes\footnote{Note 1.}. A lot of text in order to place footnotes\footnote{Note 2.}.
\end{document}
我不知道如何将第一个例子的正文和第二个例子的脚注放在一起。非常感谢。
答案1
重新定义命令\insertfootnotemarkFB
如下:
\makeatletter
\renewcommand\insertfootnotemarkFB
{\rule\z@\footnotesep
\makebox[\parindentFFN][l]{\@thefnmark}%
\dotFFN
\kernFFN
}
\makeatother
\documentclass[a4paper,12pt,twoside,openright]{book}
\usepackage[body={10cm, 3cm}]{geometry}
\usepackage[french]{babel}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[splitrule]{footmisc}
\renewcommand{\dotFFN}{}
\makeatletter
\renewcommand\insertfootnotemarkFB
{\rule\z@\footnotesep
\makebox[\parindentFFN][l]{\@thefnmark}%
\dotFFN
\kernFFN
}
\makeatother
\setcounter{footnote}{8}
\begin{document}
A lot of text to place footnotes\footnote{Note 1.}. A lot of text in
order to place footnotes\footnote{Note 2.}.
\end{document}
答案2
这是一个简单的解决方案,借助\insertfootnotemarkFB
以下方法进行修补xpatch
:
\documentclass[a4paper,12pt,twoside,openright,french]{book}
\usepackage[body={10cm, 3cm}, showframe]{geometry}
\usepackage{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[splitrule, hang]{footmisc}
\usepackage{xpatch}
\xpatchcmd{\insertfootnotemarkFB}{\llap}{\hbox to \FBfnindent}{}{}
\setlength{\parindentFFN}{0cm}
\renewcommand{\dotFFN}{}
\renewcommand{\kernFFN}{\kern 0.65em}
\setcounter{footnote}{8}
\begin{document}
A lot of text to place footnotes\footnote{Note 1.}. A lot of text in order to place footnotes\footnote{Note 2.}.
\end{document}