ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* interline space for \setuplist[alternative=d]
@ 2016-11-02 18:30 Pablo Rodriguez
  0 siblings, 0 replies; only message in thread
From: Pablo Rodriguez @ 2016-11-02 18:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hans,

I have the following sample:

    \setuppapersize[A6]
    \setupinteraction[state=start, focus=standard]
    \placebookmarks[chapter, section][chapter, section]
    \startsetups[lsect]
        \setupinterlinespace[line=28ex]
    \stopsetups
    \setuplist[section][style=\tfxx, alternative=d, setups=lsect]

    \starttext
    \completecontent
    \dorecurse{5}{\chapter{Knuth}\input knuth
        \dorecurse{8}{\section{Zapf}\input zapf}}
    \stoptext

I cannot set the interline space for \setuplist[section]. Wolfgang
kindly provided me with a workaround:

    \setuppapersize[A6]
    \setupinteraction[state=start, focus=standard]
    \placebookmarks[chapter, section][chapter, section]
    \startsetups[plsect]
      \start
        \setupinterlinespace
            [line=2.8ex]
        \placelist
            [section]
            [alternative=d,
             numbersegments=section,
             pagenumber=no,
             style=\itx] \par
      \stop
    \stopsetups

    \setuplist
      [chapter]
      [before={\blank[medium]}, after=\directsetup{plsect}]

    \starttext
    \placelist[chapter]
    \dorecurse{5}{\chapter{Knuth}\input knuth
        \dorecurse{8}{\section{Zapf}\input zapf}}
    \stoptext

But the issue I discovered recently is that the first section links from
the table of contents reach the chapter destination (and not the first
section). Bookmarks work fine, instead.

Wouldn’t it be better to improve the alternative=d in \setuplist, so
that interline space could be set up with the setups option?

Many thanks for your help,

Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-11-02 18:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-02 18:30 interline space for \setuplist[alternative=d] Pablo Rodriguez

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