\placecontent floating in a frame
![](https://secure.gravatar.com/avatar/36541b49710ecbb73e7805d9f7ac9954.jpg?s=120&d=mm&r=g)
Hi all, I want to place a table of contents in a floating frame but somehow all the entries are placed in one line (see example) How do I get a proper ToC? I know that I can add a height to the \framed but with the real data I'm working with I don't know in advance how many lines I need. Adding heightfactor=fit didn't work either. \setupcombinedlist[content][level=2,alternative=f] \definefloat[TOCfloat][TOCfloats] \setupfloat[TOCfloat][location=hanging,background=color,backgroundcolor=lightgray] \starttext \placeTOCfloat[right,here]{none}{\framed[width=0.4\textwidth]{\placecontent}} \section{First section title} \input knuth \section{Second section title} \input knuth \section{Third section title} \input knuth \section{Last section title} \input knuth \stoptext Thanks again, Jelle
![](https://secure.gravatar.com/avatar/565476157eb3895a9c928ffce26d988d.jpg?s=120&d=mm&r=g)
Jelle Huisman wrote:
Hi all,
I want to place a table of contents in a floating frame but somehow all the entries are placed in one line (see example) How do I get a proper ToC? I know that I can add a height to the \framed but with the real data I'm working with I don't know in advance how many lines I need. Adding heightfactor=fit didn't work either.
\framed[........,align=justify] should do the trick. Best wishes, Tacp
participants (2)
-
Jelle Huisman
-
Taco Hoekwater