1

I am using custom margins so I can include figures in the right margin and references in the footer. I would like the footer to span the linewidth of the text body and the margin.

Here is my minimal example:

\documentclass[10pt,letterpaper]{article}
\usepackage[left=36pt,right=233.28pt,top=2cm,bottom=2cm, marginparwidth=66mm]{geometry}
\usepackage{marginnote}
\usepackage{lipsum}  

\begin{document}

\section{A title goes here}

\lipsum[1-2]

\marginnote{\footnotesize An image goes here in the right margin.}

\lipsum[1-2]\footnote{A footnote goes here in the footer and should stretch right across the page to include the right margin.}

\end{document}

I have google for a \footnotewidth but haven't had any luck with that search.

thanks

3 Answers 3

1

enter image description here

\documentclass[10pt,letterpaper]{article}
\usepackage[left=36pt,right=233.28pt,top=2cm,bottom=2cm, marginparwidth=66mm]{geometry}
\usepackage{marginnote}
\usepackage{lipsum}  

\begin{document}

\section{A title goes here}

\lipsum[1-2]

\marginnote{\footnotesize An image goes here in the right margin.}

\lipsum[1-2]\footnote{\hsize=\dimexpr\columnwidth+\marginparsep+\marginparwidth\relax
A footnote goes here in the footer and should stretch right across the page to include the right margin.}

\end{document}
3
  • So using the tex primitive \hsize allows page breaking to go right? Interesting May 25, 2021 at 18:16
  • 1
    @VincentKuhlmann yes as does Seven's less conventional version with \rightskip May 25, 2021 at 18:18
  • Thanks! That works well.
    – Tyrone
    May 26, 2021 at 18:51
1

Here, I add a negative \rightskip inside each footnote. The actual value is -\marginparsep-\marginparwidth.

\documentclass[10pt,letterpaper]{article}
\usepackage[left=36pt,right=233.28pt,top=2cm,bottom=2cm, marginparwidth=66mm]{geometry}
\usepackage{marginnote}
\usepackage{lipsum}  
\let\svfootnote\footnote
\def\footnote#1{\svfootnote{\rightskip\dimexpr
  -\marginparsep-\marginparwidth #1}}
\begin{document}

\section{A title goes here}

\lipsum[1-2]

\marginnote{\footnotesize An image goes here in the right margin. Adding
i i i i more to test margination.  An image goes here in the right margin. 
Adding  more to test margination.  An image goes here in the right margin.
Adding more to test margination.  }

\lipsum[1]\footnote{A footnote goes here in the footer and should stretch right across the page to include the right margin.  Adding a bit more
to check the margination.}

\lipsum[2]\footnote{Testing another footnote.}

\end{document}

enter image description here

1
  • Thanks, this is a very efficient solution.
    – Tyrone
    May 26, 2021 at 18:51
0

You can use LaTeX boxes to claim more width. Note that I am using \rlap which sets the width of the box to 0. This is just to avoid the "overfull" box warning. It's a bit hacky, but hey, it's LaTeX.

\newcommand{\widefootnote}[1]{%
    \footnote{\rlap{\parbox{\dimexpr\paperwidth-72pt\relax}{#1}}}%
}

Output of answer code

Now use \widefootnote instead of \footnote. Alternatively you could do

\let\oldfootnote\footnote

\renewcommand{\footnote}[1]{%
    \oldfootnote{\rlap{\parbox{\dimexpr\paperwidth-72pt\relax}{#1}}}%
}

and use \footnote everywhere instead.

5
  • this will prevent the footnote breaking over the page (some people may consider that a benefit:-) May 25, 2021 at 18:03
  • @DavidCarlisle ah, that's right yes. It's all about exorbitant long footnotes here haha May 25, 2021 at 18:15
  • you would also want to use [t] otherwise (as shown in your image) the footnote number is weirdly placed May 25, 2021 at 18:16
  • @DavidCarlisle indeed. Forgot top-alignment was not default. I don't get why people are so crazy about center alignments May 25, 2021 at 18:17
  • 1
    Thanks, Vincent.
    – Tyrone
    May 26, 2021 at 18:52

You must log in to answer this question.

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