ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Rik Kabel <ConTeXt@rik.users.panix.com>
To: ntg-context@ntg.nl
Subject: [NTG-context] Re: changing the symbol used in \footnote{}
Date: Sun, 20 Oct 2024 21:33:40 -0400	[thread overview]
Message-ID: <cfcac371-8f8c-4e92-978e-6b836199ef89@rik.users.panix.com> (raw)
In-Reply-To: <172946694636.1601626.17045567471831090226@cgl.ntg.nl>


[-- 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
___________________________________________________________________________________

  reply	other threads:[~2024-10-21  1:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-20 23:29 [NTG-context] " David Roderick
2024-10-21  1:33 ` Rik Kabel [this message]
2024-10-21  3:23   ` [NTG-context] " David Roderick

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cfcac371-8f8c-4e92-978e-6b836199ef89@rik.users.panix.com \
    --to=context@rik.users.panix.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).