Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Commit

Permalink
Fix LaTeX generator bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jiggzson committed Nov 17, 2018
1 parent 54ae892 commit 9be9282
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions nerdamer.core.js
Expand Up @@ -11,7 +11,7 @@ var nerdamer = (function(imports) {
"use strict";

//version ======================================================================
var version = '0.8.1';
var version = '0.8.2';

//inits ========================================================================
var _ = new Parser(); //nerdamer's parser
Expand Down Expand Up @@ -3490,7 +3490,12 @@ var nerdamer = (function(imports) {
collection.append(e);
return collection;
};


this.classes = {
Collection: Collection,
Slice: Slice
};

function Token(node, node_type, column) {
this.type = node_type;
this.value = node;
Expand Down Expand Up @@ -7675,6 +7680,8 @@ var nerdamer = (function(imports) {
if(symbol.clone) {
symbol = symbol.clone(); //leave original as-is
}
if(symbol instanceof _.classes.Collection)
symbol = symbol.elements;

if(isArray(symbol)) {
var LaTeXArray = [];
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -6,7 +6,7 @@
"description": "javascript light-weight symbolic math expression evaluator",
"name": "nerdamer",
"license": "MIT",
"version": "0.8.1",
"version": "0.8.2",
"homepage": "http://nerdamer.com/",
"directory": {
"lib": "./"
Expand Down

0 comments on commit 9be9282

Please sign in to comment.