如何对齐长脚注?

如何对齐长脚注?

在附图中,我将两个 URL 放入一个脚注中。第二个 URL 与第一个 URL 不对齐。有什么方法可以做到这一点吗?

梅威瑟:

\documentclass[12pt,a4paper,notitlepage,oneside]{report}

\usepackage{url}
\usepackage{hyperref}
\begin{document}

We also implemented few relevant density-based\footnote{\url{https://msu.edu/dingyaoh/WebpageofGUI/FusionTool.htm},\\ \url{http://www.lx.it.pt/mtf/mixturecode.zip}} and classification-based\footnote{\url{http://www.ti3.tu-harburg.de/rump/intlab/}} methods to perform a robust comparative analysis.

\end{document}

答案1

手动修复跳过。但也等待更好的答案:

\documentclass[12pt,a4paper,notitlepage,oneside]{report}

\usepackage{url}
\usepackage{hyperref}
\begin{document}

We also implemented few relevant density-based\footnote{\setlength\parindent{18pt}\url{https://msu.edu/dingyaoh/WebpageofGUI/FusionTool.htm},\par \url{http://www.lx.it.pt/mtf/mixturecode.zip}} and classification-based\footnote{\url{http://www.ti3.tu-harburg.de/rump/intlab/}} methods to perform a robust comparative analysis.

Test

\end{document}

在此处输入图片描述

从这里开始的第二种方式:脚注缩进

\documentclass[12pt,a4paper,notitlepage,oneside]{report}
\usepackage{url}
\usepackage{hyperref}

\makeatletter
\renewcommand\@makefntext[1]{%
  \noindent\makebox[10pt][r]{\@makefnmark}#1}
\makeatother

\begin{document}


We also implemented few relevant density-based\footnote{\setlength\parindent{10pt}\url{https://msu.edu/dingyaoh/WebpageofGUI/FusionTool.htm},\par \url{http://www.lx.it.pt/mtf/mixturecode.zip}} and classification-based\footnote{\url{http://www.ti3.tu-harburg.de/rump/intlab/}} methods to perform a robust comparative analysis.

Test


\end{document}

在此处输入图片描述

答案2

要排版脚注中的 URL,最好按照\urldef软件包用户指南第 2 部分中提到的方法操作url。顺便说一句,我不明白为什么脚注 1 中的两个 URL 应该彼此对齐。

在此处输入图片描述

\documentclass[12pt,a4paper,notitlepage,oneside]{report}
\setlength\textheight{3cm}  % just for this example
\usepackage[hyphens]{url}
\urldef{\urlA}\url{https://msu.edu/dingyaoh/WebpageofGUI/FusionTool.htm}
\urldef{\urlB}\url{http://www.lx.it.pt/mtf/mixturecode.zip}
\urldef{\urlC}\url{http://www.ti3.tu-harburg.de/rump/intlab/}
\usepackage[colorlinks,urlcolor=blue]{hyperref}

\begin{document}
We also implemented a few relevant density-based\footnote{See \urlA\ and \urlB} 
and classification-based\footnote{\urlC} methods to perform 
a robust comparative analysis.
\end{document}

相关内容