<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’m trying to create a custom header and have tried this example from the thbook.</div><div><br></div><div>layout elevation</div><div>  code tex-map</div><div>   \def\maplayout{</div><div>  </div><div>    \legendbox{0}{100}{NW}{\cavename}</div><div>    }</div><div>  endcode</div><div>endlayout</div><div><br></div><div>I get the following errors</div><div><br></div><div><div><font color="#0056d6">######################## pdftex log file #########################</font></div><div><font color="#0056d6">This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012) (format=pdfetex 2012.6.30)  9 JUN 2014 11:30</font></div><div><font color="#0056d6">entering extended mode</font></div><div><font color="#0056d6"> restricted \write18 enabled.</font></div><div><font color="#0056d6"> %&-line parsing enabled.</font></div><div><font color="#0056d6">**data.tex</font></div><div><font color="#0056d6">(./data.tex (./th_enc.tex) (./th_texts.tex) (./th_resources.tex</font></div><div><font color="#0056d6">(/usr/local/texlive/2012/texmf/tex/generic/pdftex/glyphtounicode.tex))</font></div><div><font color="#0056d6">(./th_fontdef.tex{/usr/local/texlive/2012/texmf-var/fonts/map/pdftex/updmap/pdf</font></div><div><font color="#0056d6">tex.map})</font></div><div><font color="#0056d6">(./th_formdef.tex) (./th_pagedef.tex</font></div><div><font color="#0056d6">! Missing { inserted.</font></div><div><font color="#0056d6"><to be read again> </font></div><div><font color="#0056d6">                   }</font></div><div><font color="#0056d6">\legendbox ...\unskip \setbox \tmpboxa =\vbox {#4}</font></div><div><font color="#0056d6">                                                  \sx =\wd \tmpboxa \sy =\ht...</font></div><div><font color="#0056d6"><br></font></div><div><font color="#0056d6">\maplayout -> \legendbox {0}{100}{NW}{\cavename }</font></div><div><font color="#0056d6">                                                  </font></div><div><font color="#0056d6">l.12 \setbox\xxx=\hbox to \x{\maplayout</font></div><div><font color="#0056d6">                                       \hfill}%\dp\xxx=0bp</font></div><div><font color="#0056d6">A left brace was mandatory here, so I've put one in.</font></div><div><font color="#0056d6">You might want to delete and/or insert some corrections</font></div><div><font color="#0056d6">so that I will find a matching right brace soon.</font></div><div><font color="#0056d6">(If you're confused by all this, try typing `I}' now.)</font></div><div><font color="#0056d6"><br></font></div><div><font color="#0056d6">) (./th_pages.tex)</font></div><div><font color="#0056d6"> 52 numeric registers used out of 32768</font></div><div><font color="#0056d6"><br></font></div><div><font color="#0056d6">! Missing } inserted.</font></div><div><font color="#0056d6"><inserted text> </font></div><div><font color="#0056d6">                }</font></div><div><font color="#0056d6"><to be read again> </font></div><div><font color="#0056d6">                   \end </font></div><div><font color="#0056d6">l.653 \end</font></div><div><font color="#0056d6">          </font></div><div><font color="#0056d6">I've inserted something that you may have forgotten.</font></div><div><font color="#0056d6">(See the <inserted text> above.)</font></div><div><font color="#0056d6">With luck, this will get me unwedged. But if you</font></div><div><font color="#0056d6">really didn't forget anything, try typing `2' now; then</font></div><div><font color="#0056d6">my insertion and my current dilemma will both disappear.</font></div><div><font color="#0056d6"><br></font></div><div><font color="#0056d6"><br></font></div><div><font color="#0056d6">Underfull \hbox (badness 10000) detected at line 653</font></div><div><font color="#0056d6">[][][]   </font></div><div><font color="#0056d6"><br></font></div><div><font color="#0056d6">\hbox(153.57375+0.0)x1256.69499, glue set 249.34053</font></div><div><font color="#0056d6">.\pdfliteral{q 1.00 1.00 1.00 rg -28.34993 -181.34955 1308.68681 209.68948 re f</font></div><div><font color="#0056d6"> Q}</font></div><div><font color="#0056d6">.\hbox(153.57375+0.0)x0.0</font></div><div><font color="#0056d6">..\pdfliteral{/OC /oc7 BDC}</font></div><div><font color="#0056d6">..\pdfliteral{q 1 g}</font></div><div><font color="#0056d6">..\hbox(153.57375+0.0)x0.0, glue set - 1254.6875fil</font></div><div><font color="#0056d6">...\kern 0.0</font></div><div><font color="#0056d6">...\hbox(153.57375+0.0)x1254.6875 []</font></div><div><font color="#0056d6">...\glue 0.0 plus 1.0fil minus 1.0fil</font></div><div><font color="#0056d6">..\pdfliteral{Q}</font></div><div><font color="#0056d6">..\pdfliteral{EMC}</font></div><div><font color="#0056d6">..etc.</font></div><div><font color="#0056d6">.\hbox(0.0+0.0)x0.0</font></div><div><font color="#0056d6">..\hbox(153.57375+0.0)x0.0, glue set - 1256.69499fil</font></div><div><font color="#0056d6">...\kern 0.0</font></div><div><font color="#0056d6">...\hbox(153.57375+0.0)x1256.69499 []</font></div><div><font color="#0056d6">...\glue 0.0 plus 1.0fil minus 1.0fil</font></div><div><font color="#0056d6">.\glue 3.33333 plus 1.66666 minus 1.11111</font></div><div><font color="#0056d6">.\glue 3.33333 plus 1.66666 minus 1.11111</font></div><div><font color="#0056d6">.etc.</font></div></div><div><br></div><div><br></div><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>