Is it possible to start TeXmacs from the command line opening a new document with a given style?
I tried the -x command line option in the following way:
texmacs -x "(set-style-list '("note-scuola" "SIUnits"))" test.tm &
and got a new file with default settings and an error message (which I post below). The Scheme command between double quotes works in a Scheme session.
Of course there are workarounds (e.g. execute the command on a new file with a keyboard shortcut or a new menu item). I am curious about the command line and it seems to me quicker too (bash alias).
Thanks in advance.
Giovanni
Here is the error message.
Backtrace:
In ice-9/boot-9.scm:
1784:12 5 (with-exception-handler _ _ #:unwind? _ # _)
In unknown file:
4 (apply-smob/0 #<thunk 7c5e3830d240>)
In ice-9/boot-9.scm:
1784:12 3 (with-exception-handler _ _ #:unwind? _ # _)
In unknown file:
2 (apply-smob/0 #<thunk 7c5e0a518180>)
In ice-9/psyntax.scm:
3246:18 1 (_ _)
In unknown file:
0 (tm->tree (tuple note-scuola SIUnits))
ERROR: In procedure tm->tree:
In procedure tm->tree: Wrong type argument in position 1: (tuple note-scuola SIUnits)