1

I have a relatively wide left margin at my document since there are several annotations there. I want now that any footnote starts below this margin and not with indent under the main text. Any help is appreciated.

3

I patched \@footnotetext to add a \leftskip.

\documentclass[a4paper]{article}
\usepackage{lipsum}
\usepackage{xpatch}
\makeatletter
\xpatchcmd{\@footnotetext}{\@parboxrestore}{\@parboxrestore\leftskip-1in}{}{}
\makeatother
\begin{document}
a\footnote{\lipsum*[3]}
\lipsum[1-5]
\end{document}

enter image description here

To additionally extend the footnote rule leftward, I patch \footnoterule, as well:

\documentclass[a4paper]{article}
\usepackage{lipsum}
\usepackage{xpatch}
\makeatletter
\xpatchcmd{\@footnotetext}{\@parboxrestore}{\@parboxrestore\leftskip-1in}{}{}
\xpatchcmd{\footnoterule}{\hrule}{\llap{\smash{\rule[-.4pt]{1in}{.4pt}}}\hrule}{}{}
\makeatother
\begin{document}
a\footnote{\lipsum*[3]}
\lipsum[1-5]
\end{document}

enter image description here

  • Would it be possible to adapt this to inner and outer margins rather than right and left margins? – Bryan M-H Oct 12 '18 at 0:20
  • @BryanM-H It would take a bit of work. Were you to try it, I would suggest turning my \leftskips into \rightskips to see if it gives what you want for the alternate page. Then the difficulty would be in figuring out whether you were on an even or odd page number, and choosing to proper sense of the skip, left or right. – Steven B. Segletes Oct 15 '18 at 19:03
  • I had gotten stuck drawing the footnoterule to the right; I don't understand what all the commands do: \documentclass[a4paper]{article} \usepackage{lipsum} \usepackage{xpatch} \makeatletter \xpatchcmd{\@footnotetext}{\@parboxrestore}{\@parboxrestore\rightskip-1in}{}{} \xpatchcmd{\footnoterule}{\hrule}{\hspace{5.5in} \llap{\smash{\rule[.4pt]{1in}{.4pt}}}\hrule}{}{} \makeatother \begin{document} a\footnote{\lipsum*[3]} \lipsum[1-5] \end{document} This left me with a rule on both right and left and I put it aside. – Bryan M-H Oct 16 '18 at 19:47
  • @BryanM-H Since the footnote rule is, as a rule, flush left, what exactly are you hoping to achieve for the look of a right-extending rule? Once you can formulate this more precisely, if I cannot help, consider asking it as a new question. – Steven B. Segletes Oct 17 '18 at 10:20
  • Sorry, @StevenB.Segletes; I wasn't thinking. After getting the text to the side I wanted, I started trying to`adjust' the footnote rule to the other side too... without pausing to realize it shouldn't be moved at all. – Bryan M-H Oct 17 '18 at 16:44

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.