1393 Commits

Author SHA1 Message Date
Max Bruckner
9c606c044f latex.toSymbol: get rid of unnecessary curly braces and wire up units 2015-04-19 09:56:40 +02:00
Max Bruckner
ee4486c3df SymbolNode.toTex: Prevent symbols from breaking operators
If a symbol comes after an operator like '\cdot', there needs to be a
space in between, otherwise the cdot won't get recognized by the LaTeX
parser.
2015-04-19 09:49:10 +02:00
Max Bruckner
1c73dc1262 ConstantNode.toTex: simplify exponential notatian and add test 2015-04-19 09:49:09 +02:00
Max Bruckner
2cd3da416e UpdateNode.toTex: Fix syntax of assignment and fix test 2015-04-19 09:49:09 +02:00
Max Bruckner
55a66aeaaf OperatorNode.toTex: get rid of unnecessary curly braces 2015-04-19 09:49:09 +02:00
Max Bruckner
753a0e7893 IndexNode.toTex: Bugfix: execute toTex on Range Arguments
Also changes the Layout of the LaTeX output of IndexNode.
2015-04-19 09:49:08 +02:00
Max Bruckner
978bc2bc31 FunctionAssignmentNode.toTex: get rid of unnecessary curly braces 2015-04-19 09:49:08 +02:00
Max Bruckner
816b6314a7 AssignmentNode.toTex: get rid of unnecessary curly braces 2015-04-19 02:13:27 +02:00
Max Bruckner
8db07e23ad OperatorNode.toTex: BUGFIX: make clear where the exponent belongs to
Without proper parentheses it's impossible to decide whether an exponent
belongs to the numerator of a fraction or to the entire fraction.

For ConditionalNode, the exponent is hard to see without parentheses.
2015-04-19 02:11:20 +02:00
Max Bruckner
f2bcfed89f LaTeX: no spaces between operands and operators 2015-04-17 14:18:24 +02:00
jos
46bb79b5b9 Update /dist 2015-04-17 13:41:10 +02:00
jos
c8048dad39 Merge remote-tracking branch 'origin/develop' into develop 2015-04-17 09:44:41 +02:00
jos
fd050ffae6 Fixed not being able to override lazy loaded constants 2015-04-17 09:44:31 +02:00
Jos de Jong
a21d8e2797 Merge pull request #325 from FSMaxB/latex-parenthesis
Show less unnecessary parentheses in LaTeX output of OperatorNodes
2015-04-17 09:17:54 +02:00
Max Bruckner
7c1c9c0cef Show less unnecessary parentheses in LaTeX output
OperatorNodes with exponentiation, fractions and conditions use less
parentheses.
2015-04-16 22:31:02 +02:00
Max Bruckner
8747918e1c LaTeX: add additional information about nodes in precedence list
Adds information about the necessity of parentheses for LaTeX output to
the precedence list in lib/expression/operators.js
2015-04-16 22:17:47 +02:00
jos
2fe5746df7 Merge remote-tracking branch 'origin/develop' into develop 2015-04-15 21:31:10 +02:00
jos
01497799fb Added an example on plotting a function 2015-04-15 21:31:01 +02:00
Jos de Jong
919f30fab4 Merge pull request #324 from FSMaxB/latex-restructure-bugfix
Fix bug that was introduced by the restructuring of the LaTeX code
2015-04-15 15:35:41 +02:00
Max Bruckner
5780635bb8 util/latex: bugfix: error when handling symbols with indices 2015-04-15 14:03:08 +02:00
Jos de Jong
2142dec160 Merge pull request #323 from nfoti/gamma-doc
Corrected gamma documentation to allow argument to be real or complex.
2015-04-15 09:05:33 +02:00
Nick Foti
020a47c938 Corrected gamma documentation to allow argument to be real or complex. 2015-04-14 14:40:43 -07:00
jos
96fada9a79 Updated history 2015-04-13 21:39:20 +02:00
Jos de Jong
bc6f63b6c9 Merge pull request #318 from FSMaxB/latex-restructure
Restructure and complete the LaTeX generator.
2015-04-13 09:39:16 +02:00
Max Bruckner
2076bebdb0 util/latex: Make use of templates based on number of arguments 2015-04-13 00:39:03 +02:00
Max Bruckner
29fd97839f util/latex: Use Template/Callback based on number of arguments 2015-04-13 00:07:56 +02:00
Max Bruckner
240eeecccd lib/util: Move over from callbacks to templates 2015-04-12 23:44:26 +02:00
Max Bruckner
8b5ed85875 util/latex: Get rid of defaultToTex and replace it with defaultTemplate 2015-04-12 13:43:29 +02:00
Max Bruckner
efdf153022 util/latex: Use %% for % in templates 2015-04-12 13:31:09 +02:00
Max Bruckner
14347ed610 util/latex: New template variable for comma separated list of arguments
You can now use '%*%' to get a comma separated list of all arguments
2015-04-12 13:31:06 +02:00
Max Bruckner
34046e22d9 util/latex: Enable templates for LaTeX output of functions.
You can now use templates containing '%name%' and '%0%', '%1%' ...
to define the LaTeX of a function.
2015-04-12 13:30:34 +02:00
jos
f7fe2f9ffd Bumped version number to 1.5.3-SNAPSHOT 2015-04-09 21:23:20 +02:00
jos
d043d24abe Released v1.5.2 v1.5.2 2015-04-09 21:17:28 +02:00
jos
9694bb618f Updated docs about binary prefixes 2015-04-09 20:44:12 +02:00
jos
e2bd50723d Fixed #251: binary prefix and SI prefix incorrectly used for byte. Now following SI standards (1 KiB == 1024 B, 1 kB == 1000 B) 2015-04-09 20:36:51 +02:00
jos
3150e21c8e Fixed #313: parsed functions did not handle recursive calls correctly 2015-04-09 20:29:51 +02:00
jos
cb6f52ad8f Bumped version number to 1.5.2-SNAPSHOT 2015-04-08 09:30:12 +02:00
jos
8dccb60f30 Released version 1.5.1 v1.5.1 2015-04-08 09:17:18 +02:00
jos
5dfa79196e Some more fixes and improvements in NumberFormatter 2015-04-07 22:16:47 +02:00
jos
2cdeb0d49b Save digits as number instead of string 2015-04-06 21:17:39 +02:00
jos
8dceac768f Merge remote-tracking branch 'origin/develop' into develop 2015-04-06 21:08:32 +02:00
jos
f773df0fc6 Fixed #317 (formatting negative values), fixed #316 (round-off errors in formatting values) 2015-04-06 21:08:21 +02:00
Max Bruckner
9acccce315 util/latex: change comments 2015-04-05 14:29:16 +02:00
Max Bruckner
92c27301ba util/latex: use map of operators in LaTeX conversion of functions 2015-04-05 14:29:16 +02:00
Max Bruckner
dacf9fba46 OperatorNode: bugfix: toTex creates invalid LaTeX
toTex has been creating invalid LaTeX for fractions where the operands
are in parenthesis, see '(1+1)/2' for example
2015-04-05 14:29:15 +02:00
Max Bruckner
e71720aae7 util/latex: LaTeX mapping for every operator 2015-04-05 14:29:15 +02:00
Max Bruckner
671734f215 util/latex: Use function names as keys for map of operators 2015-04-05 14:29:14 +02:00
Max Bruckner
0868987cdf util/latex: use ":=" for assignments and '=' 'equal' 2015-04-05 14:29:14 +02:00
Max Bruckner
3548a4e4b3 util/latex: get rid of latexToFn 2015-04-05 14:29:13 +02:00
Max Bruckner
e536af8328 OperatorNode: get rid of util/latex's toFunction 2015-04-05 14:29:13 +02:00