LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-29-2009, 05:11 PM   #1
lunarbof
LQ Newbie
 
Registered: Jul 2009
Posts: 3

Rep: Reputation: 0
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!
 
Old 07-30-2009, 12:19 AM   #2
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
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?
 
Old 07-31-2009, 06:57 AM   #3
lunarbof
LQ Newbie
 
Registered: Jul 2009
Posts: 3

Original Poster
Rep: Reputation: 0
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 !
 
Old 07-31-2009, 07:54 AM   #4
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
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}
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Change the font color of a label Jcooper Programming 0 08-30-2006 06:46 PM
How to change the label of a disk dtournas Red Hat 0 08-17-2004 08:02 AM
Change disk label sizes? hypodermic *BSD 5 03-12-2004 06:44 PM
Mplayer installation -- Footnote sher07 Linux - Software 2 01-20-2004 01:42 PM
I don't like the LILO label - How to change it? vijayaramanl Linux - Newbie 5 10-22-2003 06:00 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration