-
Notifications
You must be signed in to change notification settings - Fork 20
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
Compilation hangs #31
Comments
You have newlines in places where they shouldn't be. Especially ...\m\
maSup{... Also due to some peculiarities of There are two main cases when \documentclass[12pt]{article}
\usepackage{mmacells}
\begin{document}
\begin{mmaCell}[uselistings=false]{Output}
\mmaFrac{1}{4}(-\mmaFrac{\mmaSup{e}{-\mmaFrac{\mmaSup{(-I0+ID)}{2}}{2 \mmaSup{s0}{2}}} \mmaSqrt{\mmaFrac{2}{\(\pi\)}}}{s0}\
+ \mmaFrac{\mmaSup{e}{-\mmaFrac{\mmaSup{(I1-ID)}{2}}{2 \mmaSup{s1}{2}}} \mmaSqrt{\mmaFrac{2}{\(\pi\)}}}{s1})
\end{mmaCell}
\end{document} Those excessive newlines are usually added by Mathematica. Depending on how you transfer string with TeX code from Mathematica to outside world, there are different ways to avoid them. Related to jkuczm/MathematicaCellsToTeX#20. |
Is there any way to get around "Dimension too large"
On 30 Nov 2016, at 4:07, Jakub Kuczmarski wrote:
You have newlines in places where they shouldn't be. Especially
`\mmaSup` command is split between 5th and 6th line:
``` tex
...\m\
maSup{...
```
Also due to some peculiarities of `listings` - `fancyvrb` interface,
newlines can't be used inside formatting commands like `\mmaFrac`, and
too many formatting commands can't be used in single line.
There are two main cases when `listings` in `mmacells` is useful:
automatic styling of identifiers, and replacements of infix
operators, none seems to be applicable here, so you can switch off
`listings` by using `uselistings=false` option:
``` tex
\documentclass[12pt]{article}
\usepackage{mmacells}
\begin{document}
\begin{mmaCell}[uselistings=false]{Output}
\mmaFrac{1}{4}(-\mmaFrac{\mmaSup{e}{-\mmaFrac{\mmaSup{(-I0+ID)}{2}}{2
\mmaSup{s0}{2}}} \mmaSqrt{\mmaFrac{2}{\(\pi\)}}}{s0}\
+ \mmaFrac{\mmaSup{e}{-\mmaFrac{\mmaSup{(I1-ID)}{2}}{2
\mmaSup{s1}{2}}} \mmaSqrt{\mmaFrac{2}{\(\pi\)}}}{s1})
\end{mmaCell}
\end{document}
```
Those excessive newlines are usually added by *Mathematica*. Depending
on how you transfer string with *TeX* code from *Mathematica* to
outside world, there may be ways to avoid them.
Related to jkuczm/MathematicaCellsToTeX#20.
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#31 (comment)
Jonathan Wheeler
jamwheeler.com
fb.com/jondoesntpost
twitter.com/jondoesnttweet
|
Again this error most probably originates in |
Or did you mean that code that I posted above gives you this error? |
Hey Jakub,
Above code gives the error
|
Could you post full |
Hello,
When I use pdflatex on the following code, compilation never completes.
Any idea why it hangs?
The text was updated successfully, but these errors were encountered: