Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [matlab-prettifier]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
121 views

Matlab prettifier problem with *

I'm trying to use the matlab-prettifier. Following code does not compile: \begin{lstlisting}[ style = Matlab-editor, basicstyle = \mlttfamily, ] ro=zeros(length(prec),length(prec)+length(h)-1); ...
3
votes
2answers
118 views

How do I stop matlab-prettifier thinking print strings are comments?

I am trying to put my code into a Latex document using matlab-prettifier. I am doing this by using \lstinputlisting[style=Matlab-editor]{Trap.m}. An example of Trap.m (a MATLAB file) is as follows ...
1
vote
0answers
161 views

Minted vs matlab-prettifier for thesis [closed]

I am writing my PhD thesis now for which I need to list snippets of source-code within the main text and full listings in the appendix. I did my coding entirely in MATLAB using advanced constructs ...
0
votes
1answer
126 views

Can't get Bera font with Matlab-prettifier

I've used Matlab-Prettifier in the past to format my Matlab code, but having moved out of ShareLaTeX and into a local environment, I can't seem to get the Bera Mono font. E.g., the code ... \...
1
vote
1answer
203 views

How do i remove numbered lines from the main text in doccument using Matlab-prettifier

I'm using \usepackage[numbered]{matlab-prettifier} but want to insert one line in the main document WITHOUT line numbers. I'm adding MATLAB codes in appendix for which I need the numbers. I'm ...
2
votes
1answer
99 views

numbering isn't showing with matlab-pretifier package

does anybody know why this might be? I tried changing my document class from "Article" to "Beamer" and also tried deleting a bunch of packages but nothing has made the numbering on the Matlab-editor ...
1
vote
1answer
658 views

Adjust matlab-prettifier to page width

According to Richard Johnson's Elements of MATLAB Style paragraph 6, it is a best practice to keep content to within 80 characters. Although matlab-prettifier wraps lines nicely, in my opinion, ...
1
vote
0answers
68 views

Why doesn´t this new environment work? [duplicate]

I´m using the Matlab-prettifier package to include Matlab-code in my Latex-file, and it generally works, i.e, when I´m using the custom environment from the package: \begin{lstlisting}[style=Matlab-...
1
vote
2answers
522 views

Use of Bera Mono font with \mlttfamily described by matlab-prettifier

I am using latex with pdftex and trying to use the Bera Mono font with the \mlttfamily described by matlab-prettifier documentation. However, my generated output seams to ignore my \lstset basicstyle ...
0
votes
1answer
241 views

\endscname error using package matlab-prettifier

I'm trying to prepare a beamer document using the matlab-prettifier package but I come across errors whenever I include a frame where I use code. I always get the following log: ! Missing \endcsname ...
1
vote
1answer
503 views

Move listing numbers outside of framed box in Matlab Prettifier

The question is building off the solution give here. How do you remove the mcode package so that listings 1 - 3 will have the Matlab code that resembles the last listing and also contain the line ...
2
votes
1answer
584 views

Different Matlab code listings environment in same document with Matlab-prettifier

I wanted to be able to have different Matlab code listings in the same document. The first three listings are from the solution found here. How do I get rid of the thin lined boxes in the first 3 ...
0
votes
1answer
150 views

matlab-prettifier: How to insert a green-colored dots as prebreak argument?

In this MWE, how can I color \ldots, which is the prebreak argument, in green without getting errors? \RequirePackage{luatex85} \documentclass{article} \usepackage[tuenc]{fontspec} \usepackage[...
3
votes
1answer
858 views

`\lstinputlisting` not respecting basicstyle=\tiny

I am trying to fit MATLAB code in my document without wrapping, but I cannot change the font size when using matlab-prettifier. Here's a MWE using both lstinputlisting and environment style: \...
2
votes
1answer
1k views

adding frame=none to lstlisting options in \lstdefinestyle gives error with tabular

lstlisting has an option called frame= But when I use the frame=none in \lstdefinestyle and put the lstlisting command inside tabular or longtable I get an error Forbidden control sequence It ...
2
votes
1answer
153 views

why is adding subdepth package makes lstlisting give Matlab error loading file?

If I have a dollar each time I find a conflict between Latex packages I would be a rich man. I added \usepackage[low-sup]{subdepth} and now I am starting to get errors from matlab-prettifier when ...
4
votes
2answers
567 views

Why font missing message shows up when using standalone and import packages only?

Took me long time to find the cause of this one. From some bizzar reason, when I use standlone package, the font changes in the lstlisting of my Matlab code due to Latex not finding some fonts. I am ...
2
votes
2answers
87 views

Conditional formating of a verbatim type argument

I write problem sets whose answer keys contain matlab code. To accomplish this, I'm using matlab-prettifier, but I need to condition the output on whether I'm outputing the problem set questions or ...
1
vote
1answer
172 views

enclosing a lstlisting environment inside my own environment using matlab-prettifier

I've just started using matlab-prettifier. Since the line \begin{lstlisting}[style=Matlab-editor] is a lot to type, I created my own environment: \newenvironment{myMP} {\begin{samepage}\begin{...