Hi,
I’m trying to get the Matlab plug-in to work inside Texmacs in Windows, but I am not able to make it work. Is it even possible? I’m trying my best with my limited computer knowledge: .
Right now my tm_matlab file is a bat file that calls a PowerShell file:
@echo off
powershell -ExecutionPolicy Bypass -File “%~dp0\tm_matlab.ps1”
Powershell file:
TeXmacs control character
Write-Output ([char]2 + “verbatim:”)
Path to plugin folder
$pluginPath = “$env:TEXMACS_PATH\plugins\matlab\code”
Launch MATLAB: add plugin folder to path, then run tmrepl
matlab -nodesktop -nosplash -r “addpath(’$pluginPath’); tmrepl;”
Unfortunately when I try this and open a matlab session in Texmacs, a new Matlab console window opens instead of having a communication between matlab and Texmacs:
Inside Texmacs: Busy as always
Inside matlab console window:
So mister Gpt told me that:
- On Linux/Mac, TeXmacs launches MATLAB via a shell, and stdin/stdout can be piped directly.
- On Windows,
Start-Process
or launching MATLAB normally opens a separate console, breaking the pipe.
So is it possible to make the Matlab plug-in work on Windows?