ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \placecontent floating in a frame
@ 2009-10-30 12:15 Jelle Huisman
  2009-10-30 13:05 ` Taco Hoekwater
  0 siblings, 1 reply; 3+ messages in thread
From: Jelle Huisman @ 2009-10-30 12:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: \placecontent floating in a frame
  2009-10-30 12:15 \placecontent floating in a frame Jelle Huisman
@ 2009-10-30 13:05 ` Taco Hoekwater
  2009-10-30 13:34   ` Jelle Huisman
  0 siblings, 1 reply; 3+ messages in thread
From: Taco Hoekwater @ 2009-10-30 13:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users



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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: \placecontent floating in a frame
  2009-10-30 13:05 ` Taco Hoekwater
@ 2009-10-30 13:34   ` Jelle Huisman
  0 siblings, 0 replies; 3+ messages in thread
From: Jelle Huisman @ 2009-10-30 13:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 30/10/2009 13:05, Taco Hoekwater wrote:
>    \framed[........,align=justify]
>
> should do the trick.
>    

It did the trick, thanks!

Jelle
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2009-10-30 13:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-30 12:15 \placecontent floating in a frame Jelle Huisman
2009-10-30 13:05 ` Taco Hoekwater
2009-10-30 13:34   ` Jelle Huisman

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