Skip to content

Commit bc6cc59

Browse files
authored
Merge pull request #33 from jkuczm/fix_lst_language_init
Fix listings language initialization
2 parents a28e13b + 0376f1c commit bc6cc59

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ on TeX Stack Exchange.
2828
## Installation
2929

3030
1. Download latest released
31-
[mmacells.sty](https://raw.githubusercontent.com/jkuczm/mmacells/v0.3.1/mmacells.sty)
31+
[mmacells.sty](https://raw.githubusercontent.com/jkuczm/mmacells/v0.3.2/mmacells.sty)
3232
file.
3333

3434
2. Put it someplace [where your TeX distribution can find it](http://tex.stackexchange.com/q/1137/70587).

mmacells.sty

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
\RequirePackage{expl3,xparse}
1515

16-
\ProvidesExplPackage {mmacells} {2016/06/26} {0.3.1}
16+
\ProvidesExplPackage {mmacells} {2017/01/03} {0.3.2}
1717
{Mathematica front end cells}
1818

1919
\RequirePackage{amsmath,bbm}
@@ -825,6 +825,12 @@
825825
morekeywords={_},
826826
keywordsprefix=_, % Blank... patterns with head
827827
}[keywords,comments,strings,fancyvrb]
828+
829+
% Use newly defined Mathematica language to make sure everything is properly
830+
% initialized. \lstset sets options only inside current group,
831+
% delimited by braces, so this has no effect besides initialization.
832+
{\lstset{language=[base]Mathematica}}
833+
828834
\lstdefinestyle{MathematicaFrontEnd}{
829835
showstringspaces=false,
830836
columns=fullflexible,

0 commit comments

Comments
 (0)