<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>I’ve tried out the following example from thbook adding this to my layout</div><div> </div><div> code tex-map</div><div> \def\maplayout{ </div><div> \legendbox{0}{100}{NW}{\northarrow}</div><div> }</div><div> endcode</div><div><br></div><div>This works fine for \northarrow and \scalebar but when I tried it with \cavename or \comment I get the following error</div><div><br></div><div><div></div></div><blockquote type="cite"><div><div>(./th_formdef.tex) (./th_pagedef.tex</div><div>! Missing { inserted.</div><div><to be read again> </div><div> }</div><div>\legendbox ...\unskip \setbox \tmpboxa =\vbox {#4}</div><div> \sx =\wd \tmpboxa \sy =\ht...</div><div><br></div><div>\maplayout -> \legendbox {0}{100}{NW}{\comment }</div><div> </div><div>l.12 \setbox\xxx=\hbox to \x{\maplayout</div><div> \hfill}%\dp\xxx=0bp</div><div>A left brace was mandatory here, so I've put one in.</div><div>You might want to delete and/or insert some corrections</div><div>so that I will find a matching right brace soon.</div><div>(If you're confused by all this, try typing `I}' now.)</div><div><br></div><div>) (./th_pages.tex)</div><div> 54 numeric registers used out of 32768</div><div><br></div><div>! Missing } inserted.</div><div><inserted text> </div><div> }</div><div><to be read again> </div><div> \end </div><div>l.653 \end</div><div> </div><div>I've inserted something that you may have forgotten.</div><div>(See the <inserted text> above.)</div><div>With luck, this will get me unwedged. But if you</div><div>really didn't forget anything, try typing `2' now; then</div><div>my insertion and my current dilemma will both disappear.</div><div><br></div><div><br></div><div>Underfull \hbox (badness 10000) detected at line 653</div><div>[][][] </div><div><br></div><div>\hbox(1167.36124+0.0)x1296.84499, glue set 257.37057</div><div>.\pdfliteral{q 1.00 1.00 1.00 rg -28.34993 -1191.34709 1348.6867 1219.68703 re </div><div>f Q}</div><div>.\hbox(1167.36124+0.0)x0.0</div><div>..\pdfliteral{/OC /oc7 BDC}</div><div>..\pdfliteral{q 1 g}</div><div>..\hbox(1166.3575+0.0)x0.0, glue set - 1273.75873fil</div><div>...\kern 1.00374</div><div>...\hbox(1091.07625+0.0)x1272.75499, shifted -75.28125 []</div><div>...\glue 0.0 plus 1.0fil minus 1.0fil</div><div>..\pdfliteral{Q}</div><div>..\pdfliteral{EMC}</div><div>..etc.</div><div>.\hbox(0.0+0.0)x0.0</div><div>..\hbox(1167.36124+0.0)x0.0, glue set - 1296.84499fil</div><div>...\kern 0.0</div><div>...\hbox(1167.36124+0.0)x1296.84499 []</div><div>...\glue 0.0 plus 1.0fil minus 1.0fil</div><div>.\glue 3.33333 plus 1.66666 minus 1.11111</div><div>.\glue 3.33333 plus 1.66666 minus 1.11111</div><div>.etc.</div></div></blockquote><div><br></div><div>Has anyone any idea what is wrong?</div><br><br><div>
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Dave Clucas<br><a href="http://daveclucas.com" style="font-family: Helvetica; font-style: normal; font-weight: normal;">daveclucas.com</a><br><a href="http://sarawak-caves.com" style="font-family: Helvetica; font-style: normal; font-weight: normal;">sarawak-caves.com</a><br><a href="mailto:daveclucas@icloud.com" style="font-family: Helvetica; font-style: normal; font-weight: normal;">dave.clucas@icloud.com</a><br><br><span style="font-size: 14px;"><b>Exploring the World</b></span><span style="font-family: Helvetica; font-style: normal; font-weight: normal;"> - One cave at a time<br><br></span></div></div></div></div>
</div>
<br></body></html>