ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* local footnotes and captions
@ 2022-06-16 10:43 Denis Maier via ntg-context
  2022-06-16 12:12 ` Hans Hagen via ntg-context
  2022-06-16 19:03 ` Henning Hraban Ramm via ntg-context
  0 siblings, 2 replies; 4+ messages in thread
From: Denis Maier via ntg-context @ 2022-06-16 10:43 UTC (permalink / raw)
  To: ntg-context; +Cc: denis.maier


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

Hi,
another experiment with footnotes in captions, this time local footnotes :

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setupcaptions[location=top]
\starttext
                \startlocalfootnotes
                \placetable
    % The caption
    {A breakfast table.\footnote{asdf}}
    % the table
    \placelegend
        {\starttable[|l|r|]
            \HL
            \VL Spam \footnote {lovely} \VL Bacon \footnote {wonderful} \VL\FR
            \VL Eggs \footnote {wonderful} \VL Spam \footnote {lovely} \VL\LR
            \HL
        \stoptable}
        % the footnotes
        {\placelocalfootnotes}
\stoplocalfootnotes
\stoptext
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Two observations :
1. the footnote numbering is a bit odd, shouldn't the footnote in the caption be numbered with 1?
2. The footnote in the caption is not included in the local footnotes. Why is that?

Denis


[-- Attachment #1.2: Type: text/html, Size: 4723 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: local footnotes and captions
  2022-06-16 10:43 local footnotes and captions Denis Maier via ntg-context
@ 2022-06-16 12:12 ` Hans Hagen via ntg-context
  2022-06-16 13:18   ` Denis Maier via ntg-context
  2022-06-16 19:03 ` Henning Hraban Ramm via ntg-context
  1 sibling, 1 reply; 4+ messages in thread
From: Hans Hagen via ntg-context @ 2022-06-16 12:12 UTC (permalink / raw)
  To: Denis Maier via ntg-context; +Cc: Hans Hagen

On 6/16/2022 12:43 PM, Denis Maier via ntg-context wrote:
> Hi,
> 
> another experiment with footnotes in captions, this time local footnotes :
> 
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> 
> \setupcaptions[location=top]
> 
> \starttext
> 
>                  \startlocalfootnotes
> 
>                  \placetable
> 
>      % The caption
> 
>      {A breakfast table.\footnote{asdf}}
> 
>      % the table
> 
>      \placelegend
> 
>          {\starttable[|l|r|]
> 
>              \HL
> 
>              \VL Spam \footnote {lovely} \VL Bacon \footnote {wonderful} 
> \VL\FR
> 
>              \VL Eggs \footnote {wonderful} \VL Spam \footnote {lovely} 
> \VL\LR
> 
>              \HL
> 
>          \stoptable}
> 
>          % the footnotes
> 
>          {\placelocalfootnotes}
> 
> \stoplocalfootnotes
> 
> \stoptext
> 
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> 
> Two observations :
> 
> 1. the footnote numbering is a bit odd, shouldn’t the footnote in the 
> caption be numbered with 1?
> 
> 2. The footnote in the caption is not included in the local footnotes. 
> Why is that?
\starttext

\startplacetable[title={A breakfast table.\footnote{asdf}}]
     \startlocalfootnotes
     \placelegend
         {\starttable[|l|r|]
             \HL
             \VL Spam \footnote {lovely}    \VL Bacon \footnote 
{wonderful} \VL\FR
             \VL Eggs \footnote {wonderful} \VL Spam  \footnote {lovely} 
    \VL\LR
             \HL
         \stoptable}
         {\placelocalfootnotes}
     \stoplocalfootnotes
\stopplacetable

\startlocalfootnotes
\footnotetext[asdf]{\footnote{asdf}}
\startplacetable[title={A breakfast table.\note[asdf]}]
     \placelegend
         {\starttable[|l|r|]
             \HL
             \VL Spam \footnote {lovely}    \VL Bacon \footnote 
{wonderful} \VL\FR
             \VL Eggs \footnote {wonderful} \VL Spam  \footnote {lovely} 
    \VL\LR
             \HL
         \stoptable}
         {\placelocalfootnotes}
\stopplacetable
\stoplocalfootnotes

\stoptext


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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: local footnotes and captions
  2022-06-16 12:12 ` Hans Hagen via ntg-context
@ 2022-06-16 13:18   ` Denis Maier via ntg-context
  0 siblings, 0 replies; 4+ messages in thread
From: Denis Maier via ntg-context @ 2022-06-16 13:18 UTC (permalink / raw)
  To: ntg-context; +Cc: denis.maier

I'm not quite I understand:
Are you saying I should leave the caption in "global scope"?

Regarding the second version: Shouldn't that be:
\startlocalfootnotes
\footnotetext[asdf]{asdf} % this
%\footnotetext[asdf]{\footnote{asdf}} % instead of this
\startplacetable[title={A breakfast table.\note[asdf]}]
     \placelegend
         {\starttable[|l|r|]
             \HL
             \VL Spam \footnote {lovely}    \VL Bacon \footnote 
{wonderful} \VL\FR
             \VL Eggs \footnote {wonderful} \VL Spam  \footnote {lovely} 
    \VL\LR
             \HL
         \stoptable}
         {\placelocalfootnotes}
\stopplacetable
\stoplocalfootnotes

?

Best,
Denis

> -----Ursprüngliche Nachricht-----
> Von: ntg-context <ntg-context-bounces@ntg.nl> Im Auftrag von Hans Hagen
> via ntg-context
> Gesendet: Donnerstag, 16. Juni 2022 14:13
> An: Denis Maier via ntg-context <ntg-context@ntg.nl>
> Cc: Hans Hagen <j.hagen@xs4all.nl>
> Betreff: Re: [NTG-context] local footnotes and captions
> 
> On 6/16/2022 12:43 PM, Denis Maier via ntg-context wrote:
> > Hi,
> >
> > another experiment with footnotes in captions, this time local footnotes :
> >
> > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> >
> > \setupcaptions[location=top]
> >
> > \starttext
> >
> >                  \startlocalfootnotes
> >
> >                  \placetable
> >
> >      % The caption
> >
> >      {A breakfast table.\footnote{asdf}}
> >
> >      % the table
> >
> >      \placelegend
> >
> >          {\starttable[|l|r|]
> >
> >              \HL
> >
> >              \VL Spam \footnote {lovely} \VL Bacon \footnote
> > {wonderful} \VL\FR
> >
> >              \VL Eggs \footnote {wonderful} \VL Spam \footnote
> > {lovely} \VL\LR
> >
> >              \HL
> >
> >          \stoptable}
> >
> >          % the footnotes
> >
> >          {\placelocalfootnotes}
> >
> > \stoplocalfootnotes
> >
> > \stoptext
> >
> > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> >
> > Two observations :
> >
> > 1. the footnote numbering is a bit odd, shouldn’t the footnote in the
> > caption be numbered with 1?
> >
> > 2. The footnote in the caption is not included in the local footnotes.
> > Why is that?
> \starttext
> 
> \startplacetable[title={A breakfast table.\footnote{asdf}}]
>      \startlocalfootnotes
>      \placelegend
>          {\starttable[|l|r|]
>              \HL
>              \VL Spam \footnote {lovely}    \VL Bacon \footnote
> {wonderful} \VL\FR
>              \VL Eggs \footnote {wonderful} \VL Spam  \footnote {lovely}
>     \VL\LR
>              \HL
>          \stoptable}
>          {\placelocalfootnotes}
>      \stoplocalfootnotes
> \stopplacetable
> 
> \startlocalfootnotes
> \footnotetext[asdf]{\footnote{asdf}}
> \startplacetable[title={A breakfast table.\note[asdf]}]
>      \placelegend
>          {\starttable[|l|r|]
>              \HL
>              \VL Spam \footnote {lovely}    \VL Bacon \footnote
> {wonderful} \VL\FR
>              \VL Eggs \footnote {wonderful} \VL Spam  \footnote {lovely}
>     \VL\LR
>              \HL
>          \stoptable}
>          {\placelocalfootnotes}
> \stopplacetable
> \stoplocalfootnotes
> 
> \stoptext
> 
> 
> -----------------------------------------------------------------
>                                            Hans Hagen | PRAGMA ADE
>                Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>         tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------
> ______________________________________________________________
> _____________________
> 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
> ______________________________________________________________
> _____________________
___________________________________________________________________________________
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: local footnotes and captions
  2022-06-16 10:43 local footnotes and captions Denis Maier via ntg-context
  2022-06-16 12:12 ` Hans Hagen via ntg-context
@ 2022-06-16 19:03 ` Henning Hraban Ramm via ntg-context
  1 sibling, 0 replies; 4+ messages in thread
From: Henning Hraban Ramm via ntg-context @ 2022-06-16 19:03 UTC (permalink / raw)
  To: ntg-context; +Cc: Henning Hraban Ramm

[-- Attachment #1: Type: text/plain, Size: 188 bytes --]

If I combine the examples from the different threads (see attachment) – 
local and postponed footnotes – the local footnotes get repeated in 
global scope after the postponing.

Hraban

[-- Attachment #2: footnote-local.tex --]
[-- Type: application/x-tex, Size: 2230 bytes --]

[-- Attachment #3: 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-06-16 19:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-16 10:43 local footnotes and captions Denis Maier via ntg-context
2022-06-16 12:12 ` Hans Hagen via ntg-context
2022-06-16 13:18   ` Denis Maier via ntg-context
2022-06-16 19:03 ` Henning Hraban Ramm 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).