![脚注缩进问题](https://linux22.com/image/296755/%E8%84%9A%E6%B3%A8%E7%BC%A9%E8%BF%9B%E9%97%AE%E9%A2%98.png)
我已经检查了整个论坛以寻找该问题的解决方案。
问题:我在 LaTeX 模板中添加了一些脚注。除此以外,所有脚注均能正常工作。它显示如下
这是最小的工作示例。
\documentclass{fcs}
\usepackage{bm}
\volumn{ }
\doi{ }
\articletype{REVIEW~ARTICLE}
\copynote{{\copyright} Higher Education Press and Springer-Verlag Berlin Heidelberg 2012}
\ratime{Received month dd, yyyy; accepted month dd, yyyy}
\email{$\times\times\times\times@\times\times\times.\times\times\times$}
%% Title
\title{$\bm{Frontiers~ of~ Computer~ Science}$\\[2mm] Instruction for authors}
%% Authors
\author{Firstname LASTNAME \xff $^{1,2}$}
%% Addresses of authors
\address{{1\quad Higher Education Press, Beijing 100029, China}\\
{2\quad Acadcmic Journal Division, Beijing 100029, China}}
%% Running head
\markboth{Front. Comput. Sci.}{Firstname LASTNAME: please insert running head here}
\begin{document}
\maketitle
\setcounter{page}{1}
\setlength{\baselineskip}{14pt}
\begin{abstract}
A short abstract of up to 300 words written in one paragraph
\end{abstract}
\Keywords{Up to 8 words separated by commas.}
\section{Introduction}
\noindent Frontiers of Computer Science is an international
peer-reviewed academic journal sponsored by the Ministry of
Education of China. The journal is jointly published by Higher
Education Press of China and Springer on a bimonthly basis in
English. Online versions are available through both
http://www.springerlink.com/content/11704 and
http://journal.hep.com.cn/fcs.
% here is my line
For instance, \textit{@ActionID}\footnote{http://bits.netbeans.org/dev/javadoc/org- openide-awt/org/openide/awt/ActionID.html, verified 24-07-14} taken from the NetBeans FAQ\footnote{http://wiki.netbeans.org/DevFaqActionAddJavaPackage,verified 24-07-14} deals with the retention (how long annotations are to be retained in a system) and target of a code.
\end{document}
可以清楚地看到,第一个脚注显示不正确,而第二个脚注几乎完美。
答案1
问题来自于双列模式:该url
命令可以在特定字符处剪切地址(主要是\
,但该hyphens
选项允许连字符。
您可以使用文档中定义的宏,该宏允许您使用感叹号来表示允许的换行符。但是,如果将 url 样式设置为same
(与文档的主罗马字体相同),则这不是必需的。
因此这里有一个解决方案:
\documentclass{fcs}
\usepackage{bm}
\usepackage[hyphens, allowmove]{url} %
\makeatletter \g@addto@macro\UrlSpecials{\do\!{\newline}}\makeatother
\urlstyle{same}
\volumn{ }
\doi{ }
\articletype{REVIEW~ARTICLE}
\copynote{{\copyright} Higher Education Press and Springer-Verlag Berlin Heidelberg 2012}
\ratime{Received month dd, yyyy; accepted month dd, yyyy}
\email{$\times\times\times\times@\times\times\times.\times\times\times$}
%% Title
\title{$\bm{Frontiers~ of~ Computer~ Science}$\\[2mm] Instruction for authors}
%% Authors
\author{Firstname LASTNAME \xff $^{1,2}$}
%% Addresses of authors
\address{{1\quad Higher Education Press, Beijing 100029, China}\\
{2\quad Academic Journal Division, Beijing 100029, China}}
%% Running head
\markboth{Front. Comput. Sci.}{Firstname LASTNAME: please insert running head here}
\begin{document}
\maketitle
\setcounter{page}{1}
\setlength{\baselineskip}{14pt}
\begin{abstract}
A short abstract of up to 300 words written in one paragraph
\end{abstract}
\Keywords{Up to 8 words separated by commas.}
\section{Introduction}
\noindent Frontiers of Computer Science is an international
peer-reviewed academic journal sponsored by the Ministry of
Education of China. The journal is jointly published by Higher
Education Press of China and Springer on a bimonthly basis in
English. Online versions are available through both
http://www.springerlink.com/content/11704 and
http://journal.hep.com.cn/fcs.
% here is my line\url{http://bits.netbeans.org/dev/javadoc/org- openide-awt/org/openide/awt/ActionID.html}
For instance, \textit{@ActionID}\footnote{\url{http://bits.netbeans.org/dev/javadoc/org-openide-awt/org/openide/awt/ActionID.html}, verified 24-07-14} taken from the NetBeans FAQ\footnote{\url{http://wiki.netbeans.org/DevFaqActionAddJavaPackage}, verified 24-07-14} deals with the retention (how long annotations are to be retained in a system) and target of a code.
\end{document}
答案2
正如 Barbara Benton 在她的评论中提到的,只需使用 url 包。它(使用 article 文档类 - 我不熟悉 fcd)给出了预期的结果。
我的 MWE:
\documentclass{article}
\usepackage{url}
\begin{document}
\section{Introduction}
Frontiers of Computer Science is an international peer-reviewed academic journal sponsored by the Ministry of Education of China. The journal is jointly published by Higher Education Press of China and Springer on a bimonthly basis in English. Online versions are available through both
\url{http://www.springerlink.com/content/11704} and
\url{http://journal.hep.com.cn/fcs}.
% here is my line
For instance, \textit{@ActionID}%
\footnote{\url{http://bits.netbeans.org/dev/javadoc/org-openide-awt/org/openide/awt/ActionID.html},
verified 24-07-14} taken from the NetBeans FAQ%
\footnote{\url{http://wiki.netbeans.org/DevFaqActionAddJavaPackage}, verified 24-07-14}
deals with the retention (how long annotations are to be retained in a system) and target of a code.
\end{document}