ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Footnotes lost in description terms
@ 2006-05-05 20:48 nico
  2006-05-06  7:51 ` Hans Hagen
  0 siblings, 1 reply; 7+ messages in thread
From: nico @ 2006-05-05 20:48 UTC (permalink / raw)


Hello,

When some footnotes are put in description terms, their number appears in  
the terms but their text don't appear at the bottom of the page. Is it a  
known limitation?

Here is an example:

\definedescription[descr][
   headstyle=bold,style=normal,align=left,location=hanging,
   width=broad,margin=1cm]

\setupwhitespace[medium]

\starttext

Here is a footnote\footnote{In a simple paragraph}.

\startdescr{This\footnote{A footnote} term contains\footnote{Another one} a
footnote}
This is a shorter item label, and some text\footnote{What about this?}  
that talks about it.
The text is wrapped into a paragraph, with successive lines indented.
\stopdescr

\startdescr{This\footnote{More footnotes} term contains\footnote{Another  
again} a
footnote}
This is a shorter item label, and some text that talks about it.
The text is wrapped into a paragraph, with successive lines indented.
\stopdescr

Here is a footnote\footnote{After the descriptions}.

\stoptext

Regards,
BG

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

* Re: Footnotes lost in description terms
  2006-05-05 20:48 Footnotes lost in description terms nico
@ 2006-05-06  7:51 ` Hans Hagen
  2006-05-06 22:37   ` nico
  0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2006-05-06  7:51 UTC (permalink / raw)


nico wrote:
> Hello,
>
> When some footnotes are put in description terms, their number appears in  
> the terms but their text don't appear at the bottom of the page. Is it a  
> known limitation?
>   
of boxed stuff, indeed, so we need to postpone and flush ....

\def\@@makedescription#1%  in core-des.tex
  {\postponefootnotes % added, we assume grouped usage
   \def\currentdescription{#1}%
   \executeifdefined
     {@@description\descriptionparameter\c!location}
     {\getvalue{@@description\v!left}}}


this gives me 7 footnotes

> Here is an example:
>
> \definedescription[descr][
>    headstyle=bold,style=normal,align=left,location=hanging,
>    width=broad,margin=1cm]
>
> \setupwhitespace[medium]
>
> \starttext
>
> Here is a footnote\footnote{In a simple paragraph}.
>
> \startdescr{This\footnote{A footnote} term contains\footnote{Another one} a
> footnote}
> This is a shorter item label, and some text\footnote{What about this?}  
> that talks about it.
> The text is wrapped into a paragraph, with successive lines indented.
> \stopdescr
>
> \startdescr{This\footnote{More footnotes} term contains\footnote{Another  
> again} a
> footnote}
> This is a shorter item label, and some text that talks about it.
> The text is wrapped into a paragraph, with successive lines indented.
> \stopdescr
>
> Here is a footnote\footnote{After the descriptions}.
>
> \stoptext
>
> Regards,
> BG
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>   


-- 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

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

* Re: Footnotes lost in description terms
  2006-05-06  7:51 ` Hans Hagen
@ 2006-05-06 22:37   ` nico
  2006-05-07 17:52     ` Hans Hagen
  0 siblings, 1 reply; 7+ messages in thread
From: nico @ 2006-05-06 22:37 UTC (permalink / raw)


On Sat, 06 May 2006 09:51:38 +0200, Hans Hagen <pragma@wxs.nl> wrote:

> nico wrote:
>> Hello,
>>
>> When some footnotes are put in description terms, their number appears  
>> in
>> the terms but their text don't appear at the bottom of the page. Is it a
>> known limitation?
>>
> of boxed stuff, indeed, so we need to postpone and flush ....

Thanks, it works fine.

But as a side effect (not introduced by the patch) it seems that putting  
footnotes in a term sets a fixed width to this term: in the example the  
term wraps, even if I set width=broad in the description definition. If  
the term does not contain a footnote, it is not wrapped.

Regards,
BG

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

* Re: Footnotes lost in description terms
  2006-05-06 22:37   ` nico
@ 2006-05-07 17:52     ` Hans Hagen
  2006-05-07 18:16       ` nico
  0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2006-05-07 17:52 UTC (permalink / raw)


nico wrote:
> On Sat, 06 May 2006 09:51:38 +0200, Hans Hagen <pragma@wxs.nl> wrote:
>
>   
>> nico wrote:
>>     
>>> Hello,
>>>
>>> When some footnotes are put in description terms, their number appears  
>>> in
>>> the terms but their text don't appear at the bottom of the page. Is it a
>>> known limitation?
>>>
>>>       
>> of boxed stuff, indeed, so we need to postpone and flush ....
>>     
>
> Thanks, it works fine.
>
> But as a side effect (not introduced by the patch) it seems that putting  
> footnotes in a term sets a fixed width to this term: in the example the  
> term wraps, even if I set width=broad in the description definition. If  
> the term does not contain a footnote, it is not wrapped.
>   
send me a test file showing both 

Hans 
-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

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

* Re: Footnotes lost in description terms
  2006-05-07 17:52     ` Hans Hagen
@ 2006-05-07 18:16       ` nico
  2006-05-07 23:28         ` Hans Hagen
  0 siblings, 1 reply; 7+ messages in thread
From: nico @ 2006-05-07 18:16 UTC (permalink / raw)


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

On Sun, 07 May 2006 19:52:23 +0200, Hans Hagen <pragma@wxs.nl> wrote:

>> Thanks, it works fine.
>>
>> But as a side effect (not introduced by the patch) it seems that putting
>> footnotes in a term sets a fixed width to this term: in the example the
>> term wraps, even if I set width=broad in the description definition. If
>> the term does not contain a footnote, it is not wrapped.
>>
> send me a test file showing both

Here it is. The first and third description terms containing footnotes are  
wrapped. The second term does not contain footnote and is not wrapped  
(it's the file committed in contexttest).

Regards,
BG

[-- Attachment #2: test-002.tex --]
[-- Type: application/x-tex, Size: 1200 bytes --]

[-- Attachment #3: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

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

* Re: Footnotes lost in description terms
  2006-05-07 18:16       ` nico
@ 2006-05-07 23:28         ` Hans Hagen
  2006-05-08 10:52           ` nico
  0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2006-05-07 23:28 UTC (permalink / raw)


nico wrote:
> On Sun, 07 May 2006 19:52:23 +0200, Hans Hagen <pragma@wxs.nl> wrote:
>
>>> Thanks, it works fine.
>>>
>>> But as a side effect (not introduced by the patch) it seems that 
>>> putting
>>> footnotes in a term sets a fixed width to this term: in the example the
>>> term wraps, even if I set width=broad in the description definition. If
>>> the term does not contain a footnote, it is not wrapped.
>>>
>> send me a test file showing both
>
> Here it is. The first and third description terms containing footnotes 
> are wrapped. The second term does not contain footnote and is not 
> wrapped (it's the file committed in contexttest).

it took me quitea while to find out that it's in the the description 
preroll which meant that the calculated width was too small and 
therefore the real thing wrapped

\long\def\nododonote#1#2%
  {\doifnot{#1}{-}
     {\ifconditional\pagewisenotes
        \doifreferencefoundelse{\s!fnt:t:\internalfootreference}
          {\ifnum\currentrealreference>\lastnotepage\relax
             \globallet\lastnotepage\currentrealreference
             \resetnumber[\currentnote]%
           \fi}
          {}%
      \fi
      \incrementnumber[\currentnote]%
      \makesectionnumber[\currentnote]%
      \let\lastnotenumber\composedsectionnumber
      \dolastnotesymbol
      \decrementnumber[\currentnote]}}



-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

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

* Re: Footnotes lost in description terms
  2006-05-07 23:28         ` Hans Hagen
@ 2006-05-08 10:52           ` nico
  0 siblings, 0 replies; 7+ messages in thread
From: nico @ 2006-05-08 10:52 UTC (permalink / raw)


On Mon, 08 May 2006 01:28:59 +0200, Hans Hagen <pragma@wxs.nl> wrote:

>>> send me a test file showing both
>>
>> Here it is. The first and third description terms containing footnotes
>> are wrapped. The second term does not contain footnote and is not
>> wrapped (it's the file committed in contexttest).
>
> it took me quitea while to find out that it's in the the description
> preroll which meant that the calculated width was too small and
> therefore the real thing wrapped

Thanks much, it works fine.

Regards,
BG

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

end of thread, other threads:[~2006-05-08 10:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-05 20:48 Footnotes lost in description terms nico
2006-05-06  7:51 ` Hans Hagen
2006-05-06 22:37   ` nico
2006-05-07 17:52     ` Hans Hagen
2006-05-07 18:16       ` nico
2006-05-07 23:28         ` Hans Hagen
2006-05-08 10:52           ` nico

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