matlab-prettifier icon indicating copy to clipboard operation
matlab-prettifier copied to clipboard

A style for the Matlab REPL?

Open s5bug opened this issue 4 years ago • 1 comments

I have some assignments in my Linear Algebra class that require use of MATLAB, and I'd like to have syntax highlighting on them.

\subsection*{Exercise 1.3}
\begin{lstlisting}
>> z = 25-(100-7exp(5+cos(pi/3))
 z = 25-(100-7exp(5+cos(pi/3))
             ↑
Error: Invalid use of operator.
 
Did you mean: z = 25-(100-7*exp  (5+cos(pi/3)))
>> z = 25-(100-7*exp  (5+cos(pi/3)))

z =

   1.6378e+03
\end{lstlisting}

s5bug avatar Apr 14 '20 04:04 s5bug

I should also note that using language=Matlab,style=Matlab-* (where * is any of the styles) results in this bug: https://tex.stackexchange.com/questions/537733/up-arrow-not-showing-in-listingsutf8

Related to the REPL using these characters/in this style.

s5bug avatar Apr 14 '20 04:04 s5bug