Skip to content

Commit 8a80b2e

Browse files
committed
Merge pull request #27 from jkuczm/formatting_nonlistinngs_and_inline
Formatting non-listinngs and inline cells Version 0.3.0.
2 parents 8c11eb3 + f5a4030 commit 8a80b2e

File tree

2 files changed

+18
-14
lines changed

2 files changed

+18
-14
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.2.0/mmacells.sty)
31+
[mmacells.sty](https://raw.githubusercontent.com/jkuczm/mmacells/v0.3.0/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: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
\RequirePackage{expl3,xparse}
1515

16-
\ProvidesExplPackage {mmacells} {2015/04/08} {0.2.0}
16+
\ProvidesExplPackage {mmacells} {2016/05/20} {0.3.0}
1717
{Mathematica front end cells}
1818

1919
\RequirePackage{amsmath,bbm}
@@ -484,16 +484,19 @@
484484

485485
\__mmacells_fv_formatting_prep:
486486

487-
\bool_if:NTF \l_mmacells_uselistings_bool
487+
\mmacells_format_line_wrapper:n
488488
{
489-
\__mmacells_lst_hook_pre_set:
490-
\mmacells_lst_set:V \l_mmacells_lst_keyval_clist
491-
\__mmacells_lst_hook_text_style:
492-
\__mmacells_lst_init:n { \relax }
493-
\__mmacells_lst_fv_format_inline:V \l_tmpa_tl
494-
\__mmacells_lst_deinit:
489+
\bool_if:NTF \l_mmacells_uselistings_bool
490+
{
491+
\__mmacells_lst_hook_pre_set:
492+
\mmacells_lst_set:V \l_mmacells_lst_keyval_clist
493+
\__mmacells_lst_hook_text_style:
494+
\__mmacells_lst_init:n { \relax }
495+
\__mmacells_lst_fv_format_inline:V \l_tmpa_tl
496+
\__mmacells_lst_deinit:
497+
}
498+
{ \tl_use:N \l_tmpa_tl }
495499
}
496-
{ \tl_use:N \l_tmpa_tl }
497500

498501
\group_end:
499502
}
@@ -760,7 +763,8 @@
760763
{{\fboxsep0pt\colorbox{#1}{\strut #2}}}
761764

762765
\mmaSet{
763-
fv={formatcom*=\normalfont\color{black}\ttfamily},
766+
fv={formatcom*=\normalfont\ttfamily},
767+
formatline=\color{black},
764768
lst={language=[base]Mathematica},
765769
leftmargin=4.8em,
766770
labelsep=.6em,
@@ -827,7 +831,6 @@
827831
}
828832
\lstdefinestyle{MathematicaFrontEndOut}{
829833
style=MathematicaFrontEnd,
830-
basicstyle=\normalfont\color{black}\ttfamily,
831834
keywordstyle=,
832835
stringstyle=,
833836
commentstyle=,
@@ -836,7 +839,6 @@
836839
}
837840
\mmaDefineFrontEndInStyle{
838841
style=MathematicaFrontEnd,
839-
basicstyle=\normalfont\color{black}\ttfamily\bfseries,
840842
identifierstyle=\mmaUnd,
841843
}
842844
@@ -871,8 +873,10 @@
871873
style/Print,
872874
morelst={
873875
language=,
874-
basicstyle=\normalfont\sffamily\small\color{mmaComment},
876+
basicstyle=\color{mmaComment},
875877
},
878+
morefv={formatcom*={\normalfont\sffamily\small}},
879+
formatline=\color{mmaMessage},
876880
messagecolorchange,
877881
messagelinktype=builtin,
878882
}

0 commit comments

Comments
 (0)