如何使脚注的*特定*部分左对齐?

如何使脚注的*特定*部分左对齐?

我读过很多关于使脚注左对齐的文章一般来说,但我还没有找到任何可以让我左对齐的东西特别的脚注的各个部分。

例如,我希望我的脚注如下所示:

1 This is justified text.  Note that there  is an indent  at the beginning  of the footnote
  which prevents  the  second  line  from  continuing  below  the  footnote number. The new
  paragraph contains a link and should look like this:
  Source: http://www.example.com/this-is-a-very-long-link-whichs-words-are-separated-by-
  hyphens-note-that-the-second-paragraph-contains-the-link-and-should-be-left-justified-
  like-this

答案1

插入一个新段落并使用以下方式设置段落\raggedright

在此处输入图片描述

\documentclass{article}

\usepackage[hyphens]{url}
%\usepackage{hyperref} % If you're using hyperref

\begin{document}

First\footnote{This is justified text.  Note that there  is an indent  at the beginning  of the footnote
  which prevents  the  second  line  from  continuing  below  the  footnote number. 
  This is justified text.  Note that there  is an indent  at the beginning  of the footnote
  which prevents  the  second  line  from  continuing  below  the  footnote number.}
Second\footnote{This is justified text.  Note that there  is an indent  at the beginning  of the footnote
  which prevents  the  second  line  from  continuing  below  the  footnote number. The new
  paragraph contains a link and should look like this:

  \raggedright
  Source: \url{http://www.example.com/this-is-a-very-long-link-which-words-are-separated-by-hyphens-note-that-the-second-paragraph-contains-the-link-and-should-be-left-justified-like-this}}
Third\footnote{This is justified text.  Note that there  is an indent  at the beginning  of the footnote
  which prevents  the  second  line  from  continuing  below  the  footnote number. 
  This is justified text.  Note that there  is an indent  at the beginning  of the footnote
  which prevents  the  second  line  from  continuing  below  the  footnote number.}

\end{document}

使用url允许正确对齐和格式化 URL。这适用于hyperref还。

相关内容