ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aykut Aykutt <aykutaytis@gmail.com>
To: ntg-context@ntg.nl
Subject: Symbol Footnote Command
Date: Mon, 23 Dec 2019 16:21:30 +0300	[thread overview]
Message-ID: <CAJXLvmL32hX8hzFforMM=cp79FWQv9wvuzwmyXbz4npp1x-Xfw@mail.gmail.com> (raw)


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

Hi,

I can change the mark of the second footnote from "2" to asterix by
defining a conversion like so:

%-- Working example, but it is not what I need --
\setupindenting[yes,small]
\defineconversion[mymix][1,\m{*},2]
\setupnotation[footnote][align={hz,hanging},indenting={yes,small,next},numberconversion=mymix]

\startdocument
This is the first sentence with a footnote.\footnote{This is the first
footnote and its mark is "1".}
This is the second sentence with a footnote.\footnote{This is the second
footnote and its mark is "*". }
This is the third sentence with a footnote.\footnote{This is the third
footnote and its mark is "2". }
\stopdocument

Clearly this conversion repeats the marks "1", "*" and "2" repeatedly. Is
there a way to define a new/special footnote command (say, "\symfootnote")
which blends with normal footnotes, but prints footnotes with symbol marks
(say, Set 2) and not with numbers. In other words, is it possible to
achieve the same result as the working example above with something like
the (pseudo) example below?

%--  Pseudo example --

\setupindenting[yes,small]
\def\symfootenote ??????????
\setupnotation[symfootnote][align={hz,hanging},indenting={yes,small,next}]
\setupnotation[footnote][align={hz,hanging},indenting={yes,small,next}]

\startdocument
This is the first sentence with a footnote.\footnote{This is the first
footnote and its mark is "1".}
This is the second sentence with a footnote.\symfootnote{This is the second
footnote and its mark is "*". }
This is the third sentence with a footnote.\footnote{This is the third
footnote and its mark is "2". }
\stopdocument

Thank you.

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

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

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

             reply	other threads:[~2019-12-23 13:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-23 13:21 Aykut Aykutt [this message]
2019-12-23 14:12 ` Hans Hagen
2019-12-23 14:37   ` Aykut Aykutt

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='CAJXLvmL32hX8hzFforMM=cp79FWQv9wvuzwmyXbz4npp1x-Xfw@mail.gmail.com' \
    --to=aykutaytis@gmail.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).