ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Entries in \completelistoffigures - HOWTO?
@ 2006-04-25  6:59 Johannes Graumann
  2006-04-25  8:02 ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Johannes Graumann @ 2006-04-25  6:59 UTC (permalink / raw)


Hello,

I read out figures from my XML source by the following code:

\defineXMLenvironment 
  [figure]
  [width=\textwidth]
  [location=here]
  {
    \bgroup
    \defineXMLsave[floattitle]
    \defineXMLsave[caption]
    \defineXMLsave[graphic]
  }
  {
    \placefigure
      [\XMLpar{figure}{location}{}]
      [\XMLpar{figure}{label}{unknown}]
      {{\bf\XMLflush{floattitle}} \XMLflush{caption}}
%      {\externalfigure[\XMLflush{graphic}][width=\XMLval{figure:width
{\XMLop{width}}{}]}
      {\externalfigure[\XMLflush{graphic}][width=\XMLpar{figure}{width}{}]}
    \egroup
  }

My problem now is, that when calling '\defineXMLargument  [listoffigures]  
{\completelistoffigures[criterium=text]}' I get figure numbers and pages,
but no text. 

How can I show 'floattitle' in the TOF?

Thanks, Joh

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

* Re: Entries in \completelistoffigures - HOWTO?
  2006-04-25  6:59 Entries in \completelistoffigures - HOWTO? Johannes Graumann
@ 2006-04-25  8:02 ` Hans Hagen
  2006-04-25 16:07   ` Johannes Graumann
  2006-04-25 16:35   ` Johannes Graumann
  0 siblings, 2 replies; 6+ messages in thread
From: Hans Hagen @ 2006-04-25  8:02 UTC (permalink / raw)


Johannes Graumann wrote:
> Hello,
>
> I read out figures from my XML source by the following code:
>
> \defineXMLenvironment 
>   [figure]
>   [width=\textwidth]
>   [location=here]
>   {
>     \bgroup
>     \defineXMLsave[floattitle]
>     \defineXMLsave[caption]
>     \defineXMLsave[graphic]
>   }
>   {
>   
\expanded{%
>     \placefigure
>       [\XMLpar{figure}{location}{}]
>       [\XMLpar{figure}{label}{unknown}]
>       {{\bf\XMLflush{floattitle}} \XMLflush{caption}}
>   
}
> %      {\externalfigure[\XMLflush{graphic}][width=\XMLval{figure:width
> {\XMLop{width}}{}]}
>       {\externalfigure[\XMLflush{graphic}][width=\XMLpar{figure}{width}{}]}
>     \egroup
>   }
>   

best keep the \bf out and configure that at the style level
> My problem now is, that when calling '\defineXMLargument  [listoffigures]  
> {\completelistoffigures[criterium=text]}' I get figure numbers and pages,
> but no text. 
>
> How can I show 'floattitle' in the TOF?
>
> Thanks, Joh
>
> _______________________________________________
> 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] 6+ messages in thread

* Re: Entries in \completelistoffigures - HOWTO?
  2006-04-25  8:02 ` Hans Hagen
@ 2006-04-25 16:07   ` Johannes Graumann
  2006-04-25 18:24     ` Hans Hagen
  2006-04-25 16:35   ` Johannes Graumann
  1 sibling, 1 reply; 6+ messages in thread
From: Johannes Graumann @ 2006-04-25 16:07 UTC (permalink / raw)


Hans Hagen wrote:

> \expanded{%
>>     \placefigure
>>       [\XMLpar{figure}{location}{}]
>>       [\XMLpar{figure}{label}{unknown}]
>>       {{\bf\XMLflush{floattitle}} \XMLflush{caption}}
>>   
> }

Thank you so much once again. Works now. I fail, however to grasp where to
apply the '\expanded' with the full-page-figure/other-page-caption you
helped me set up ...

Can you enlighten me concerning that?

Joh

\definefloat[caption]
\setupfloat[caption][location=right]
\defineframedtext
  [captiontext]
 
[width=\textwidth,style={{\smallbodyfont}\setupinterlinespace[line=2.8ex]},frame=off,topframe=on]
\defineXMLenvironment 
  [fpfigure]
  {
    \bgroup
    \defineXMLsave[floattitle]
    \defineXMLsave[caption]
    \defineXMLsave[graphic]
  }
  {
    \placefigure
      [page,none]
      [\XMLpar{figure}{label}{}]
      {}
      {\externalfigure[\XMLflush{graphic}
[width=\textwidth,height=\textheight,factor=max]}
    \placecaption
      [bottom,none]
      {}
      {\startcaptiontext
        \placefloatcaption
          [figure]
          {{\bf\XMLflush{floattitle}} \XMLflush{caption}}
      \stopcaptiontext}
    \egroup
  }

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

* Re: Entries in \completelistoffigures - HOWTO?
  2006-04-25  8:02 ` Hans Hagen
  2006-04-25 16:07   ` Johannes Graumann
@ 2006-04-25 16:35   ` Johannes Graumann
  2006-04-25 18:23     ` Hans Hagen
  1 sibling, 1 reply; 6+ messages in thread
From: Johannes Graumann @ 2006-04-25 16:35 UTC (permalink / raw)


Hans Hagen wrote:

> Johannes Graumann wrote:
> \expanded{%
>>     \placefigure
>>       [\XMLpar{figure}{location}{}]
>>       [\XMLpar{figure}{label}{unknown}]
>>       {{\bf\XMLflush{floattitle}} \XMLflush{caption}}
>>   
> }

Some of my captions are REALLY long. So the TOF looks somewhat funny ... is
there a way to restrict the entries to my 'floattitle'?

Joh

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

* Re: Entries in \completelistoffigures - HOWTO?
  2006-04-25 16:35   ` Johannes Graumann
@ 2006-04-25 18:23     ` Hans Hagen
  0 siblings, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2006-04-25 18:23 UTC (permalink / raw)


Johannes Graumann wrote:
> Hans Hagen wrote:
>
>   
>> Johannes Graumann wrote:
>> \expanded{%
>>     
>>>     \placefigure
>>>       [\XMLpar{figure}{location}{}]
>>>       [\XMLpar{figure}{label}{unknown}]
>>>       {{\bf\XMLflush{floattitle}} \XMLflush{caption}}
>>>   
>>>       
>> }
>>     
>
> Some of my captions are REALLY long. So the TOF looks somewhat funny ... is
> there a way to restrict the entries to my 'floattitle'?
>   
you can set the maxwidth of a list 

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] 6+ messages in thread

* Re: Entries in \completelistoffigures - HOWTO?
  2006-04-25 16:07   ` Johannes Graumann
@ 2006-04-25 18:24     ` Hans Hagen
  0 siblings, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2006-04-25 18:24 UTC (permalink / raw)


Johannes Graumann wrote:
> Hans Hagen wrote:
>
>   
>> \expanded{%
>>     
>>>     \placefigure
>>>       [\XMLpar{figure}{location}{}]
>>>       [\XMLpar{figure}{label}{unknown}]
>>>       {{\bf\XMLflush{floattitle}} \XMLflush{caption}}
>>>   
>>>       
>> }
>>     
>
> Thank you so much once again. Works now. I fail, however to grasp where to
> apply the '\expanded' with the full-page-figure/other-page-caption you
>   
you need expand anywhere where the saved data is forgotten afterwards; in this case you can also set the figure list to expand its content when it writes to the file 

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] 6+ messages in thread

end of thread, other threads:[~2006-04-25 18:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-25  6:59 Entries in \completelistoffigures - HOWTO? Johannes Graumann
2006-04-25  8:02 ` Hans Hagen
2006-04-25 16:07   ` Johannes Graumann
2006-04-25 18:24     ` Hans Hagen
2006-04-25 16:35   ` Johannes Graumann
2006-04-25 18:23     ` Hans Hagen

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