Am 11.11.2011 um 02:22 schrieb Pontus Lurcock:
On Fri 11 Nov 2011, Christian wrote:
Dear all,
is the following possible?
List of figures 1.1 Figure caption . . . . . . 2
<page break> *imagine figure here Figure 1.1: Figure caption is a lot longer than it appears in the list of figures.
I'd like to shorten the captions in the list of figures that I produce using \placelist[figure] (preferably cut off clean, no ellipsis or the like). I know about \nomarking{} but it seems to apply only to chapter, section etc. titles.
This is indeed possible, using \select; see http://archive.contextgarden.net/message/20060501.171706.24b88466.en.html .
Example usage:
\defineselector[caption][max=2,n=2] \starttext \setupselector[caption][n=1] \completelistoffigures \setupselector[caption][n=2] \placefigure[][] {\select{caption} {A short caption} {A rather longer caption which will appear below the figure itself}} {This is the content of the actual figure} \stoptext
WIth the current beta you can write: \startplacefigure[title={A rather long caption …},list={A short caption}] \externalfigure[…] \stopplacefigure Wolfgang