[Tex/LaTex] Align footnote mark with text margin

footnoteshorizontal alignment

I have to clone a document, and the footnote mark shouldn't be indented, but aligned to the text body. I couldn't find an answer elsewhere. Any ideas? I'm using XeLaTeX.

The result should look like this:

textbody-textbody-textbody-textbody-textbody²
textbody-textbody-textbody-textbody-textbody-
textbody-textbody-textbody-textbody-textbody-

2 Footnote-Footnote-Footnote-Footnote-Footnote-
Footnote-Footnote-Footnote-Footnote-Footnote-
Footnote-Footnote-Footnote-Footnote-Footnote-

  1. The number of the footnote should have the same size as the footnote.
    This can be achieved with:

    \usepackage{scrextend}
    \deffootnote{1,2em}{1.6em}{\thefootnotemark.\enskip}  
    

    (from https://tex.stackexchange.com/a/19845/)

  2. The footnote text should be aligned with the text body.

Best Answer

EDIT: My first "solution" only worked by chance and for one-digit footnotes. Here's something more robust:

\documentclass{article}

\usepackage{scrextend}
\deffootnote[1.8em]{0pt}{1.6em}{\makebox[1.8em][l]{\thefootnotemark.}}

\textheight=400pt% just for the example

\usepackage{lipsum}

\begin{document}

Some text.\footnote{\lipsum*[1]}

\setcounter{footnote}{10}

\lipsum*[1]\footnote{\lipsum*[1]}

\end{document}

enter image description here

Related Question