3

What I have at the moment:

\documentclass{article}
\usepackage{scrextend}
\deffootnote{2em}{0em}{\thefootnotemark\quad}
\begin{document}
    \footnote{Lorem Ipsum}\footnote[10]{Sequi quas cupiditate dolor voluptatibus ratione ipsam. Sit non dolor est esse harum error. Incidunt tempora voluptates harum velit eveniet consequatur. Aut id sunt repellat repellat omnis quibusdam provident totam.}\footnote[100]{Cumque porro sit est possimus beatae consequatur.}
\end{document}

enter image description here

I would like the number to be aligned to the left and not to the right. Something like this:

enter image description here

But I do not know how to do this with scrextend. With footmisc I could not find how to get non superscripted text for the number.

I know that there are quite a few questions about footnotes, their indentation and about non superscripted numbers in footnotes but I could not find a combination of them and couldn't work it out.

1

You could simply wrap it in a parbox. In this example you can adjust the 100 according to your maximum of needed footnotes (changes width). Probably you should turn it into 1000 to have a better separation of number and content.

footnotes

\documentclass{article}
\usepackage{scrextend}
\newlength\fnnumber
\newbox\fnbox
\setbox\fnbox=\hbox{100}
\setlength{\fnnumber}{\wd\fnbox}
\deffootnote{\fnnumber}{0em}{\parbox[t]{\fnnumber}{\raggedright\thefootnotemark}}
\begin{document}
    \footnote{Lorem Ipsum}\footnote[10]{Sequi quas cupiditate dolor voluptatibus ratione ipsam. Sit non dolor est esse harum error. Incidunt tempora voluptates harum velit eveniet consequatur. Aut id sunt repellat repellat omnis quibusdam provident totam.}\footnote[100]{Cumque porro sit est possimus beatae consequatur.}
\end{document}
  • Thanks, but with this code the number is placed a bit deeper than the text. Do you know why? – Georg May 25 '17 at 17:42
  • @Georg Does \deffootnote{2em}{0em}{\parbox[t]{\fnnumber}{\raggedright\thefootnotemark}} help (see the [t])? – TeXnician May 25 '17 at 17:47
  • Thanks now it works. One suggestion. Instead of 2em we should now use \fnnumber. – Georg May 25 '17 at 17:55
  • @Georg You're right, I changed it. – TeXnician May 25 '17 at 17:56
2

Set the maximum width of the footnote number at begin document and use a box with the specified alignment.

\documentclass{article}
\usepackage{scrextend}

\newlength\footnotenumberwidth
\AtBeginDocument{%
  \settowidth{\footnotenumberwidth}{\footnotesize 100 }%
}

\deffootnote[\footnotenumberwidth]{\footnotenumberwidth}{0pt}{%
  \makebox[\footnotenumberwidth][l]{\thefootnotemark}%
}

\begin{document}

\footnote{Lorem Ipsum}%
\footnote[10]{Sequi quas cupiditate dolor voluptatibus ratione ipsam.
  Sit non dolor est esse harum error. Incidunt tempora voluptates
  harum velit eveniet consequatur. Aut id sunt repellat repellat
  omnis quibusdam provident totam.}%
\footnote[200]{Cumque porro sit est possimus beatae consequatur.}

\end{document}

enter image description here

  • Thanks that also works perfectly. (The \makebox should get the Argument [l] instead of [r]) – Georg May 26 '17 at 6:52
  • @Georg Fixed; apparently I cannot stand that kind of alignment. ;-) – egreg May 26 '17 at 8:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.