LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Unable to change footnote label in Latex (https://www.linuxquestions.org/questions/programming-9/unable-to-change-footnote-label-in-latex-743776/)

lunarbof 07-29-2009 05:11 PM

Unable to change footnote label in Latex
 
Hi,

I am using the command
\renewcommand{\thefootnote}{\arabic{footnote}}
in the preamble of my latex document.

However, the resulting pdf shows footnote numbered with letters.

The document type is seminar (for a slide show) and uses the following packages:
\documentclass[a4,landscape]{seminar}
\usepackage[latin1]{inputenc}
\usepackage[cyr]{aeguill}
\usepackage[francais]{babel}
\usepackage{fancybox}
\usepackage{slidesec}
\usepackage{url}
\usepackage{color}
\usepackage{fancyhdr}
\usepackage{theorem}

Any ideas where the problem might be ?

Thanks a lot!

neonsignal 07-30-2009 12:19 AM

I can't see a problem in the selected parts you have shown here.

Here is a working file that has numeric footnotes:
Code:

\documentclass[english]{article}
\usepackage{times}
\usepackage{babel}
\begin{document}
\renewcommand{\thefootnote}{\arabic{footnote}}
Here is a footnote.\footnote{example footnote}
\end{document}

In your file, is there something before the renewcommand that is causing it to be missed (though then I would expect the default to be numeric)? Or is there another renewcommand that is overriding it?

lunarbof 07-31-2009 06:57 AM

Thanks for your input neonsignal.

I tested your file and it does work properly. In fact, no need to use the renew command in the article env.

I was in the process of sending a complete file where it does not work (which is what I should have done in the first place):

\documentclass[a4,landscape]{seminar}
\begin{document}
\renewcommand{\thefootnote}{\arabic{footnote}}
\begin{slide}
Test\footnote{Here is a footnote}.
\end{slide}
\end{document}


Then, I figured out that by moving the renewcommand inside each \begin{slide}, the problem was fixed. So I did a little redefinition to avoid having to use a renewcommand for each slide:

\documentclass[a4,landscape]{seminar}
\begin{document}
\newcommand{\myslide}[1]
{
\begin{slide}
\renewcommand{\thefootnote}{\arabic{footnote}}
#1
\end{slide}
}
\myslide{Test\footnote{Here is a footnote}.}
\end{document}

This seems to work correctly... I guess what we can learn from that is that the \begin{slide} construct sets the footnote labeling to letter each time it is called.

Thanks again !

neonsignal 07-31-2009 07:54 AM

You are correct, seminar.sty defines the footnote in a slide as 'alpha'.

So it can be redefined like this:

Code:

\documentclass[a4,landscape,english]{seminar}
\usepackage{babel}
\begin{document}
\renewcommand{\theslidefootnote}{\arabic{footnote}}
\begin{slide}
Test\footnote{Here is a footnote}.
\end{slide}
\end{document}



All times are GMT -5. The time now is 09:33 PM.