ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] changing the symbol used in \footnote{}
@ 2024-10-20 23:29 David Roderick
  2024-10-21  1:33 ` [NTG-context] " Rik Kabel
  0 siblings, 1 reply; 3+ messages in thread
From: David Roderick @ 2024-10-20 23:29 UTC (permalink / raw)
  To: ntg-context

I want to use the crucifix symbol as a footnote symbol on the title page of a book.  I don't want this to increment the footnote counter.  The best I can do is: 

\setupnotation[footnote][way=bypage, state=stop, number=†]

but this does not produce any symbol at all.

If I do:

\setupnotation[footnote][numberconversion=set 2]

then I get an asterix, not a crucifix, and I don't know how to prevent or otherwise reset the footnote counter for subsequent footnote numberings.
 
David Roderick.
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [NTG-context] Re: changing the symbol used in \footnote{}
  2024-10-20 23:29 [NTG-context] changing the symbol used in \footnote{} David Roderick
@ 2024-10-21  1:33 ` Rik Kabel
  2024-10-21  3:23   ` David Roderick
  0 siblings, 1 reply; 3+ messages in thread
From: Rik Kabel @ 2024-10-21  1:33 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 2235 bytes --]


On 2024-10-20 19:29, David Roderick wrote:
> I want to use the crucifix symbol as a footnote symbol on the title page of a book.  I don't want this to increment the footnote counter.  The best I can do is:
>
> \setupnotation[footnote][way=bypage, state=stop, number=†]
>
> but this does not produce any symbol at all.
>
> If I do:
>
> \setupnotation[footnote][numberconversion=set 2]
>
> then I get an asterix, not a crucifix, and I don't know how to prevent or otherwise reset the footnote counter for subsequent footnote numberings.
>   
> David Roderick.
>
The following (tested) shows how to do this. You define a separate 
series of footnotes (TitleFn below) with its own counter (TitleFnCount) 
that functions independently of the default footnote series. You also 
define the symbols you want to use for that series (TitleCS). (Note that 
the second argument for defineconversion should be a list, so [×] will 
not work, but [×,] will work. Color is shown for the second flag so that 
it stands out if you accidentally make a second TitleFn.)

You can also reset the counter, as shown in the last couple of lines.

    \setuppapersize   [A6]

    \defineconversion [TitleCS]
                       [†,{\color[red]{‽}}]
    \definecounter    [TitleFnCount]
                       [way=bytext]
    \definenotation   [TitleFn]
                       [footnote]
    \setupnotation    [footnote]
                       [numberconversion=set 2,
                        indenting={yes,small}]
    \setupnotation    [TitleFn]
    [numberconversion=TitleCS,
                        counter=TitleFnCount,
                        indenting={yes,small}]
    \starttext

    This  sentence has a title footnote.\TitleFn{Title}
    This sentence has a regular footnote.\footnote{Footnote}
    And this sentence has a regular footnote.\footnote{Footnote}
    This is a second sentence with a title footnote.\TitleFn{Title}

    \resetcounter[footnote]
    Reusing the first regular footnote counter.\footnote{Footnote}

    \stoptext

-- 
Rik

[-- Attachment #1.2: Type: text/html, Size: 3825 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [NTG-context] Re: changing the symbol used in \footnote{}
  2024-10-21  1:33 ` [NTG-context] " Rik Kabel
@ 2024-10-21  3:23   ` David Roderick
  0 siblings, 0 replies; 3+ messages in thread
From: David Roderick @ 2024-10-21  3:23 UTC (permalink / raw)
  To: ntg-context

Many thanks.  The following meets my needs:

\defineconversion [TitleCS]
                   [†,{\color[red]{‽}}]
\definecounter    [TitleFnCount]
                  [way=bypage]
\definenotation   [TitleFn]
                   [footnote]
\setupnotation    [TitleFn]
[numberconversion=TitleCS,
                    counter=TitleFnCount,
                    indenting={yes,small}]


It was superfluous to do     \setupnotation    [footnote]
                       [numberconversion=set 2,
                        indenting={yes,small}]
because this would have changed all the footnotes to the symbol set 2, whereas i require to keep them as numbered.

David
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-10-21  3:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-20 23:29 [NTG-context] changing the symbol used in \footnote{} David Roderick
2024-10-21  1:33 ` [NTG-context] " Rik Kabel
2024-10-21  3:23   ` David Roderick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).