I have extracted my preamble to a .ts
file in order to make my big macro collection a bit more maintainable. But now I am noticing that there is a difference in the way that TeXmacs behaves when I am editing the style file, vs. when I was editing the preamble.
In particular, the macros that I define earlier in the style file are not “understood” later in the file. Here’s an example to illustrate what I mean; suppose I define a macro in the .ts
file like so:
<assign|con|<macro|x|<math|<math-ss|<arg|x>>>>>
Then in another macro definition, I might try to call this definition; I type \con <RET>
and what I expect to happen is that it enters something like <con|>
with my cursor in the argument slot. Instead, it enters <con>
. This behavior makes macro editing very time-consuming in comparison to the really smooth experience of editing within the preamble.
Does anyone have some suggestions for how I can get the best of both worlds? Thank you!