HiveMinds / HiveMinds/CoursePlanningTemplate
Correct latex code in main.tex to include colors in matlab appendices
- Dominant language
- TeX
- Stars
- 2
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Verify if its not the issue with the python listing color specifications.
```
\usepackage{listings}
\usepackage{color} %red, green, blue, yellow, cyan, magenta, black, white
\definecolor{mygreen}{RGB}{28,172,0} % color values Red, Green, Blue
\definecolor{mylilas}{RGB}{170,55,241}
\lstset{language=Matlab,%
%basicstyle=\color{red},
breaklines=true,%
morekeywords={matlab2tikz},
keywordstyle=\color{blue},%
morekeywords=[2]{1}, keywordstyle=[2]{\color{black}},
identifierstyle=\color{black},%
stringstyle=\color{mylilas},
commentstyle=\color{mygreen},%
showstringspaces=false,%without this there will be a symbol in the places where there is a space
numbers=left,%
numberstyle={\tiny \color{black}},% size of the numbers
numbersep=9pt, % this defines how far the numbers are from the text
emph=[1]{for,end,break},emphstyle=[1]\color{red}, %some words to emphasise
%emph=[2]{word1,word2}, emphstyle=[2]{style},
}
```
Source:
https://tex.stackexchange.com/questions/257938/how-to-include-matlab-code-into-latex-in-colour
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.