[NTG-context] Entries in \completelistoffigures - HOWTO?

2006-04-25 Thread Johannes Graumann
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

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


Re: [NTG-context] Entries in \completelistoffigures - HOWTO?

2006-04-25 Thread Hans Hagen
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
-

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


Re: [NTG-context] Entries in \completelistoffigures - HOWTO?

2006-04-25 Thread Johannes Graumann
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
  }


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


Re: [NTG-context] Entries in \completelistoffigures - HOWTO?

2006-04-25 Thread Johannes Graumann
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

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


Re: [NTG-context] Entries in \completelistoffigures - HOWTO?

2006-04-25 Thread Hans Hagen
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
-

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


Re: [NTG-context] Entries in \completelistoffigures - HOWTO?

2006-04-25 Thread Hans Hagen
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
-

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