Greetings, Stefan ...<br><br>Thanks very much. This is exactly the level of detail that I wanted, and you have been a very big help. I especially appreciate the tip on how to create a shortcut to run a script. Repeatedly stopping to click the &quot;Scripts&quot; menu seemed to be a bit of a pain. I look forward to trying some things out now.<br>
<br>Best regards,<br><br>Tyler<br><br><div class="gmail_quote">On Fri, May 21, 2010 at 11:25 AM, Stefan Löffler <span dir="ltr">&lt;<a href="mailto:st.loeffler@gmail.com">st.loeffler@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



  

<div text="#000000" bgcolor="#ffffff">
Hi,<br>
<br>
Am 2010-05-21 17:03, schrieb Tyler Estler:<div class="im"><br>
<blockquote type="cite">You are very quick to respond, which is great!<br>
</blockquote>
<br></div>
You&#39;re lucky - I&#39;m currently at my PC and have little enough to do to
fit in a mail or two occasionally ;).<div class="im"><br>
<br>
<blockquote type="cite">I am most interested in how scripts are executed in
practice. For example, in WinEdt when I type \ref{} or \cite{},
dropdown lists of labels or bibliography entries appear, which is a
wonderful feature.<br>
</blockquote>
<br></div>
Yes, and this is indeed planned for the (near?) future. However, the
scripting implementation is not that advanced yet, there&#39;s still room
for improvement ;).<div class="im"><br>
<br>
<blockquote type="cite">Such a feature appears to have been enabled in Tw by a
script by Paul Norman. I would like to see an example of using this
script, for example.<br>
</blockquote>
<br></div>
Partially, yes. It doesn&#39;t work as-you-type (you already noticed that),
and it doesn&#39;t present an inline list. Instead, it opens a dialog where
you can choose from several options.<br>
<br>
To run the script, simply select &quot;Insert Cross Reference&quot; menu item
from the &quot;Scripts&quot; menu (or a submenu thereof, if you installed the
script to a subdirectory) in Tw. It should immediately bring up the
dialog.<br>
Since selecting a menu-item is not a very speedy thing to do when in
the middle of typing, you can also assign a shortcut to the script.
Unfortunately, the only way to do that at the moment is to edit the
script file directly. So if you open the &quot;insertCrossRef.js&quot; file in a
text-editor (you can even use Tw itself) from where you installed it,
you can add the following line somewhere in the first few lines (all
those starting with &quot;//&quot;):<br>



<p style="margin: 0px; text-indent: 0px;">//Shortcut:
Alt+R</p>
<p style="margin: 0px; text-indent: 0px;"></p>
<br>
This will allow you to run the script by hitting Alt+R (you probably
need to reload the script list in Tw to make it work). You can even
define some more complex shortcuts, such as


&quot;Alt+I,
Alt+R&quot; which means that you need to first hit Alt+I and then Alt+R to
run the script. I find this quite useful as I define all my insert
commands to start with Alt+I, for example, but this is a matter of
taste.<br>
<br>
HTH<br>
Stefan<br>
<p style="margin: 0px; text-indent: 0px;"></p>
</div>

</blockquote></div><br>