From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/113958 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Youssef Cherem via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: \thanks inside author in section Date: Sat, 1 Jan 2022 09:41:44 -0300 Message-ID: References: <2b562026-0d62-cf13-c056-f047c4078a7c@gmail.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6988177056712645694==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12542"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Youssef Cherem , mailing list for ConTeXt users To: Wolfgang Schuster Original-X-From: ntg-context-bounces@ntg.nl Sat Jan 01 13:42:27 2022 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 1n3diL-00030p-8i for gctc-ntg-context-518@m.gmane-mx.org; Sat, 01 Jan 2022 13:42:25 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 451E0289094; Sat, 1 Jan 2022 13:42:01 +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 Ph77MlXanOWP; Sat, 1 Jan 2022 13:41:59 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8947A285891; Sat, 1 Jan 2022 13:41:59 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D9760285891 for ; Sat, 1 Jan 2022 13:41:58 +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 GimNeSOQeTmo for ; Sat, 1 Jan 2022 13:41:57 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.219.177; helo=mail-yb1-f177.google.com; envelope-from=ycherem@gmail.com; receiver= Original-Received: from mail-yb1-f177.google.com (mail-yb1-f177.google.com [209.85.219.177]) (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 50FA3280282 for ; Sat, 1 Jan 2022 13:41:57 +0100 (CET) Original-Received: by mail-yb1-f177.google.com with SMTP id j83so67731095ybg.2 for ; Sat, 01 Jan 2022 04:41:57 -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 :cc; bh=x6OA4UwBzLg4twTM3Ts7XtUutUnyDSdOilq6kUSLssM=; b=UPr3G1bGS/uqOKPjUL4MK+ccr+dalTHtdvN0SIyOjGVdx6MzzbcB7iDy1K3JUgUGU5 KmV44p2LBpm1Abjd2X4lTRAiUdxme4FqdkNJUxlO7tSd9X1l+TOLSV+0op/j6+D9mb9o QY8RrDKlxiNuF8Yt1JeY3YTzKaUvDBL05zkhSMEz1C4RlPtv2X9A3Bl/rHg65Up6Q7yp CcTn7scWVG0l0aax2aN7+oHQHUPRenIhv+m7umAtBLpIbksKnwXUxqL6vS+EaKMOHMJW 1SJtrR/dVj6VmGzwFgqOq2LJpAfcXl5VME9YDcWtD7weEdri0fcWLY0txSYe15Qp86n7 tMMA== 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:cc; bh=x6OA4UwBzLg4twTM3Ts7XtUutUnyDSdOilq6kUSLssM=; b=SWzf8HzPdtCWEeh94EQvi81BOlE4RsT2C4RX1revxIGyBT7ZiS+EcjOtPnwFoVaTa6 EZuy/ViS+3dgK17WGVAhBLXGAelCnVZGpBHTuvvscKvu0X3FoY39JmC1MB6vj7mAI7b/ EiWzlEwirsm9xElNc+W66ROpcLhRIAUKBVEDBCOxsqHTOY5Tgp2QVQWmaRKZnmuUVOzr h1DZ8uEo5Hg4dgkwiSb3noIpRzhgM3kTsFUSE+XPhxxRlyjPgHcGuRsdH0HEZDPJOieg UqEzWfMhBFq3dfA/OHAALpnmSMMNiWdPZ6LjqSAL8iHqN11el7mUZbWqwvgALEE3/MY/ UErQ== X-Gm-Message-State: AOAM5302iYkbmxLpvu2SueD2yksvtU53lhH/7Ek8difVz9oSurpLTItP yJMRNe5sFwoHqI7Obcid/AexCydfQsgKIe7+A5Q= X-Google-Smtp-Source: ABdhPJzQQXrwj1b4sv687M643LfdPcw/rnXFIjjpHgo4WJMOgzDRPN4HtqRG2JOdnJzlm+pEovfub0fn+aw9JQmKzwA= X-Received: by 2002:a25:2e4b:: with SMTP id b11mr17978636ybn.391.1641040915994; Sat, 01 Jan 2022 04:41:55 -0800 (PST) In-Reply-To: <2b562026-0d62-cf13-c056-f047c4078a7c@gmail.com> 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:113958 Archived-At: --===============6988177056712645694== Content-Type: multipart/alternative; boundary="000000000000dc1bff05d4849cc3" --000000000000dc1bff05d4849cc3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Wolfgang, Thank you! Removing the auxiliary file solved the problem. l=C3=B8r. 1. jan. 2022 kl. 09:32 skrev Wolfgang Schuster < wolfgang.schuster.lists@gmail.com>: > Youssef Cherem via ntg-context schrieb am 01.01.2022 um 13:10: > > I've tried to implement a journal-like footnote with the authors' > > affiliation for each section/chapter, by adapting things from the wiki > > (https://wiki.contextgarden.net/Table_of_Contents#Author_in_ToC and > > https://wiki.contextgarden.net/LaTeX_Thanks). 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 mor= e > > 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? > > > > [...] > > Do you have a example where anything besides \thanks fails. I changed > \thanks to another commands in the example below and there was no > problem to do so. The only thing you *have* to do when you change the > command is to remove the auxiliary file (context --purge) because the > old (non existing) command is otherwise used in the next run which > results then in an error message. > > \setuplist > [section] > [textcommand=3D\SectionTocEntry, > after=3D\blank] > > \define[1]\SectionTocEntry > {\doifsomething{\rawstructurelistuservariable{author}} > {{\it\structurelistuservariable{author}} --\crlf}% > #1% > \doifsomething{\rawstructurelistuservariable{subtitle}} > {\crlf\structurelistuservariable{subtitle}}} > > \setuphead > [section] > [ after=3D\directsetup{section}, > align=3Dcenter, > number=3Dno, > style=3Dbold] > > \startsetups [section] > \blank > \midaligned{\it\structureuservariable{author}} > \blank > \stopsetups > > \setuphead > [subject] > [align=3Dflushleft, > style=3D\bfb] > > \definenote[someothername] > > \setupnote > [someothername] > [rule=3Doff] > > \setupnotation > [someothername] > [numberconversion=3Dset 2] > > \setupnotation > [alternative=3Dleft, > hang=3Dfit, > indenting=3D{yes,small}, > indentnext=3Dyes] > > \setupinteraction > [ state=3Dstart, > color=3D, > contrastcolor=3D] > > \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\someothername{asdf}},subtitle=3D{Uma terceira se=C3=A7=C3=A3o de te= ste}] > This is a section. > \stopsection > > \startsection[title=3D{Tr=C3=AAs autores}][author=3D{Sicrano de > Tal\someothername{Universidade de Tangerinas} e Alberto > Steinenberg\someothername{Universidade de Nilfgaard}}, > subtitle=3D{Uma se=C3=A7=C3=A3o de teste com dois autores e coment=C3=A1r= io}] > This is a section.\footnote{S=C3=B3 de teste.} > \stopsection > > \stoptext > > Wolfgang > --000000000000dc1bff05d4849cc3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Wolfgang,

Thank you! Removi= ng the auxiliary file solved the=C2=A0problem.=C2=A0
<= /div>
l= =C3=B8r. 1. jan. 2022 kl. 09:32 skrev Wolfgang Schuster <wolfgang.schuster.lists@gmail.com= >:
Youssef Ch= erem via ntg-context schrieb am 01.01.2022 um 13:10:
> I've tried to implement a journal-like footnote with the authors&#= 39;
> affiliation for each section/chapter, by adapting things from the wiki=
> (https://wiki.contextgarden.net/T= able_of_Contents#Author_in_ToC and
> https://wiki.contextgarden.net/LaTeX_Thanks). Ho= wever, one thing that
> bugs me is that any note name I choose other than "thanks" d= oes not
> work, and I have no clue why. Am I missing something, or is there a mo= re
> elegant way to implement this?
>
> As an aside, I'd rather have the footnotes below the "thanks&= quot; notes. Is
> there any option that does this?
>
> [...]

Do you have a example where anything besides \thanks fails. I changed
\thanks to another commands in the example below and there was no
problem to do so. The only thing you *have* to do when you change the
command is to remove the auxiliary file (context --purge) because the
old (non existing) command is otherwise used in the next run which
results then in an error message.

\setuplist
=C2=A0 =C2=A0[section]
=C2=A0 =C2=A0[textcommand=3D\SectionTocEntry,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 after=3D\blank]

\define[1]\SectionTocEntry
=C2=A0 =C2=A0{\doifsomething{\rawstructurelistuservariable{author}}
=C2=A0 =C2=A0 =C2=A0 {{\it\structurelistuservariable{author}} --\crlf}%
=C2=A0 =C2=A0 #1%
=C2=A0 =C2=A0 \doifsomething{\rawstructurelistuservariable{subtitle}}
=C2=A0 =C2=A0 =C2=A0 {\crlf\structurelistuservariable{subtitle}}}

\setuphead
=C2=A0 =C2=A0[section]
=C2=A0 =C2=A0[ after=3D\directsetup{section},
=C2=A0 =C2=A0 =C2=A0align=3Dcenter,
=C2=A0 =C2=A0 number=3Dno,
=C2=A0 =C2=A0 =C2=A0style=3Dbold]

\startsetups [section]
=C2=A0 =C2=A0 =C2=A0\blank
=C2=A0 =C2=A0 =C2=A0\midaligned{\it\structureuservariable{author}}
=C2=A0 =C2=A0 =C2=A0\blank
\stopsetups

\setuphead
=C2=A0 =C2=A0[subject]
=C2=A0 =C2=A0[align=3Dflushleft,
=C2=A0 =C2=A0 style=3D\bfb]

\definenote[someothername]

\setupnote
=C2=A0 =C2=A0[someothername]
=C2=A0 =C2=A0[rule=3Doff]

\setupnotation
=C2=A0 =C2=A0[someothername]
=C2=A0 =C2=A0[numberconversion=3Dset 2]

\setupnotation
=C2=A0 =C2=A0[alternative=3Dleft,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0hang=3Dfit,
=C2=A0 =C2=A0 =C2=A0 indenting=3D{yes,small},
=C2=A0 =C2=A0 =C2=A0indentnext=3Dyes]

\setupinteraction
=C2=A0 =C2=A0[=C2=A0 =C2=A0 =C2=A0 =C2=A0 state=3Dstart,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 color=3D,
=C2=A0 =C2=A0 contrastcolor=3D]

\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\someothername{asdf}},subtitle=3D{Uma terceira se=C3=A7=C3=A3o de test= e}]
This is a section.
\stopsection

\startsection[title=3D{Tr=C3=AAs autores}][author=3D{Sicrano de
Tal\someothername{Universidade de Tangerinas} e Alberto
Steinenberg\someothername{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

Wolfgang
--000000000000dc1bff05d4849cc3-- --===============6988177056712645694== 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== --===============6988177056712645694==--