Free cookie consent management tool by TermsFeed Policy Generator

Changeset 7451


Ignore:
Timestamp:
02/05/12 17:26:44 (13 years ago)
Author:
gkronber
Message:

#1773 fixed bug in the latex formatter, incorrect parentheses for logical or and and operations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Formatters/SymbolicDataAnalysisExpressionLatexFormatter.cs

    r7446 r7451  
    123123        strBuilder.Append(@"  \left( ");
    124124      } else if (node.Symbol is And) {
    125         strBuilder.Append(@"  \left( ");
     125        strBuilder.Append(@"  \left( \left( ");
    126126      } else if (node.Symbol is Or) {
    127         strBuilder.Append(@"   \left( ");
     127        strBuilder.Append(@"   \left( \left( ");
    128128      } else if (node.Symbol is Not) {
    129129        strBuilder.Append(@" \neg \left( ");
     
    298298            // replace "." with ".&" to align decimal points
    299299            var constStr = string.Format(System.Globalization.NumberFormatInfo.InvariantInfo, "{0:G5}", constant);
    300             if(!constStr.Contains(".")) constStr = constStr + ".0";
     300            if (!constStr.Contains(".")) constStr = constStr + ".0";
    301301            constStr = constStr.Replace(".", "\\negthickspace&.");  // fix problem in rendering of aligned expressions
    302302            strBuilder.Append("c_{" + i + "}& = & " + constStr);
Note: See TracChangeset for help on using the changeset viewer.