Hi, I have seen Hans' reply to Peter Rolf from Nov. 19th 2009 on "grid snapping (mkiv)". What has changed since then? Is there some more info somewhere? I am missing my MkII optimized section setting, like ... grid={page,3.5pt,fit,low} Steffen
On 17-2-2010 10:58, Steffen Wolfrum wrote:
Hi,
I have seen Hans' reply to Peter Rolf from Nov. 19th 2009 on "grid snapping (mkiv)". What has changed since then? Is there some more info somewhere?
I am missing my MkII optimized section setting, like ... grid={page,3.5pt,fit,low}
i have no time not to explain it but the system is somewhat different than in mkii % \installsnapvalues{loose} {\v!maxdepth:0.8,\v!maxheight:0.8,\v!strut} % \installsnapvalues{normal}{\v!maxdepth:1.0,\v!maxheight:1.0,\v!strut} % \installsnapvalues{tight} {\v!maxdepth:1.2,\v!maxheight:1.2,\v!strut} % none don't enlarge % halfline enlarge by halfline/halfline % line enlarge by line/line % strut enlarge by ht/dp (default) % first align to top line % last align to bottom line % mindepth round depth down % maxdepth round depth up % minheight round height down % maxheight round height up %D We're not downward compatible with \MKII ! \definegridsnapping[\v!normal] [\v!maxheight,\v!maxdepth,\v!strut] \definegridsnapping[\v!standard] [\v!maxheight,\v!maxdepth,\v!strut] \definegridsnapping[\v!yes] [\v!maxheight,\v!maxdepth,\v!strut] \definegridsnapping[\v!strict] [\v!maxdepth:0.8,\v!maxheight:0.8,\v!strut] \definegridsnapping[\v!tolerant] [\v!maxdepth:1.2,\v!maxheight:1.2,\v!strut] \definegridsnapping[\v!top] [\v!minheight,\v!maxdepth,\v!strut] \definegridsnapping[\v!bottom] [\v!maxheight,\v!mindepth,\v!strut] \definegridsnapping[\v!both] [\v!minheight,\v!mindepth,\v!strut] \definegridsnapping[\v!broad] [\v!maxheight,\v!maxdepth,\v!strut,0.8] % maybe 0.85 \definegridsnapping[\v!fit] [\v!maxheight,\v!maxdepth,\v!strut,1.2] % tight 0.15 \definegridsnapping[\v!first] [\v!first] \definegridsnapping[\v!last] [\v!last] \definegridsnapping[\v!high] [\v!minheight,\v!maxdepth,\v!none] \definegridsnapping[\v!low] [\v!maxheight,\v!mindepth,\v!none] \definegridsnapping[\v!line] [\v!line] \definegridsnapping[\v!strut] [\v!strut] \definegridsnapping[\v!max] [\v!maxdepth,\v!maxheight,\v!strut] \definegridsnapping[\v!min] [\v!mindepth,\v!minheight,\v!strut] in one (experimental) style i use: % none will effectively smash the box to one line (zero inner) but is the same as strut as outer will snap % however you can use {none,top:3} to move it down 3 lines then % {local,strut} will use the style related settings and move one line down because the font is larger \setuphead [chapter] [grid=strut] \setuphead [section] [grid=strut] most structure components will get a grid key and these are normally local the bottomline is that you snap up/down, within certain rounding specs, and add/subtract/distribute extra lineheights to the ht/dp's of the gridded material 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 -----------------------------------------------------------------
\placecontent [level=section] or \completecontent [level=section] doesn't seem to work in MkIV, that is level= is ignored. \quote{Minimal} example (for Hans or Taco): contextref.tex (yes, I am getting back to working on the revision under MkIV...) Alan
On Wed, Feb 17, 2010 at 2:54 PM, Alan BRASLAU
\placecontent [level=section] or \completecontent [level=section] doesn't seem to work in MkIV, that is level= is ignored.
\quote{Minimal} example (for Hans or Taco): contextref.tex (yes, I am getting back to working on the revision under MkIV...)
Alan
What is the level=section supposed to mean? You do not mean criterium=section, do you? Best regards, Mikael
On Wednesday 17 February 2010 14:56:54 Mikael Persson wrote:
What is the level=section supposed to mean?
You do not mean criterium=section, do you?
No. criterium=section produces a partial list pertinent to that level. For example, \placecontent [criterium=chapter] prints the per-chapter TOC. level=section truncates the list at a certain level. For example, \placecontent [level=section] should list [part,chapter,section] but not subsection and below. Alan
On Wednesday 17 February 2010 14:54:37 Alan BRASLAU wrote:
\placecontent [level=section] or \completecontent [level=section] doesn't seem to work in MkIV, that is level= is ignored.
Another funny thing is taking place in the TOC under MkIV: \placecontent (alone) within a \chapter indeed places a partial TOC. However, within a big project (book) with frontmatter, bodymatter, \part, \chapter., appendices, and backmatter, the first chapter of the bodymatter (Chapter 1) also lists sections A.1 and A.2 (coming from Appendix A). A minimal example is too complicated to present here. Alan
participants (5)
-
Alan BRASLAU
-
Hans Hagen
-
Mikael Persson
-
Steffen Wolfrum
-
Wolfgang Schuster