You could define a \customfootnotemark
in the same way as \customfootnote
:
\documentclass{article}
\usepackage[a6paper,landscape]{geometry}% making the image for the answer smaller
\newcommand\customfootnote[1]{%
\begingroup
\renewcommand\thefootnote{*}\footnote{#1}%
\addtocounter{footnote}{-1}%
\endgroup
}
\newcommand*{\customfootnotemark}{%
\begingroup
\renewcommand*{\thefootnote}{*}%
\footnotemark
\addtocounter{footnote}{-1}%
\endgroup
}
\begin{document}
% text from \lipsum[2], package `lipsum`
Nam dui ligula\customfootnote{Here is a custom footnote},
fringilla a, euismod sodales,
sollicitudin vel, wisi. Morbi auctor lorem non justo. Nam lacus
libero, pretium at, lobortis vitae, ultricies et, tellus. Donec
aliquet, tortor\customfootnotemark\ sed accumsan bibendum,
erat ligula aliquet magna,
vitae ornare odio metus a mi. Morbi ac orci et nisl hendrerit
mollis. Suspendisse\footnote{A conventional footnote} ut massa. Cras nec ante
Cum sociis natoque penatibus et magnis dis parturient montes,
nascetur ridiculus mus. Aliquam\customfootnotemark\ tincidunt urna.
Nulla ullamcorper vestibulum turpis. Pellent esque cursus luctus mauris.
\end{document}

Limitation: If \customfootnotemark
goes to a new page, it needs to be replaced by \customfootnote{...}
, if the footnote text should also appear on the new page.