LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

View:

 Message: [ First | Previous | Next | Last ] By Topic: [ First | Previous | Next | Last ] By Author: [ First | Previous | Next | Last ] Font: Proportional Font

Subject:

Re: footnote numbers

From:

Date:

Fri, 7 Feb 2003 12:33:13 -0700

Content-Type:

text/plain

Parts/Attachments:

 text/plain (72 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 \@[log in to unmask] 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 - -------------------------------------------------------------------------------