# Setting margin for \thanks footnote

I can use

\setlength{\footnotemargin}{15pt}


to indent a footnote.

How do I indent \thanks the same way?

MWE:

    \documentclass[11pt]{article}

\usepackage{setspace} % Allows linespacing changes (see \onehalfspace)
\usepackage{xltxtra} % For OpenType fonts
\usepackage{titlesec} % For setting Section heading font
\usepackage{titling} % For setting Title font
\usepackage[hang, flushmargin]{footmisc} % For removing the stupid footnote indents
\usepackage{easylist} % For better list environments
\usepackage{enumitem} % An alternative list environment

\begin{document}
\title{Hello World}
\author{Author Name\thanks{Thanks to the dog!}}
\date{10 September 2013}
\setlength{\footnotemargin}{15pt}
\maketitle
\onehalfspace
\input{Text.tex}
\end{document}

• What about using \setlength{\leftskip}{3cm} before your \thanks command and \setlength{\leftskip}{0cm} after to reset everything nicely? – Ludovic C. Oct 1 '13 at 9:24
• This had no effect unfortunately. – Craig Oct 1 '13 at 9:27
• Can you provide us more information about your document (class, packages, etc.)? It wouldbe nice to have a MWE with what you already tried. – Ludovic C. Oct 1 '13 at 9:37
• MWE added, @LudovicC. – Craig Oct 2 '13 at 8:02
• There is no \footenotemargin length with standard LaTeX without any package (also \onehalfspace requires setspace, but it seems irrelevant for the example). – egreg Oct 2 '13 at 8:29

The problem is that \maketitle, by default, redefines the commands for typesetting the footnote. Here's a way for avoiding this redefinition:

\documentclass[11pt]{article}

\usepackage{fontspec} % For OpenType fonts
\usepackage[hang, flushmargin]{footmisc}

\usepackage{etoolbox} % modify commands and many other things
\makeatletter
%%% We don't want to redefine \@makefntext
\patchcmd\maketitle{\@makefntext}{\@@@ddt}{}{}
%%% We don't want to have \rlap around the footnote mark
\patchcmd\maketitle{\rlap}{\mbox}{}{}
\makeatother

%%%% hyperref should be last

%%%% lipsum just for the example
\usepackage{lipsum}

\begin{document}

\title{Hello World}
\author{Author Name\thanks{Thanks to the dog!}}
\date{10 September 2013}

\maketitle

A\footnote{xyz}\lipsum

\end{document}


I've removed the inessential packages. Notice that you should call fontspec rather than xltxtra. It used to be the other way around, but quite long ago and fontspec has been improved since.