4

I am using \footmisc to customize footnotes, but I just can't get the footnote marker where I want it to be(the one that appears at the bottom of the page; not the one in the text, to which I don't want to make any changes).

Let's say the default is:

____________
   1. Footnote text

What I would like to achieve is something of this sort (notice the space before and after the marker):

____________
  1.     Footnote text

But I can only get:

____________
1.     Footnote text

Basically, I can't/don't know how to set space before the footnote marker. The only thing I can indent is the footnote text itself.

Example of what I currently have (played around with other options, but so far this is the closest I've gotten):

\documentclass{article}
\usepackage[hang]{footmisc}
\setlength{\footnotemargin}{0.5in}
\renewcommand{\hangfootparindent}{0.195in}
\renewcommand{\hangfootparskip}{0\baselineskip}
\begin{document}
Something.\footnote{Here is a footnote.} Something else.\footnote{Lorem ipsum dolor sitamet, consectetur adipiscing elit. Morbi risus lacus, suscipit vehicula ullamcorper a, tempus consectetur felis.

I set up this indentation for subsequent paragraphs (I'm happy with it.)}
\end{document}

Any help would be appreciated.

4
  • 1
    And what option(s) are you using for footmisc? Please add to your question a simple complete document showing your current settings for footnotes. Commented May 12, 2013 at 4:29
  • 2
    Also, how should footnotes spanning more than one line behave? Where should the second line begin? Commented May 12, 2013 at 4:35
  • Thank you for replying, Gonzalo. I added an example of what I'm working with. Commented May 12, 2013 at 4:46
  • 1
    The minimal example is useful, but, in this case, it is also important to give some sense of what the correct layout needs to be. If a footnote contains more than one paragraph, how is the new paragraph set? Should the '\parskip' be zero or should there be whitespace instead? Are footnotes to be hang-ed just not flush with the left margin of the textblock?
    – jon
    Commented May 12, 2013 at 4:55

3 Answers 3

7

You can use the scrextend package:

\documentclass{article}
\usepackage{scrextend}
\deffootnote[.5in]{.5in}{.195in}{\makebox[.5in][r]{\thefootnotemark.\hspace{.2in}}}

\begin{document}

Something.\footnote{Here is a footnote.} Something else.\footnote{Lorem ipsum dolor
sitamet, consectetur adipiscing elit. Morbi risus lacus, suscipit vehicula ullamcorper a,
tempus consectetur felis.

I set up this indentation for subsequent paragraphs (I'm happy with it.)}
\end{document}

It should be clear on what dimensions you have to act for make this suit your taste.

enter image description here

6

A redefinition of \@makefntext will do the job (the modification is signaled %NEW in the example code below). The new length \margintomarker lets you control the distance from the margin to the footnote marker; the distance between the marker and the footnote text will be set using \footnotemargin:

\documentclass{article}
\usepackage[hang]{footmisc}
\usepackage{lipsum}% just for the example

\newlength\margintomarker
\setlength\margintomarker{10pt}
\setlength{\footnotemargin}{0.5in}
\renewcommand{\hangfootparindent}{0.695in}
\renewcommand{\hangfootparskip}{0\baselineskip}

\makeatletter
\long\def\@makefntext#1{%
\ifFN@hangfoot
\bgroup
\setbox\@tempboxa\hbox{%
\ifdim\footnotemargin>0pt
\hb@xt@\footnotemargin{\@makefnmark\hss}%
\else
\@makefnmark
\fi
}%
\leftmargin\wd\@tempboxa
\addtolength\leftmargin{\margintomarker}% NEW
\rightmargin\z@
\linewidth \columnwidth
\advance \linewidth -\leftmargin
\parshape \@ne \leftmargin \linewidth
\footnotesize
\@setpar{{\@@par}}%
\leavevmode
\llap{\box\@tempboxa}%
\parskip\hangfootparskip\relax
\parindent\hangfootparindent\relax
\else
\parindent1em
\noindent
\ifdim\footnotemargin>\z@
\hb@xt@ \footnotemargin{\hss\@makefnmark}%
\else
\ifdim\footnotemargin=\z@
\llap{\@makefnmark}%
\else
\llap{\hb@xt@ -\footnotemargin{\@makefnmark\hss}}%
\fi
\fi
\fi
\footnotelayout#1%
\ifFN@hangfoot
\par\egroup
\fi
}
\makeatother

\begin{document}

\null\vfill
\lipsum*[4]Test text\footnote{\lipsum[4]}

\end{document}

enter image description here

The \null\vfill commands were just to push the test text to the bottom of the page for the example; they can be safely deleted in your actual document.

4
  • 1
    It's easier with KOMA-Script or in the standard classes with the scrextend package: \deffootnote{0.695in}{15pt}{\textsuperscript{\thefootnotemark}\hspace{.5in}}
    – cgnieder
    Commented May 12, 2013 at 9:23
  • it would be good to show this with a second paragraph. (lipsum does paragraph manipulation that makes this not straightforward. but even with ordinary text, paragraphing results in too big an indent. i found \endgraf\quad to give more attractive results.) Commented May 12, 2013 at 13:43
  • Thank you Gonzalo. This is exactly what I needed! Now I have a new problem, though. I would like \thanks to have the same behavior. Is that possible? (Should I make it a new, separate question?) Commented May 12, 2013 at 15:36
  • Or any footnote before begin document, apparently (they do not conform to the redefinition of footnote...). Commented May 12, 2013 at 16:21
1

I just added this to my preamble when I faced the same problem:

% Space before footnote number (hb@xt@)
% Space between foonote number and text (parindent)
% Adjust to your liking the number before "em"
\makeatletter
\long\def\@makefntext#1{%
    \parindent 1em\noindent\hb@xt@ 4em{\hss\@makefnmark}~#1
}
\makeatother

This brief coding was enough to solve the problem.

6
  • Is it an answer... is it a question?
    – user31729
    Commented Sep 4, 2014 at 1:28
  • It is an answer
    – Nhaps
    Commented Sep 4, 2014 at 1:33
  • It's a little bit ... short ;-)
    – user31729
    Commented Sep 4, 2014 at 1:33
  • Moderators ask us to get to the point :)
    – Nhaps
    Commented Sep 4, 2014 at 1:35
  • Well, I am no moderator and I did not flag it, but I can not guarantee, that your answer will 'survive' ;-)
    – user31729
    Commented Sep 4, 2014 at 1:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .