ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \thanks inside author in section
@ 2022-01-01 12:10 Youssef Cherem via ntg-context
  2022-01-01 12:32 ` Wolfgang Schuster via ntg-context
  0 siblings, 1 reply; 4+ messages in thread
From: Youssef Cherem via ntg-context @ 2022-01-01 12:10 UTC (permalink / raw)
  To: ntg-context; +Cc: Youssef Cherem


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

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 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=\SectionTocEntry,
 after=\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=\setup{section},
 align=center,
 number=no,
 style=\bold
]

\startsetups section
 \blank
 \midaligned{\it \structureuservariable{author}}
 \blank
\stopsetups

%\foonote{\structureuservariable{affiliation}}

%only "thanks" seems to work.
\definenote[thanks]%[numberconversion=set 2]
\setupnote[thanks][rule=off]
\setupnotation[thanks][numberconversion=set 2] % or set 1

%\setupnote[footnote][location=bottom] % does not work

%% all notes, footnotes etc.
\setupnotation[
 alternative={left,bottom},
 hang=fit, % if commented, hanging is larger
 indenting={yes,small},indentnext=yes, % please, indent everything, should
be default
]

\setupinteraction[state=start,color=black,contrastcolor=black]

\setuphead[subject][align=flushleft,style=\bfb]

\starttext

\subject{Grande lista de autores}

\placecontent[alternative=c]

\startsection[title={Whatever}][author={A. Uthor},subtitle={I’d like to
say}]
This is a section.
\stopsection

\startsection[title={Segunda seção}][author={Fulano de Tal},subtitle={Uma
segunda seção de teste}]
This is a section.
\stopsection

\startsection[title={Terceira seção}][author={Alberto de
Paiva\thanks{asdf}},subtitle={Uma terceira seção de teste}]
This is a section.
\stopsection

\startsection[title={Três autores}][author={Sicrano de
Tal\thanks{Universidade de Tangerinas} e Alberto
Steinenberg\thanks{Universidade de Nilfgaard}},
subtitle={Uma seção de teste com dois autores e comentário}]
This is a section.\footnote{Só de teste.}
\stopsection

\stoptext

[-- Attachment #1.2: Type: text/html, Size: 3581 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: \thanks inside author in section
  2022-01-01 12:10 \thanks inside author in section Youssef Cherem via ntg-context
@ 2022-01-01 12:32 ` Wolfgang Schuster via ntg-context
  2022-01-01 12:41   ` Youssef Cherem via ntg-context
  0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Schuster via ntg-context @ 2022-01-01 12:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Youssef Cherem via ntg-context
  Cc: Wolfgang Schuster

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 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?
> 
> [...]

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=\SectionTocEntry,
          after=\blank]

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

\setuphead
   [section]
   [ after=\directsetup{section},
     align=center,
    number=no,
     style=bold]

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

\setuphead
   [subject]
   [align=flushleft,
    style=\bfb]

\definenote[someothername]

\setupnote
   [someothername]
   [rule=off]

\setupnotation
   [someothername]
   [numberconversion=set 2]

\setupnotation
   [alternative=left,
           hang=fit,
      indenting={yes,small},
     indentnext=yes]

\setupinteraction
   [        state=start,
            color=,
    contrastcolor=]

\starttext

\subject{Grande lista de autores}

\placecontent[alternative=c]

\startsection[title={Whatever}][author={A. Uthor},subtitle={I’d like to 
say}]
This is a section.
\stopsection

\startsection[title={Segunda seção}][author={Fulano de 
Tal},subtitle={Uma segunda seção de teste}]
This is a section.
\stopsection

\startsection[title={Terceira seção}][author={Alberto de 
Paiva\someothername{asdf}},subtitle={Uma terceira seção de teste}]
This is a section.
\stopsection

\startsection[title={Três autores}][author={Sicrano de 
Tal\someothername{Universidade de Tangerinas} e Alberto 
Steinenberg\someothername{Universidade de Nilfgaard}},
subtitle={Uma seção de teste com dois autores e comentário}]
This is a section.\footnote{Só de teste.}
\stopsection

\stoptext

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: \thanks inside author in section
  2022-01-01 12:32 ` Wolfgang Schuster via ntg-context
@ 2022-01-01 12:41   ` Youssef Cherem via ntg-context
  0 siblings, 0 replies; 4+ messages in thread
From: Youssef Cherem via ntg-context @ 2022-01-01 12:41 UTC (permalink / raw)
  To: Wolfgang Schuster; +Cc: Youssef Cherem, mailing list for ConTeXt users


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

Wolfgang,

Thank you! Removing the auxiliary file solved the problem.

lør. 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 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?
> >
> > [...]
>
> 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=\SectionTocEntry,
>           after=\blank]
>
> \define[1]\SectionTocEntry
>    {\doifsomething{\rawstructurelistuservariable{author}}
>       {{\it\structurelistuservariable{author}} --\crlf}%
>     #1%
>     \doifsomething{\rawstructurelistuservariable{subtitle}}
>       {\crlf\structurelistuservariable{subtitle}}}
>
> \setuphead
>    [section]
>    [ after=\directsetup{section},
>      align=center,
>     number=no,
>      style=bold]
>
> \startsetups [section]
>      \blank
>      \midaligned{\it\structureuservariable{author}}
>      \blank
> \stopsetups
>
> \setuphead
>    [subject]
>    [align=flushleft,
>     style=\bfb]
>
> \definenote[someothername]
>
> \setupnote
>    [someothername]
>    [rule=off]
>
> \setupnotation
>    [someothername]
>    [numberconversion=set 2]
>
> \setupnotation
>    [alternative=left,
>            hang=fit,
>       indenting={yes,small},
>      indentnext=yes]
>
> \setupinteraction
>    [        state=start,
>             color=,
>     contrastcolor=]
>
> \starttext
>
> \subject{Grande lista de autores}
>
> \placecontent[alternative=c]
>
> \startsection[title={Whatever}][author={A. Uthor},subtitle={I’d like to
> say}]
> This is a section.
> \stopsection
>
> \startsection[title={Segunda seção}][author={Fulano de
> Tal},subtitle={Uma segunda seção de teste}]
> This is a section.
> \stopsection
>
> \startsection[title={Terceira seção}][author={Alberto de
> Paiva\someothername{asdf}},subtitle={Uma terceira seção de teste}]
> This is a section.
> \stopsection
>
> \startsection[title={Três autores}][author={Sicrano de
> Tal\someothername{Universidade de Tangerinas} e Alberto
> Steinenberg\someothername{Universidade de Nilfgaard}},
> subtitle={Uma seção de teste com dois autores e comentário}]
> This is a section.\footnote{Só de teste.}
> \stopsection
>
> \stoptext
>
> Wolfgang
>

[-- Attachment #1.2: Type: text/html, Size: 4383 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* \thanks inside author in section
       [not found] <CAPENqt0VSqYa35FtLWykoRb0XxPxY6gL-CAayBY8GrA5SvXtdA@mail.gmail.com>
@ 2021-12-29 10:34 ` Youssef Cherem via ntg-context
  0 siblings, 0 replies; 4+ messages in thread
From: Youssef Cherem via ntg-context @ 2021-12-29 10:34 UTC (permalink / raw)
  To: ntg-context; +Cc: Youssef Cherem


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

I've tried to implement a journal-like footnote with the authors'
affiliation for each section/chapter, by adapting things from the wiki here
<https://wiki.contextgarden.net/Table_of_Contents#Author_in_ToC> and here
<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 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=\SectionTocEntry,
 after=\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=\setup{section},
 align=center,
 number=no,
 style=\bold
]
    \startsetups section
 \blank
 \midaligned{\it \structureuservariable{author}}
 \blank\stopsetups
    %\foonote{\structureuservariable{affiliation}}
    \definenote[thanks]%[numberconversion=set
2]\setupnote[thanks][rule=off]\setupnotation[thanks][numberconversion=set
2] % or set 1
    %\setupnote[footnote][location=bottom] % does not work
    %% all notes, footnotes etc.\setupnotation[
 alternative={left,bottom},
 hang=fit, % if commented, hanging is larger
 indenting={yes,small},indentnext=yes, % please, indent everything,
should be default
]
    \setupinteraction[state=start,color=black,contrastcolor=black]
    \setuphead[subject][align=flushleft,style=\bfb]
    \starttext
    \subject{Grande lista de autores}
    \placecontent[alternative=c]
      \startsection[title={Whatever}][author={A. Uthor},subtitle={I’d
like to say}]
This is a section.\stopsection
    \startsection[title={Segunda seção}][author={Fulano de
Tal},subtitle={Uma segunda seção de teste}]
This is a section.\stopsection
    \startsection[title={Terceira seção}][author={Alberto de
Paiva\thanks{asdf}},subtitle={Uma terceira seção de teste}]
This is a section.\stopsection
    \startsection[title={Três autores}][author={Sicrano de
Tal\thanks{Universidade de Tangerinas} e Alberto
Steinenberg\thanks{Universidade de Nilfgaard}},
subtitle={Uma seção de teste com dois autores e comentário}]
This is a section.\footnote{Só de teste.}\stopsection
\stoptext

[-- Attachment #1.2: Type: text/html, Size: 18105 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-01-01 12:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-01 12:10 \thanks inside author in section Youssef Cherem via ntg-context
2022-01-01 12:32 ` Wolfgang Schuster via ntg-context
2022-01-01 12:41   ` Youssef Cherem via ntg-context
     [not found] <CAPENqt0VSqYa35FtLWykoRb0XxPxY6gL-CAayBY8GrA5SvXtdA@mail.gmail.com>
2021-12-29 10:34 ` Youssef Cherem via ntg-context

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