ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <j.hagen@xs4all.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Aykut Aykutt <aykutaytis@gmail.com>
Subject: Re: Symbol Footnote Command
Date: Mon, 23 Dec 2019 15:12:32 +0100	[thread overview]
Message-ID: <afb70e89-c975-e4d0-5dc6-8bef7653e22f@xs4all.nl> (raw)
In-Reply-To: <CAJXLvmL32hX8hzFforMM=cp79FWQv9wvuzwmyXbz4npp1x-Xfw@mail.gmail.com>

On 12/23/2019 2:21 PM, Aykut Aykutt wrote:
> 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.
\setupindenting
   [yes,small]

\defineconversion
   [mymix]
   [a,b,c]

\definenotation
   [symfootnote]
   [footnote]
   [counter=]

\setupnotation
   [footnote]
   [align={hz,hanging},
    indenting={yes,small,next}]

\setupnotation
   [symfootnote]
   [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.\symfootnote{This is 
the second footnote and its mark is "a". }
     This is the third sentence with a footnote.\footnote{This is the 
third footnote and its mark is "2". }
     This is the second sentence with a footnote.\symfootnote{This is 
the fourth footnote and its mark is "b". }
\stopdocument


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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 14:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-23 13:21 Aykut Aykutt
2019-12-23 14:12 ` Hans Hagen [this message]
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=afb70e89-c975-e4d0-5dc6-8bef7653e22f@xs4all.nl \
    --to=j.hagen@xs4all.nl \
    --cc=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).