footnotes: conversion => numberconversion
![](https://secure.gravatar.com/avatar/c7accb2674fe5d6cb195dd221cb297b3.jpg?s=120&d=mm&r=g)
Hi Hans, since it took me a while to figure this out: could you please change the occurrences of "conversion" in strc-not.mkiv to "numberconversion"? conversion doesn't do anything, and it was a bit frustrating to see the very examples from the source were not working. Thanks, and best Thomas
![](https://secure.gravatar.com/avatar/c7accb2674fe5d6cb195dd221cb297b3.jpg?s=120&d=mm&r=g)
On Mon, 20 Jun 2011 08:38:34 +0200
"Thomas Schmitz"
Hi Hans,
since it took me a while to figure this out: could you please change the occurrences of "conversion" in strc-not.mkiv to "numberconversion"? conversion doesn't do anything, and it was a bit frustrating to see the very examples from the source were not working.
Thanks, and best
Thomas
Oh, and while I'm at it: this looks like a bug to me: \starttext This is just a test!{\setupfootnotes[numberconversion=set 2]\footnote{With a footnote attached.}} This is just a test!\footnote{With a footnote attached.} \stoptext The first note has * as a marker, the second is numbered "2," but it should be "1." All best Thomas
![](https://secure.gravatar.com/avatar/93131e1e6e2204bd13501390d768dbdc.jpg?s=120&d=mm&r=g)
Am 20.06.2011 um 08:42 schrieb Thomas Schmitz:
Oh, and while I'm at it: this looks like a bug to me:
\starttext
This is just a test!{\setupfootnotes[numberconversion=set 2]\footnote{With a footnote attached.}}
This is just a test!\footnote{With a footnote attached.}
\stoptext
The first note has * as a marker, the second is numbered "2," but it should be "1."
When you need a footnote with a different symbol then create a new one. Wolfgang
![](https://secure.gravatar.com/avatar/c7accb2674fe5d6cb195dd221cb297b3.jpg?s=120&d=mm&r=g)
On Mon, 20 Jun 2011 14:30:13 +0200
Wolfgang Schuster
Am 20.06.2011 um 08:42 schrieb Thomas Schmitz:
Oh, and while I'm at it: this looks like a bug to me:
\starttext
This is just a test!{\setupfootnotes[numberconversion=set 2]\footnote{With a footnote attached.}}
This is just a test!\footnote{With a footnote attached.}
\stoptext
The first note has * as a marker, the second is numbered "2," but it should be "1."
When you need a footnote with a different symbol then create a new one.
Wolfgang
How? I can only see the option of creating a whole new set of footnotes, which is not at all what I want: \definenote[Ack][numberconversion=set 2, rule=off] \setupfootnotes[rule=off] \starttext This is just a test!\Ack{With a footnote attached.} This is just a test!\footnote{With a footnote attached.} \stoptext How do I get rid of the vertical space between both sets? And how do I make sure that the notes are printed in the right order? Thomas
![](https://secure.gravatar.com/avatar/93131e1e6e2204bd13501390d768dbdc.jpg?s=120&d=mm&r=g)
Am 20.06.2011 um 14:56 schrieb Thomas Schmitz:
How? I can only see the option of creating a whole new set of footnotes, which is not at all what I want:
The following is the best i can do (to change the symbol each \MyNote you need a counter for it): \define[1]\MyNote {\bgroup \savenumber [footnote]% \resetnumber[footnote]% \setupnote[footnote][numberconversion=set 2]% \footnote{#1}% \restorenumber[footnote]% \egroup} \starttext This is just a test!\MyNote{With a footnote attached.} This is just a test!\footnote{With a footnote attached.} \stoptext Wolfgang
![](https://secure.gravatar.com/avatar/c7accb2674fe5d6cb195dd221cb297b3.jpg?s=120&d=mm&r=g)
On Mon, 20 Jun 2011 15:39:21 +0200
Wolfgang Schuster
Am 20.06.2011 um 14:56 schrieb Thomas Schmitz:
How? I can only see the option of creating a whole new set of footnotes, which is not at all what I want:
The following is the best i can do (to change the symbol each \MyNote you need a counter for it):
\define[1]\MyNote {\bgroup \savenumber [footnote]% \resetnumber[footnote]% \setupnote[footnote][numberconversion=set 2]% \footnote{#1}% \restorenumber[footnote]% \egroup}
\starttext
This is just a test!\MyNote{With a footnote attached.}
This is just a test!\footnote{With a footnote attached.}
\stoptext
Wolfgang
Thanks Wolfgang! This "starred" footnote is often used for acknowledgments etc. in articles, and it's always the first note, often appended to the title. So I come back to my first attempt: this does work, and unless one wants unusual symbols in the middle of ordinary footnotes, seems like the easiest solution: \setupfootnotes[rule=off] \starttext This is just a test!{\setupfootnotes[numberconversion=set 2]\footnote{With a footnote attached.}\resetnumber[footnote]} This is just a test!\footnote{With a footnote attached.} \stoptext Thomas
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
On 20-6-2011 4:01, Thomas Schmitz wrote:
On Mon, 20 Jun 2011 15:39:21 +0200 Wolfgang Schuster
wrote: Am 20.06.2011 um 14:56 schrieb Thomas Schmitz:
How? I can only see the option of creating a whole new set of footnotes, which is not at all what I want:
The following is the best i can do (to change the symbol each \MyNote you need a counter for it):
\define[1]\MyNote {\bgroup \savenumber [footnote]% \resetnumber[footnote]% \setupnote[footnote][numberconversion=set 2]% \footnote{#1}% \restorenumber[footnote]% \egroup}
\starttext
This is just a test!\MyNote{With a footnote attached.}
This is just a test!\footnote{With a footnote attached.}
\stoptext
Wolfgang
Thanks Wolfgang! This "starred" footnote is often used for acknowledgments etc. in articles, and it's always the first note, often appended to the title. So I come back to my first attempt: this does work, and unless one wants unusual symbols in the middle of ordinary footnotes, seems like the easiest solution:
\setupfootnotes[rule=off]
\starttext
This is just a test!{\setupfootnotes[numberconversion=set 2]\footnote{With a footnote attached.}\resetnumber[footnote]}
As we already can disable a number it's no big deal to add the option for an alternative symbol: \setupfootnotes[rule=off] \definenote[starrednote][footnote][numberconversion=set 2] \setupnote[footnote][symbol={$*$}] \starttext This is just a test!\footnote {Just a footnote (a).} This is just a test!\starrednote{Just a footnote (b).} This is just a test!\footnote[-]{Just a footnote (-).} This is just a test!\footnote[+]{Just a footnote (+).} This is just a test!\footnote {Just a footnote (c).} This is just a test!\starrednote{Just a footnote (d).} This is just a test!\footnote {Just a footnote (e).} \typefile{symbols-001.tex} \stoptext I'll put a beta on the ftp (as I needed to adapt some description related code and as usual I'll have made some typos so you depend on Wolfgang's checking. Wolfgang: we have a new key 'symbol' for enumerations and footnotes.) On the agenda is a merged flush of notes so that you can have a new instance and flush in the same order (I remember experimenting with it but probably never finished it). Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/93131e1e6e2204bd13501390d768dbdc.jpg?s=120&d=mm&r=g)
Am 20.06.2011 um 19:28 schrieb Hans Hagen:
I'll put a beta on the ftp (as I needed to adapt some description related code and as usual I'll have made some typos so you depend on Wolfgang's checking.
You mean like this :) -\def \enumerationsignalp{-} % 1 == enabled +\def \enumerationsignalp{+} % 1 == enabled -\def \enumerationsignalm{+} % 2 == disabled but symbol +\def \enumerationsignalm{-} % 2 == disabled but symbol
Wolfgang: we have a new key 'symbol' for enumerations and footnotes.)
Added! Wolfgang
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
On 20-6-2011 11:56, Wolfgang Schuster wrote:
Am 20.06.2011 um 19:28 schrieb Hans Hagen:
I'll put a beta on the ftp (as I needed to adapt some description related code and as usual I'll have made some typos so you depend on Wolfgang's checking.
You mean like this :)
-\def \enumerationsignalp{-} % 1 == enabled +\def \enumerationsignalp{+} % 1 == enabled -\def \enumerationsignalm{+} % 2 == disabled but symbol +\def \enumerationsignalm{-} % 2 == disabled but symbol
I now have this: \newconstant\enumerationnumberstate % 1 == enabled \def \enumerationsignalskip {-} % 0 == disabled \def \enumerationsignalsymbol{+} % 2 == disabled but symbol But it was worse (probably before you tested) as description was broken due to 0/1 swapping. (but this functionality is not yet in minmals anyway). Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Thomas Schmitz
-
Wolfgang Schuster