我的出版商要求我将脚注文本缩进 6 毫米(不包括前面的数字)。此外,脚注编号不能上标。部分解决方案源于这里,但是我无法控制脚注中的数字和文本之间的距离。 Footnotemargin 似乎是一个错误的想法。
简而言之我需要:
- 脚注文本缩进 6mm,相当于引文/段落缩进
- 脚注中的脚注编号未上标
- 脚注编号与左边距对齐
非常感谢您的帮助。
\documentclass[12pt,a4paper]{book}
\usepackage[latin1]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{makeidx}
\usepackage{graphicx}
\usepackage{geometry}
\usepackage[hang]{footmisc}
\usepackage{lipsum}
\usepackage{times}
\newcommand{\eightpt}{\fontsize{8.5}{10.2}\selectfont}
\renewcommand{\footnotesize}{\eightpt}
%Quotes need to be indented by 6mm on the left side. preceded and followed by half a blank line.
\usepackage[leftmargin = 6mm, rightmargin = 0mm, vskip = 17pt, indentfirst =false, font = eightpt]{quoting}
%Footnote not superscripted
\makeatletter
\newlength{\fnBreite}
\renewcommand{\@makefntext}[1]{%
\settowidth{\fnBreite}{\footnotesize\@thefnmark.i}
\protect\footnotesize\upshape%
\setlength{\@tempdima}{\columnwidth}\addtolength{\@tempdima}{-\fnBreite}%
\makebox[\fnBreite][l]{\@thefnmark.\phantom{}}%
\parbox[t]{\@tempdima}{\everypar{\hspace*{0pt}}\hspace*{0pt}\upshape#1}}
\makeatother
%spacing for footnote
\renewcommand{\footnotemargin}{6mm}
\begin{document}
\lipsum[1-2]
\begin{quoting}
This is a quote, 6mm identation on the left side.
\end{quoting}
\lipsum[1-1]
Text with footnote here\footnote{Footnote text with same identation as quotes, the number not superscripted and aligned with left margin.}
\lipsum[1-1]
答案1
在您的代码中替换
\settowidth{\fnBreite}{\footnotesize\@thefnmark.i}
和
\setlength{\fnBreite}{6mm}
第一个将长度设置fnBreite
为通常的脚注标记的宽度,这样标记和脚注文本之间就没有间隙。
第二个将长度设置为 6 毫米,这样标记就在 6 毫米的框中左对齐,我认为这就是您想要做的。
答案2
您不需要使用包footmisc
来获得您想要的结果。
您可以使用以下代码简单地重新定义脚注:
\renewcommand{\@makefntext}[1]{%
\setlength{\parindent}{0pt}%
\begin{list}{}{\setlength{\labelwidth}{6mm}% 1.5em <==================
\setlength{\leftmargin}{\labelwidth}%
\setlength{\labelsep}{3pt}%
\setlength{\itemsep}{0pt}%
\setlength{\parsep}{0pt}%
\setlength{\topsep}{0pt}%
\footnotesize}%
\item[\@thefnmark\hfil]#1% @makefnmark
\end{list}%
}
\makeatletter
请注意,您需要用和将此代码括在序言中\makeatother
。
使用以下 MWE(参见标有 的重要代码更改<======
)
\documentclass[12pt,a4paper]{book}
\usepackage[latin1]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{makeidx}
\usepackage{graphicx}
\usepackage{geometry}
%\usepackage[hang]{footmisc} % <========================================
\usepackage{lipsum}
\usepackage{times}
\newcommand{\eightpt}{\fontsize{8.5}{10.2}\selectfont}
\renewcommand{\footnotesize}{\eightpt}
%Quotes need to be indented by 6mm on the left side. preceded and followed by half a blank line.
\usepackage[%
leftmargin = 6mm, rightmargin = 0mm,
vskip = 17pt, indentfirst =false, font = eightpt
]{quoting}
\makeatletter % <=======================================================
\renewcommand{\@makefntext}[1]{%
\setlength{\parindent}{0pt}%
\begin{list}{}{\setlength{\labelwidth}{6mm}% 1.5em <==================
\setlength{\leftmargin}{\labelwidth}%
\setlength{\labelsep}{3pt}%
\setlength{\itemsep}{0pt}%
\setlength{\parsep}{0pt}%
\setlength{\topsep}{0pt}%
\footnotesize}%
\item[\@thefnmark\hfil]#1% @makefnmark
\end{list}%
}
\makeatother % <========================================================
\begin{document}
\lipsum[1-2]
\begin{quoting}
This is a quote, 6mm identation on the left side.
\end{quoting}
\lipsum[1-1]
Text with footnote here\footnote{Footnote
text with same identation as quotes, the number not superscripted
and aligned with left margin. Footnote text with same identation
as quotes, the number not superscripted and aligned with left
margin.}.
Text with footnote here\footnote{Footnote
text with same identation as quotes, the number not superscripted
and aligned with left margin. Footnote text with same identation
as quotes, the number not superscripted and aligned with left
margin.}.
\lipsum[1-1]
\end{document}
您将获得以下结果: