Orbiter-Forum math environment length limitation
 Register Blogs Orbinauts List Social Groups FAQ Projects Mark Forums Read

math environment length limitation Issue Tools
10-19-2016 11:25 AM
 Orbiter Founder
math environment length limitation
Can the 400-character limit for math environments be increased?

Is there a length limitation for the content of math blocks?
I just came across this:

Quote:
[LaTeX Error: String is too long (428, limit 400)]
400 seems awfully tight if you want to generate a more complex equation.

Also I just discovered that the math tag supports picture environments. Latex pictures would be a neat way to generate quick inline graphics, but the 400 char limit makes it useless.

I don't really see why there should be a limit at all.

For reference, here is the code that produced the above error message:

Code:
[ math ]
\setlength{\unitlength}{1mm}
\begin{picture}(100,100)(50,50)
\put(-20,-20){\line(1,0){40}}
\put(20,-20){\line(0,1){40}}
\put(20,20){\line(-1,0){40}}
\put(-20,20){\line(0,-1){40}}
\put(0,0){\circle*{2}}
\put(0,20){\circle*{2}}
\put(-20,-20){\circle*{2}}
\put(20,-20){\circle*{2}}
\put(0,0){\line(0,1){25}}
\put(0,0){\line(-1,-1){25}}
\put(0,0){\line(1,-1){25}}
\multiput(0,0)(0,-2){12}{\line(0,-1){1}}
\end{picture}
[ /math ]
Edit: Actually, looking at the error message it looks more like a genuine LaTeX error than a board issue. Maybe the problem is the way the math code is passed to the LaTeX compiler by the board?
Issue Details
Issue Type Question
Project Site Support
Status Question
Priority 5 - Medium
Unknown
(none)
Users who question this issue 0
Users who do not question this issue 0
Assigned Users (none)
Tags (none)

 Filter responses to show Comments (3) Petitions (0) Changes (0) All
10-19-2016 11:40 AM
 Certain Super User
Why are you using it in that order of nesting? I can't really see a mathematical formula in your code that requires to be translated. The picture environment itself should be good enough there.
10-19-2016 11:58 AM
 Orbiter Founder
Not sure I follow. There is no formula, but a latex picture. Surely this still needs to be run through a latex compiler, so requires math tags? Am I missing something?
10-20-2016 12:21 PM
 Certain Super User
Quote:
Originally Posted by martins
Not sure I follow. There is no formula, but a latex picture. Surely this still needs to be run through a latex compiler, so requires math tags? Am I missing something?

AAAAAAAAh.... Sorry, it was late and I wasn't really realizing it is about the math-tag of O-F. I thought you mean one of the many alternative short-hand syntax for a math environment in Latex.

In that case, you could be simply having problems, because the plugin only allows a subset of Latex. I remember some of the more graphical elements of Latex are not working because the required packages are not installed, referenced or supported.

A possibility to also render picture environments in latex could be nice sometimes.

Issue Tools
Subscribe to this issue

All times are GMT. The time now is 01:02 PM.