LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Forum View

Use Proportional Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Nelson H. F. Beebe" <[log in to unmask]>
Reply To:
Mailing list for the LaTeX3 project <[log in to unmask]>
Date:
Fri, 7 Feb 2003 12:33:13 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (73 lines)
Richard Smyth <[log in to unmask]> asks on Fri, 7 Feb 2003 19:37:56 +0100:

>> ... journal that uses square brackets around the footnote numbers in
>> the text, but not in the footnotes themselves.

I don't know of an existing style that does this, but I found a
workable solution.

The fundamental problem is that the footnote design has always assumed
that the same marker is used at the point the footnote is referenced,
and at the point where it is given at the bottom of the page.

Typeset ltfloat.dtx (e.g., from

        ftp://ctan.tug.org/tex-archive/macros/latex/base/ltfloat.dtx

) for documentation on pp. 13ff of how footnotes work.

To get what you want, that critical assumption has to be overcome by
suitable rewriting of macros.

Run latex2e on this little test file to see my solution:

        \documentclass{article}

        \makeatletter
        \def\@makefnmark{\hbox{\Huge{FN: \normalfont\@thefnmark}}}
        \def\@makefnmarkinline{\hbox{[{\normalfont\@thefnmark}}]}

        \def\@footnotemark{%
          \leavevmode
          \ifhmode\edef\@x@sf{\the\spacefactor}\nobreak\fi
          \@makefnmarkinline
          \ifhmode\spacefactor\@x@sf\fi
          \relax}
        \makeatother

        \begin{document}

        This is a footnote\footnote{This is the first one.}
        and this is too.\footnote{This is the second one.}

        \end{document}

What I did here was to redefine \@footnotemark (from latex.ltx) to use
\@makefnmarkinline instead of the normal \@makefnmark.  I provided
silly definitions of both \@makefnmark and \@makefnmarkinline to make
them distinctive.

dvi2tty shows the result like this:

                    This is a footnote[1] and this is too.[2]

                 ____________________________

        FN:  1      This is the first one.

        FN:  2      This is the second one.

Of course, the stuff between \makeatletter and \makeatother should be
moved into a new .sty file with suitable documentation in comments,
and then you can replace that ugly block with a simple
\usepackage{funnyfootnotes}.

-------------------------------------------------------------------------------
- Nelson H. F. Beebe                    Tel: +1 801 581 5254                  -
- Center for Scientific Computing       FAX: +1 801 581 4148                  -
- University of Utah                    Internet e-mail: [log in to unmask]  -
- Department of Mathematics, 110 LCB        [log in to unmask]  [log in to unmask] -
- 155 S 1400 E RM 233                       [log in to unmask]                    -
- Salt Lake City, UT 84112-0090, USA    URL: http://www.math.utah.edu/~beebe  -
-------------------------------------------------------------------------------

ATOM RSS1 RSS2