From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/113909 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Youssef Cherem via ntg-context Newsgroups: gmane.comp.tex.context Subject: \thanks inside author in section Date: Wed, 29 Dec 2021 07:34:15 -0300 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0050527453601359300==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21530"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Youssef Cherem To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Dec 29 11:35:06 2021 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n2WIT-0005N3-7B for gctc-ntg-context-518@m.gmane-mx.org; Wed, 29 Dec 2021 11:35:05 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5B09B286DDE; Wed, 29 Dec 2021 11:34:35 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 91fq1NJ_lYV8; Wed, 29 Dec 2021 11:34:33 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 27B6428595A; Wed, 29 Dec 2021 11:34:33 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5E14528595A for ; Wed, 29 Dec 2021 11:34:31 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hbSg6sr_G2qe for ; Wed, 29 Dec 2021 11:34:30 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.219.173; helo=mail-yb1-f173.google.com; envelope-from=ycherem@gmail.com; receiver= Original-Received: from mail-yb1-f173.google.com (mail-yb1-f173.google.com [209.85.219.173]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id BD43D280F62 for ; Wed, 29 Dec 2021 11:34:29 +0100 (CET) Original-Received: by mail-yb1-f173.google.com with SMTP id 139so30149532ybd.3 for ; Wed, 29 Dec 2021 02:34:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=tLpa1YDAs5gyhTwtYfViTJ6j2hqL8AARUiM9Q0s/1KU=; b=d0eiV+Itd+aevOVVd9zpr/LmeuhvR4GI0cvAR/0wekSmOgOyJJh0arK/8J69ymjQjc 4p98Fmp2j4nEpf5r2OAa90lFiEE4NNfMqHiYaf9oUmfJVDJoYfMVmwVftakL4UCQTqj9 JFBNNAXAZj+syAosz++/I6LQUtgJaBmFzw9OnAskfxfJghL85fiYkAJXBxnEahuZ3oyE sjYFo01A3WgWpEIHHB8kCK/vVtvAVbR6mwHmsNuNZ5rQirmuBpDb97FuXNwDEFCLKSLp pJf80mMjols8DrR0XNYrFOaZJtI6m/aFZbtMBSGNkFOoOc7OGZf+FAvluSw9InYUwsol rySQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=tLpa1YDAs5gyhTwtYfViTJ6j2hqL8AARUiM9Q0s/1KU=; b=XtYUUlPk0LFMf+jqOUJPq9YT0T8P3wLT05V1YxjdQmuS8bgYYHh5s1AW1801HIuT7G BIs/X8pFf3uz9hd9eO48P64wgsoZVv26sSXgOgOYz8V6oaIgDoSPoO/CGxHd5YdlUUDO iHye6MfnbFMtLi/nOBaNTj3cOt3jieec9hDSU2lJ41ddOIBZNPjrjYt71UQsWyfzhcq1 z3xU2HyINGEnaWuVPWPcThW1kTLP9znn/Par+OjgYoXyPkk4hRP8QberWfxqpWvWYu0l n/ZD2J8qw++MmMSaSXOmYR7a9qcpLKPsqAuAgGrfUqCXtIbXhVO96qOtbFrBZZ5zeqPW iDxQ== X-Gm-Message-State: AOAM531186n6zcY1bwguUjoaS2176eJke8Dfw1gCF+neyytVGNdgruA4 7OJURxjY2y+xI8mhs8GiB7ra7oBSKAbGSdLQ/78QV3D7THM= X-Google-Smtp-Source: ABdhPJxECQn5tjpd6+9EdC75e0rg/kd3IVCiR1cCySFrgdv2VdgXaWWhPRRJXRn3J87HjuC4q1AeciEw49nOkdbCb40= X-Received: by 2002:a25:ad8a:: with SMTP id z10mr21195806ybi.414.1640774067754; Wed, 29 Dec 2021 02:34:27 -0800 (PST) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:113909 Archived-At: --===============0050527453601359300== Content-Type: multipart/alternative; boundary="000000000000771a1105d4467ba6" --000000000000771a1105d4467ba6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I've tried to implement a journal-like footnote with the authors' affiliation for each section/chapter, by adapting things from the wiki here and here . However, one thing that bugs me is that any note name I choose other than "thanks" does not work, and I have no clue why. Am I missing something, or is there a more elegant way to implement this? As an aside, I'd rather have the footnotes below the "thanks" notes. Is there any option that does this? \setuplist[section][ textcommand=3D\SectionTocEntry, after=3D\blank, ] \define[1]\SectionTocEntry{% \doifnot{\rawstructurelistuservariable{author}}{} {\start \it \structurelistuservariable{author}\stop\space-- \crlf}% #1% title \doifnot{\rawstructurelistuservariable{subtitle}}{} {\crlf\structurelistuservariable{subtitle}}} \setuphead[section][ after=3D\setup{section}, align=3Dcenter, number=3Dno, style=3D\bold ] \startsetups section \blank \midaligned{\it \structureuservariable{author}} \blank\stopsetups %\foonote{\structureuservariable{affiliation}} \definenote[thanks]%[numberconversion=3Dset 2]\setupnote[thanks][rule=3Doff]\setupnotation[thanks][numberconversion=3Ds= et 2] % or set 1 %\setupnote[footnote][location=3Dbottom] % does not work %% all notes, footnotes etc.\setupnotation[ alternative=3D{left,bottom}, hang=3Dfit, % if commented, hanging is larger indenting=3D{yes,small},indentnext=3Dyes, % please, indent everything, should be default ] \setupinteraction[state=3Dstart,color=3Dblack,contrastcolor=3Dblack] \setuphead[subject][align=3Dflushleft,style=3D\bfb] \starttext \subject{Grande lista de autores} \placecontent[alternative=3Dc] \startsection[title=3D{Whatever}][author=3D{A. Uthor},subtitle=3D{I= =E2=80=99d like to say}] This is a section.\stopsection \startsection[title=3D{Segunda se=C3=A7=C3=A3o}][author=3D{Fulano de Tal},subtitle=3D{Uma segunda se=C3=A7=C3=A3o de teste}] This is a section.\stopsection \startsection[title=3D{Terceira se=C3=A7=C3=A3o}][author=3D{Alberto de Paiva\thanks{asdf}},subtitle=3D{Uma terceira se=C3=A7=C3=A3o de teste}] This is a section.\stopsection \startsection[title=3D{Tr=C3=AAs autores}][author=3D{Sicrano de Tal\thanks{Universidade de Tangerinas} e Alberto Steinenberg\thanks{Universidade de Nilfgaard}}, subtitle=3D{Uma se=C3=A7=C3=A3o de teste com dois autores e coment=C3=A1rio= }] This is a section.\footnote{S=C3=B3 de teste.}\stopsection \stoptext --000000000000771a1105d4467ba6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable



I've tried to implement a journal-like footnote with the= authors' affiliation for each section/chapter, by adapting things from= the wiki=C2=A0here= =C2=A0and=C2=A0here. However, one thin= g that bugs me is that any note name I choose other than "thanks"= does not work, and I have no clue why. Am I missing something, or is there= a more elegant way to implement this?

As an aside, I'd rather have the footnotes below the "thanks= " notes. Is there any option that does this?

\set=
uplist[section][
 textcommand=3D\SectionTocEntry,
 after=3D\b=
lank,
]
   =20
\define[1]\Sect=
ionTocEntry{%
 \doifnot{\raws=
tructurelistuservariable{author}}{}
{\start \it  \struc=
turelistuservariable{author}\stop\space-- \crlf}%
 #1<=
span style=3D"margin:0px;padding:0px;border:0px;font-style:inherit;font-var=
iant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;f=
ont-family:inherit;vertical-align:baseline;box-sizing:inherit">% title
 \doifnot{\raws=
tructurelistuservariable{subtitle}}{}
{\crlf\structur=
elistuservariable{subtitle}}}
   =20
\setuphead<=
/span>[section][
 after=3D\s=
etup{section},
 align=3Dcenter,
 number=3Dno,
 style=3D\b=
old
]
   =20
\startsetup=
s section
 \blank
 \midaligne=
d{\i=
t \s=
tructureuservariable{author}}
 \blank
\stopsetups=

   =20
%\foonote{\=
structureuservariable{affiliation}}
   =20
\definenote=
[thanks]%[numberconversion=3Dset 2]
\setupnote<=
/span>[thanks][rule=3Doff]
\setupnotat=
ion[thanks][numberconversion=3Dset 2] % or set 1
   =20
%\setupnote=
[footnote][location=3Dbottom] % does not work
   =20
%% all note=
s, footnotes etc.
\setupnotat=
ion[
 alternative=3D{left,bottom},
 hang=3Dfit, % if commented, hanging is larger
 indenting=3D{yes,small},indentnext=3Dyes, % please, indent everything, should be defa=
ult
]
   =20
\setupinter=
action[state=3Dstart,color=3Dblack,contrastcolor=3Dblack]
   =20
\setuphead<=
/span>[subject][align=3Dflushleft,style=3D\bfb]
   =20
\starttext<=
/span>
   =20
\subject{Grande lista de autores}
   =20
\placeconte=
nt[alternative=3Dc]
     =20
\startsecti=
on[title=3D{Whatever}][author=3D{A. Uthor},subtitle=3D{I=E2=80=99d l=
ike to say}]
This is a section.
\stopsectio=
n
   =20
\startsecti=
on[title=3D{Segunda se=C3=A7=C3=A3o}][author=3D{Fulano de Tal},subti=
tle=3D{Uma segunda se=C3=A7=C3=A3o de teste}]
This is a section.
\stopsectio=
n
   =20
\startsecti=
on[title=3D{Terceira se=C3=A7=C3=A3o}][author=3D{Alberto de Paiva\thanks=
{asdf}},subtitle=3D{Uma terceira se=C3=A7=C3=A3o de teste}]
This is a section.
\stopsectio=
n
   =20
\startsecti=
on[title=3D{Tr=C3=AAs autores}][author=3D{Sicrano de Tal\thanks{Univers=
idade de Tangerinas} e Alberto Steinenberg\thanks{Universidade de Nilfgaard}},
subtitle=3D{Uma se=C3=A7=C3=A3o de teste com dois autores e coment=C3=A1rio=
}]
This is a section.\footnote{S=C3=B3 de teste.}
\stopsectio=
n

\stoptext
--000000000000771a1105d4467ba6-- --===============0050527453601359300== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============0050527453601359300==--