My general footnote layout is like this:
\documentclass{article}
\usepackage{lipsum}
\usepackage[hang]{footmisc} % the whole footnote text is indented
\setlength{\footnotemargin}{.5em} % push the footnote text half an em away from the footnote mark
\begin{document}
\null\vfill % just for this example
Text\footnote{\lipsum[2]}
\end{document}
But this is not how most typographic manuals will tell you to style the footnote markers. Based on such manuals, I want to achieve the following:
- The footnote marker in the text should be superscript lining figures (I'm not sure yet if I want them to be proportional or tabular -- I need to test and see).
- The footnote marker in the footnote should be full size old style tabular figures followed by a period and a space before the footnote text.
Now, I could achieve 1.
with this code:
\documentclass{article}
\usepackage{lipsum}
\usepackage[hang]{footmisc} % the whole footnote text is indented
\setlength{\footnotemargin}{.5em} % push the footnote text half an em away from the footnote mark
\usepackage{fontspec}
\setmainfont{EBGaramond}
\newfontfamily{\myfootnotemarkfont}{EBGaramond}[Numbers = Lining]
\usepackage{realscripts}
\renewcommand\footnotemarkfont{\myfootnotemarkfont} % Proportional lining numbers for footnote markers
\begin{document}
\null\vfill % just for this example
Text\footnote{\lipsum[2]}
\end{document}
But this won't bring me any closer to goal number 2.
I can change the footnote marker in the footnote with the code from this answer:
\documentclass{article}
\usepackage{lipsum}
\usepackage{fontspec}
\setmainfont{EBGaramond}
\newfontfamily{\myfootnotemarkfont}{EBGaramond}[Numbers = Lining]
\usepackage{realscripts}
\renewcommand\footnotemarkfont{\myfootnotemarkfont} % Proportional lining numbers for footnote markers
\usepackage{scrextend}
\deffootnote{1em}{0em}{\thefootnotemark.\enskip}
\begin{document}
\null\vfill % just for this example
Text\footnote{\lipsum[2]}
\end{document}
But this will just use the font from the body text, which has proportional rather than tabular old style figures, and I don't understand how to put the footnote marker at the margin other than specifying some arbitrary number like {1em}
that more or less looks right.
If there only was a package that would let you modify all these various aspects of the footnote layout ...
realscripts
,\newfontfamily{\myfootnotemarkfont}{EB Garamond}[Numbers=Lining]
and\renewcommand\footnotemarkfont{\myfootnotemarkfont}
serve no purpose, becauserealscripts
uses real superiors, which are already lining in EB Garamond. I suppose it would be possible for a font to offer several sets of superiors (lining and old style proportional, and lining and old style monospaced), but I haven’t seen it. Some fonts have old style (and only old style) superiors; they’re typographically acceptable if the designer has tucked in their ascending and descending parts a little.