change substitution sign to another arrow

This commit is contained in:
ucrhh 2021-02-04 10:58:09 +01:00
parent 1564c772d5
commit fd00b47928
3 changed files with 4 additions and 3 deletions

View File

@ -1,7 +1,7 @@
window.MathJax = { window.MathJax = {
loader: {load: ['[tex]/bussproofs', '[tex]/html', '[tex]/action']}, loader: {load: ['[tex]/bussproofs', '[tex]/unicode']},
tex: { tex: {
packages: {'[+]': ['bussproofs', 'html', 'action']}, packages: {'[+]': ['bussproofs', 'unicode']},
inlineMath: [['$', '$'], ['\\(', '\\)']] inlineMath: [['$', '$'], ['\\(', '\\)']]
}, },
startup: { startup: {

View File

@ -69,7 +69,7 @@ public class LatexCreator implements StepVisitor {
List<Substitution> substitutions = subs.unwrap(); List<Substitution> substitutions = subs.unwrap();
for (Substitution s : substitutions) { for (Substitution s : substitutions) {
latex.append(new LatexCreatorType(s.getVariable()).getLatex()); latex.append(new LatexCreatorType(s.getVariable()).getLatex());
latex.append(RIGHT_ARROW); latex.append(SUBSTITUTION_SIGN);
latex.append(new LatexCreatorType(s.getType()).getLatex()); latex.append(new LatexCreatorType(s.getType()).getLatex());
latex.append("\\\\"); latex.append("\\\\");
} }

View File

@ -34,6 +34,7 @@ public final class LatexCreatorConstants {
protected static final String USER_VARIABLE = "\\tau"; protected static final String USER_VARIABLE = "\\tau";
protected static final String GAMMA = "\\Gamma"; protected static final String GAMMA = "\\Gamma";
protected static final String SUBSTITUTION_SIGN = "\\mathrel{\\unicode{x21E8}}";
protected static final String LAMBDA = "\\lambda"; protected static final String LAMBDA = "\\lambda";
protected static final String LATEX_SPACE = "\\ "; protected static final String LATEX_SPACE = "\\ ";
protected static final String FOR_ALL = "\\forall"; protected static final String FOR_ALL = "\\forall";