From: Zhichu Chen via ntg-context <ntg-context@ntg.nl>
To: ntg-context@ntg.nl
Cc: Zhichu Chen <chenzhichu@zjlab.org.cn>
Subject: Can I just put a footnote without marking in the main text?
Date: Wed, 18 May 2022 13:55:23 +0800 [thread overview]
Message-ID: <a172c45d-7787-09ed-e112-d01ee28e491d@zjlab.org.cn> (raw)
Hi everybody,
After some attempts to put footnotes in a mixed 1&2 columns layout, I
decide to put marks in the one-column environment and flush them when
entering the two-column environment.
The code is ugly but the result is acceptable. Except that the invisible
footnote marks do generate something in the main text, so there's a
blank line for each footnote.
Here's an MWE:
=============================================
\definenote[address]
\setupnote[address][rule=off,location=text]
\definenote[putjustmark]
\setupnote[putjustmark][location=none]
\setupnotation[putjustmark][numberconversion=set 2]
\definenote[putjustnote]%[footnote] % if footnotes need to be grouped,
uncomment the second argument and the line after \the\titlefootnotes
\setupnote[putjustnote][textcommand=\gobbleoneargument]
\setupnotation[putjustnote][numberconversion=set 2]
\newtoks\titlefootnotes
\def\thanks#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to
\titlefootnotes}
\def\email#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to
\titlefootnotes}
\appendtoks
\setcounter[footnote][0] % this looks stupid because it has no effect
%\setupnotation[footnote][numberconversion=numerals]
\to \titlefootnotes
\definenamespace
[addr]
[type=module,
name=address,
command=yes,
setup=list,
parent=addr,
]
\define[1]\useaddress
{\setnotetext[address][#1]{\namedaddressparameter{#1}{name}}}
\starttext
\defineaddress[fst][name={Name of Institute or Affiliation, City, Country}]
\defineaddress[snd][name={Name of Secondary Institute or Affiliation,
City, Country}]
\processcommacommand[fst,snd]\useaddress
The Title\thanks{Work supported by somebody.}
Me\email{myemail@some.where}\high{,}\note[address][fst]\high{,}\note[address][snd]
\placenotes[address]
\blank[medium]
\startcolumns
\the\titlefootnotes
%\setcounter[footnote][0] % why it's necessary to set the counter
outside the token if I define [putjustnote] as [footnote]?
test\footnote{test}
\input knuth
\stopcolumns
\stoptext
=============================================
___________________________________________________________________________________
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
___________________________________________________________________________________
next reply other threads:[~2022-05-18 5:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-18 5:55 Zhichu Chen via ntg-context [this message]
2022-05-18 7:35 ` mf via ntg-context
2022-05-18 8:07 ` Ross via ntg-context
[not found] ` <5379aa6c-246a-0dbb-b121-4839c0fabf2d@fastwebnet.it>
2022-05-18 8:56 ` Ross via ntg-context
2022-05-18 14:02 ` Ross via ntg-context
2022-05-18 14:40 ` Ross via ntg-context
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=a172c45d-7787-09ed-e112-d01ee28e491d@zjlab.org.cn \
--to=ntg-context@ntg.nl \
--cc=chenzhichu@zjlab.org.cn \
/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).