Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mmaInlineCell without a preceding mmaCell doesn't work. #32

Closed
SPPearce opened this issue Jan 3, 2017 · 3 comments
Closed

mmaInlineCell without a preceding mmaCell doesn't work. #32

SPPearce opened this issue Jan 3, 2017 · 3 comments
Labels
Milestone

Comments

@SPPearce
Copy link

SPPearce commented Jan 3, 2017

Hi,

If I try to call \mmaInlineCell before a mmaCell environment I get the following error:
Missing \endcsname inserted.\unhbox ...l: \mmaInlineCell[]{Code}{Module[{a=5}, a]}

Minimal TeX code:

\documentclass[12pt]{article}
\usepackage{mmacells}

\begin{document}
%\begin{mmaCell}[functionlocal=y]{Code}
% Integrate[y,{y,0,1}]
%\end{mmaCell}

Inline cell: \mmaInlineCell[]{Code}{Module[{a=5}, a]}.

\end{document}

@jkuczm jkuczm added the bug label Jan 3, 2017
@jkuczm jkuczm added this to the 0.3.2 milestone Jan 3, 2017
@jkuczm
Copy link
Owner

jkuczm commented Jan 3, 2017

Thanks for reporting it.

It seems there's a problem with listings language initialization, after executing \FV@FormattingPrep command from fancyvrb.

As a workaround add {\lstset{language=[base]Mathematica}} right below \usepackage{mmacells}.

@jkuczm
Copy link
Owner

jkuczm commented Jan 3, 2017

Should be fixed in version 0.3.2.

@SPPearce
Copy link
Author

SPPearce commented Jan 3, 2017

Thanks, that fixed it, I'll check the new build.
Nice package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants