Dear All,<br><br>I am migrating from WinEdt to TexWorks, which I really like for its simplicity.<br><br>I am looking for some kind of tutorial introduction to the use of scripts such as the one described here. I have done a reasonable amount of LaTeX writing, but I am a novice when it comes to scripts etc.<br>
<br>Could someone provide a simple step-by-step guide to the use of scripts, hooks, etc?<br><br>Thanks for any help, and also for your efforts to expand the functionality of TexWorks.<br><br>Tyler Estler<br><br><div class="gmail_quote">
On Fri, May 21, 2010 at 5:01 AM, Paul A Norman <span dir="ltr"><<a href="mailto:paul.a.norman@gmail.com">paul.a.norman@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br>
<br>
Insert a new \label{key}<br>
<br>
<a href="http://code.google.com/p/texworks/issues/detail?id=261&q=SCRIPTS#c22" target="_blank">http://code.google.com/p/texworks/issues/detail?id=261&q=SCRIPTS#c22</a><br>
<br>
If text is selected first in the Tw editor, the script endeavours to<br>
use this as the key to make a new \label{key}<br>
<br>
Checks through the current document, and offers a drop-down box with<br>
either a blank area to type in, or if the user has selected some text,<br>
that as the proposed label key. The drop-down shows any already<br>
existing label keys in the document.<br>
<br>
If the user Ok-s the drop-down box, the script then checks through<br>
existing labels to avoid reproducing the same key.<br>
<br>
If the key has already been used in another \label{key} statement, the<br>
user is shown the pre-existing key, and asked to try making a new<br>
label up again. The same checks are performed recursively until either<br>
a unique key is made, or the user cancels.<br>
<br>
Successful use, inserts \label{usersKey}<br>
<br>
(Companion script to insertCrossRef.js)<br>
<font color="#888888"><br>
Paul<br>
</font></blockquote></div><br>