I have a piece of complex code from Use same formatting for \thanks footnote as the one created by footmisc which makes sure that \thanks
doesn't place a star in the the title, only in the footnote itself, and that the \thanks
footnote has the same formatting as other footnotes in the text.
The other footnotes have a formatting created with KOMA script (I think I tweaked it from Footnote marker in text should be superscript lining figure, but footnote marker in the footnote should be full size old style figure).
Combined, it gives me this:
\documentclass{article}
\usepackage{lipsum}
\usepackage{fontspec}
\setmainfont{CMU Serif}[%
Numbers = {OldStyle, Proportional}]
\newfontfamily\footmarktextfont{CMU Serif}[% for footnote markers in the text
Numbers = {Lining, Proportional}]
\usepackage{scrextend} % KOMA script for footnote marks hung left of the margin
\newcommand*\footnotetextfrommargin{0em} % set distance for footnote text from the margin
\deffootnote{\footnotetextfrommargin}% use distance from above
{\parindent}% paragraph indent in footnotes
{\thefootnotemark.\space} % footnote marks followed by a period and space in footnote
\deffootnotemark{\footmarktextfont\textsuperscript{\thefootnotemark}} % use footmarktextfont for footnote markers in the text
\usepackage{xpatch}
\makeatletter
% 1. remove all redefinitions about footnotes done by \maketitle
% and add \titletrue
\renewcommand\maketitle{\par
\begingroup
\renewcommand\thefootnote{\@fnsymbol\c@footnote}%
\titletrue
\if@twocolumn
\ifnum \col@number=\@ne
\@maketitle
\else
\twocolumn[\@maketitle]%
\fi
\else
\newpage
\global\@topnum\z@ % Prevents figures from going at top of page.
\@maketitle
\fi
\thispagestyle{plain}\@thanks
\endgroup
\setcounter{footnote}{0}%
\global\let\thanks\relax
\global\let\maketitle\relax
\global\let\@maketitle\relax
\global\let\@thanks\@empty
\global\let\@author\@empty
\global\let\@date\@empty
\global\let\@title\@empty
\global\let\title\relax
\global\let\author\relax
\global\let\date\relax
\global\let\and\relax
}
% 2. define a conditional
\newif\iftitle
% 3. redefine \@makefnmark to print nothing when \titletrue
\xpretocmd{\@makefnmark}{\iftitle\else}{}{}
\xapptocmd{\@makefnmark}{\fi}{}{}
% 4. ensure \@makefntext has \titlefalse
% that's justified by the fact that \@makefnmark
% in \@makefntext is set in a box
\xpretocmd{\@makefntext}{\titlefalse}{}{}
\makeatother
\title{My paper on footnotes\thanks{\lipsum[4]}}
\begin{document}
\maketitle
A\footnote{\lipsum[11]}
\end{document}
The footnotes look like I want them, and the footnote mark for the numbered footnotes looks like I want. The problem is the footnote mark for the \thanks
footnote.
(1) There shouldn't be a period after the star.
(2) The star should look exactly like the symbol *
, which is high up on the line. In this case, however, it is a lowered star. This is either because the symbol used by the \thanks
command is placed inside a math environment with \ensuremath
(see e.g. this answer, but it doesn't say where this code snippet resides), or, as I've found in latex.ltx
(line 2255), the symbol is defined as \textasteriskcentered
. Either one will produce a lowered star (try \ensuremath{*}*\textasteriskcentered
and see).
So my question is, how can I remove the period after the star and also have a normal non-lowered star in the \thanks
footnote, without changing how other footnotes appear?