<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-7" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Continuing on possible improvements of Xtherion, a quote from the <b>therion:faq-How
to enter centreline? </b>in the wiki offers a hint:<b><br>
</b><i>"It’s handy to start with an empty template file as shown
bellow, where the dots will be replaced with appropriate text."<br>
<br>
</i>For a newbie, it would be better if the template text could be
inserted automatically in a new text file (following an option "Use
template" in the relevant panel). To do that, create a text file named <b>text.tpl</b>,
paste the following template text in it and save.<br>
<pre class="pre"><font color="#990000">encoding ISO8859-1
survey ... -title "..."
  centreline
    team "..."
    team "..."
    date ...
    units clino compass grad
    data normal from to compass clino length
      ... ... ... ... ...
  endcentreline
endsurvey</font></pre>
Next, add the following tcl code at the very end of  proc<b>
xth_te_create_file</b>, just before the closing bracket:<br>
<font face="Courier New, Courier, monospace"><br>
</font><font color="#990000"> if {[glob -nocomplain text.tpl] ne {}} {<br>
    xth_te_insert_text $cfr.txt [read [open "text.tpl" r]]<br>
</font><font color="#990000" face="Courier New, Courier, monospace">}<br>
<br>
</font>
<p>From now on, when you open a new text editor file, you will have the
template text inserted automatically at the begining.<br>
</p>
DZ
</body>
</html>