Hello, the following example is copied from http://wiki.contextgarden.net/Command/setupfootnotes: ---- \defineconversion[starred][\starredconv] \def\starredconv#1{\ifcase#1\or*\or**\or***\fi} \setupfootnotes[conversion=starred,color=blue,frame=on] \starttext Charles IV\footnote{Best Czech king (14th cent.) and the winner of a \quote{best Czech person} poll.} \it Charles IV\footnote{Best Czech king (14th cent.) and the winner of a \quote{best Czech person} poll.} \tt Charles IV\footnote{Best Czech king (14th cent.) and the winner of a \quote{best Czech person} poll.} \stoptext ---- The problem is that - contrary to wiki - no conversion from numbers to stars is performed. Any fix needed? Or a new calling convention? TIA. Best regards, Lukas -- Ing. Lukáš Procházka [mailto:LPr@pontex.cz] Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038
Am 31.10.2012 um 16:16 schrieb Procházka Lukáš Ing. - Pontex s. r. o.
Hello,
the following example is copied from http://wiki.contextgarden.net/Command/setupfootnotes:
---- \defineconversion[starred][\starredconv] \def\starredconv#1{\ifcase#1\or*\or**\or***\fi}
\setupfootnotes[conversion=starred,color=blue,frame=on]
\starttext Charles IV\footnote{Best Czech king (14th cent.) and the winner of a \quote{best Czech person} poll.}
\it Charles IV\footnote{Best Czech king (14th cent.) and the winner of a \quote{best Czech person} poll.}
\tt Charles IV\footnote{Best Czech king (14th cent.) and the winner of a \quote{best Czech person} poll.} \stoptext ----
The problem is that - contrary to wiki - no conversion from numbers to stars is performed.
Any fix needed? Or a new calling convention?
\setupnotation[footnote][numberconversion=set 1] Wolfgang
On Wed, 31 Oct 2012 16:19:53 +0100, Wolfgang Schuster
\setupnotation[footnote][numberconversion=set 1]
Wolfgang
Thanks, it works. Question: "set 1" is a built-in number conversion? - If so, what are other built-in [number] conversion sets? - - Are they documented anywhere? Lukas -- Ing. Lukáš Procházka [mailto:LPr@pontex.cz] Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038
Am 31.10.2012 um 16:43 schrieb Procházka Lukáš Ing. - Pontex s. r. o.
On Wed, 31 Oct 2012 16:19:53 +0100, Wolfgang Schuster
wrote: \setupnotation[footnote][numberconversion=set 1]
Wolfgang
Thanks, it works.
Question: "set 1" is a built-in number conversion?
- If so, what are other built-in [number] conversion sets?
Predefined are “set 0” till “set 3”. \starttext \dorecurse {8}{\convertnumber{set 0}{#1}\quad}\par \dorecurse {9}{\convertnumber{set 1}{#1}\quad}\par \dorecurse{12}{\convertnumber{set 2}{#1}\quad}\par \dorecurse{15}{\convertnumber{set 3}{#1}\quad}\par \stoptext You can write your own symbol lists with (I use math mode because the spacing between the asterisks is better): \defineconversion[starred][\m{*},\m{**},\m{***}]
- - Are they documented anywhere?
You can look if you find something in the manuals or the wiki. Wolfgang
On Wed, 31 Oct 2012 17:17:06 +0100, Aditya Mahajan
On Wed, 31 Oct 2012, Wolfgang Schuster wrote:
You can look if you find something in the manuals or the wiki.
If not, then add the information to the wiki.
Aditya
I added some snippets to existing wiki-pages: http://wiki.contextgarden.net/Command/convertnumber http://wiki.contextgarden.net/Command/defineconversion Best regards, Lukas -- Ing. Lukáš Procházka [mailto:LPr@pontex.cz] Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038
participants (3)
-
Aditya Mahajan
-
Procházka Lukáš Ing. - Pontex s. r. o.
-
Wolfgang Schuster