mirror of
https://gitlab.kit.edu/uskyk/typicalc.git
synced 2024-11-08 18:30:42 +00:00
undo error with dollar signs
This commit is contained in:
parent
af16a6bd87
commit
6cf1de6780
@ -127,8 +127,8 @@ public class LatexCreator implements StepVisitor {
|
|||||||
String assumptions = typeAssumptionsToLatex(var.getConclusion().getTypeAssumptions());
|
String assumptions = typeAssumptionsToLatex(var.getConclusion().getTypeAssumptions());
|
||||||
String term = new LatexCreatorTerm(var.getConclusion().getLambdaTerm()).getLatex();
|
String term = new LatexCreatorTerm(var.getConclusion().getLambdaTerm()).getLatex();
|
||||||
String type = generateTypeAbstraction(var.getTypeAbsInPremise());
|
String type = generateTypeAbstraction(var.getTypeAbsInPremise());
|
||||||
return PAREN_LEFT + assumptions + PAREN_RIGHT + PAREN_LEFT + term
|
return DOLLAR_SIGN + PAREN_LEFT + assumptions + PAREN_RIGHT + PAREN_LEFT + term
|
||||||
+ PAREN_RIGHT + EQUALS + type;
|
+ PAREN_RIGHT + EQUALS + type + DOLLAR_SIGN;
|
||||||
}
|
}
|
||||||
|
|
||||||
private String generateTypeAbstraction(TypeAbstraction abs) {
|
private String generateTypeAbstraction(TypeAbstraction abs) {
|
||||||
@ -178,8 +178,7 @@ public class LatexCreator implements StepVisitor {
|
|||||||
@Override
|
@Override
|
||||||
public void visit(VarStepDefault varD) {
|
public void visit(VarStepDefault varD) {
|
||||||
tree.insert(0, generateConclusion(varD, LABEL_VAR, UIC));
|
tree.insert(0, generateConclusion(varD, LABEL_VAR, UIC));
|
||||||
tree.insert(0, AXC + CURLY_LEFT + DOLLAR_SIGN + generateVarStepPremise(varD)
|
tree.insert(0, AXC + CURLY_LEFT + generateVarStepPremise(varD) + CURLY_RIGHT + NEW_LINE);
|
||||||
+ DOLLAR_SIGN + CURLY_RIGHT + NEW_LINE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -190,9 +189,9 @@ public class LatexCreator implements StepVisitor {
|
|||||||
String premiseRight = DOLLAR_SIGN + typeAbstraction + INSTANTIATE_SIGN + instantiatedType
|
String premiseRight = DOLLAR_SIGN + typeAbstraction + INSTANTIATE_SIGN + instantiatedType
|
||||||
+ DOLLAR_SIGN + NEW_LINE;
|
+ DOLLAR_SIGN + NEW_LINE;
|
||||||
String premiseLeft = AXC + CURLY_LEFT + DOLLAR_SIGN + ALIGN_BEGIN
|
String premiseLeft = AXC + CURLY_LEFT + DOLLAR_SIGN + ALIGN_BEGIN
|
||||||
+ generateVarStepPremise(varL)
|
+ generateVarStepPremise(varL).replace(DOLLAR_SIGN, "")
|
||||||
+ SPACE + LATEX_NEW_LINE + SPACE
|
+ SPACE + LATEX_NEW_LINE + SPACE // todo less replacement fixups
|
||||||
+ premiseRight
|
+ premiseRight.replace(DOLLAR_SIGN, "")
|
||||||
+ ALIGN_END + DOLLAR_SIGN + CURLY_RIGHT + NEW_LINE;
|
+ ALIGN_END + DOLLAR_SIGN + CURLY_RIGHT + NEW_LINE;
|
||||||
tree.insert(0, premiseLeft);
|
tree.insert(0, premiseLeft);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user