Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm currently using fixfoot.sty(along with footmisc.sty), and I'd like to use footnote symbols (rather than numbers). fixfootdoesn't seem equipped to deal with this out of the box; it uses the original footnote command for the first occurrence on each page, so that's delegated to footmisc, and works fine. However, each repeated occurrence uses a footnote mark that fixfoot has stored in a macro—and it simply stores a hard-coded numerical footnote mark. Now, I'm guessing that changing this shouldn't be too hard. I've been trying to redefine the \@fixed@footnotecommand (line 109 in v0.3a) in my own .styfile, which works fine in terms of overriding. But… I'm not \TeX-savvy enough to make it work.

I'm guessing the place to make the “repair” is in lines 147–148, where the mark is saved (the #1 argument is a “footnote tag”):

\expandafter\xdef\csname @#1@fftn@footnote\endcsname
                  {\the\c@footnote}%

I'm guessing I need to use of \fnsymbol along with the footnote counter here. That is, something like \@fnsymbol\c@footnote (which is what \thefootnote is redefined to in footmisc.sty, under the symbol option), rather than \the\c@footnote. However, I don't seem to grok \expandafter (or probably a bunch of other relevant stuff) enough, and keep getting weird errors no matter what I try.

Any pointers would be appreciated. (Even to alternate solutions to the problem of using “fixed footnotes” such as those in fixfoot, but with symbols, preferably together with footmisc or the like, for customization.)

share|improve this question
add comment

1 Answer 1

up vote 2 down vote accepted

You need to patch \@fixed@footnote at another place:

\documentclass{article}

\usepackage[symbol,perpage]{footmisc}
\usepackage{fixfoot}

\usepackage{etoolbox}% provides \patchcmd
\makeatletter
\patchcmd\@fixed@footnote
  {\protected@xdef\@thefnmark{\csname @#1@fftn@footnote\endcsname}}% search
  {\protected@xdef\@thefnmark{%
     \expandafter\@fnsymbol\csname @#1@fftn@footnote\endcsname}}% replace
  {}{}% success/failure
\makeatother

\DeclareFixedFootnote\fixed{This is a fixed footnote.}

\begin{document}

Some text with a fixed\fixed\ footnote. And again some text with the same\fixed\
note.

\end{document}

enter image description here

share|improve this answer
    
Excellent! (And … never heard of etoolbox or patchcmd before. Awesome!) –  Magnus Lie Hetland Aug 25 '12 at 11:27
    
Yes, etoolbox has a number of handy commands :) –  cgnieder Aug 25 '12 at 12:09
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.