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


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

Thank you very much!

Hans Hagen <j.hagen@xs4all.nl>, 23 Ara 2019 Pzt, 17:12 tarihinde şunu yazdı:

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

[-- Attachment #1.2: Type: text/html, Size: 4389 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 14:37 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
2019-12-23 14:37   ` Aykut Aykutt [this message]

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='CAJXLvmKC7DV_yhb3yi+JZmzB=NK5kHWdY7Eyyh1VvKpZ6TSk5g@mail.gmail.com' \
    --to=aykutaytis@gmail.com \
    --cc=j.hagen@xs4all.nl \
    --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).