[texworks] Scripting root file behaviour

Stefan Löffler st.loeffler at gmail.com
Wed Apr 18 18:52:25 CEST 2012


On 2012-04-16 12:25, Thomas Fehige wrote:
> How do I get rid of a global variable I've set with
>     TW.app.setGlobal("foo", something)
> so that
> TW.app.hasGlobal("foo")
> will return false again, as if foo had never been used in the first place?

Oops, I think that was overlooked when the "globals" framework was
I added the two functions TW.app.unsetGlobal("foo") and
TW.script.unsetGlobal("foo") in r994. They should do just what you want.


More information about the texworks mailing list