i am trying to write a paper using LyX instead of latex directly. i have to use the mnras (Monthly Notices of the Royal Astronomical Society) template. Since this template is not supported natively by Lyx, i followed the instructions in the website to add it as a new class. (How to install an unavailable document class for LyX on Mac).
so far i didn't have any problem, but now i am trying to add a footnote in the author part of the paper (to include my email) but it does not show. if i do that in a normal paragraph, the footnote appears and all work fine.
i assume the problem is how i added the class in LyX, but i don't know how to fix it. any suggestions?
PD: sorry for my bad english
thanks!
Edit: a code generated with lyx, the only footnote that i can see is the last one.
\documentclass[english]{mnras}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{babel}
\begin{document}
\title{Title\footnote{footnote1}}
\author{Author\thanks{footnote2}}
\maketitle
\author{author \thanks{footnote3}}
\begin{abstract}
Abstract
\end{abstract}
\section{Section 1}
\footnote{footnote4}
The rest
\end{document}
Edit2:
The star after the author name appears, but the footnote don't.
Best Answer
Well, I do not know class
mnras
and I do not have a documentation of it. You gave no link to the class, but I guess you mean this one?.If you have a look into the file
mnras.cls
you can find in the definition of command\maketitle
in the line 1058:\let\thanks\relax
. That means that this class does not allows command\thanks
in the title.The class you use is very restricted and I suggest to use a standard class, if you have not to submit an paper with that class.
Anyway, if you use this class you should take a look into the example file and follow the coments (saying: do not change this lines. That means too: Do not delete this lines).
The following MWE compiles with 4 warnings (two because the footnotes, two because the class has to be maintained):
I added the parts you have deleted (see markings
< =======
in the code) and tested a little bit. Theese tests showed me, that you are allowed to omit the abstract, but not the keywords. Comment the environmentkeywords
and recompile. The\thanks
footnotes disapear. And the class does not want footnotes in the title.The result of the MWE above is:
The class gives in the header the first and last line (see first red marking). Thats the reason why you are not allowed to delete/change the lines you did.
The other red markings shows the footnotes and their footnotemarks in text and title.
I suggest you call or contact the maintainer of this class or the journal asking you to use this class if you need to use it for your paper. Report the errors/problems you have and ask for a correction of the class ...