mirror of
https://gitlab.kit.edu/uskyk/typicalc.git
synced 2024-11-09 10:50:42 +00:00
parent
08085ad44d
commit
35013bd819
@ -135,7 +135,8 @@ window.MathJax = {
|
||||
.typicalc-type, g[semantics='bspr_prooflabel:left'] {\
|
||||
stroke: transparent; stroke-width: 600px; pointer-events: all;\
|
||||
}\
|
||||
#typicalc-definition-abs, #typicalc-definition-app, #typicalc-definition-const, #typicalc-definition-var, #typicalc-definition-let {\
|
||||
#typicalc-definition-abs, #typicalc-definition-abs-let, #typicalc-definition-app,\
|
||||
#typicalc-definition-const, #typicalc-definition-var, #typicalc-definition-var-let, #typicalc-definition-let {\
|
||||
display: none;\
|
||||
border: 2px solid red;\
|
||||
}";
|
||||
|
@ -36,6 +36,9 @@ public class MathjaxProofTree extends LitTemplate implements MathjaxAdapter {
|
||||
+ "\\cssId{typicalc-definition-abs}{"
|
||||
+ getTranslation("root.absLatex")
|
||||
+ "}"
|
||||
+ "\\cssId{typicalc-definition-abs-let}{"
|
||||
+ getTranslation("root.absLetLatex")
|
||||
+ "}"
|
||||
+ "\\cssId{typicalc-definition-app}{"
|
||||
+ getTranslation("root.appLatex")
|
||||
+ "}"
|
||||
@ -45,6 +48,9 @@ public class MathjaxProofTree extends LitTemplate implements MathjaxAdapter {
|
||||
+ "\\cssId{typicalc-definition-var}{"
|
||||
+ getTranslation("root.varLatex")
|
||||
+ "}"
|
||||
+ "\\cssId{typicalc-definition-var-let}{"
|
||||
+ getTranslation("root.varLetLatex")
|
||||
+ "}"
|
||||
+ "\\cssId{typicalc-definition-let}{"
|
||||
+ getTranslation("root.letLatex")
|
||||
+ "}"
|
||||
|
@ -126,8 +126,8 @@ public class LatexCreator implements StepVisitor {
|
||||
public void visit(AbsStepWithLet absL) {
|
||||
tree.insert(0, generateConclusion(absL,
|
||||
mode == LatexCreatorMode.MATHJAX
|
||||
? "\\LeftLabel{\\class{typicalc-label typicalc-label-abs typicalc-step-" + absL.getStepIndex()
|
||||
+ "}{\\textrm A{\\small BS}}}" : LABEL_ABS, // TODO: differentiate with let
|
||||
? "\\LeftLabel{\\class{typicalc-label typicalc-label-abs-let typicalc-step-" + absL.getStepIndex()
|
||||
+ "}{\\textrm A{\\small BS}}}" : LABEL_ABS,
|
||||
UIC));
|
||||
absL.getPremise().accept(this);
|
||||
}
|
||||
@ -174,9 +174,8 @@ public class LatexCreator implements StepVisitor {
|
||||
public void visit(VarStepWithLet varL) {
|
||||
String latex = "";
|
||||
if (mode == LatexCreatorMode.MATHJAX) {
|
||||
latex = "\\LeftLabel{\\class{typicalc-label typicalc-label-var "
|
||||
latex = "\\LeftLabel{\\class{typicalc-label typicalc-label-var-let "
|
||||
+ "typicalc-step-" + varL.getStepIndex() + "}{\\textrm V{\\small AR}}}";
|
||||
// TODO: differentiate with let
|
||||
} else {
|
||||
latex = LABEL_VAR;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user