From 2691ba687f264f48f0159ecf9efcd994e3ce5bda Mon Sep 17 00:00:00 2001 From: Ad5001 Date: Mon, 7 Mar 2022 15:06:40 +0100 Subject: [PATCH] Changed a few serif text to sans serif. --- .../qml/eu/ad5001/LogarithmPlotter/js/objs/function.js | 2 +- .../qml/eu/ad5001/LogarithmPlotter/js/objs/gainbode.js | 4 ++-- .../qml/eu/ad5001/LogarithmPlotter/js/objs/phasebode.js | 2 +- .../qml/eu/ad5001/LogarithmPlotter/js/objs/text.js | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/function.js b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/function.js index 44dc1f4..b1a98b8 100644 --- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/function.js +++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/function.js @@ -81,7 +81,7 @@ class Function extends Common.ExecutableObject { return `${Latex.variable(this.name)}:\\begin{array}{llll}${this.definitionDomain.latexMarkup}\\textrm{ } & \\rightarrow & \\textrm{ }${this.destinationDomain.latexMarkup}\\\\ x\\textrm{ } & \\mapsto & \\textrm{ }${this.expression.latexMarkup}\\end{array}` } else { - return `\\begin{array}{l}${Latex.variable(this.name)}(x) = ${this.expression.latexMarkup}\\\\ D_{${this.name}} = ${this.definitionDomain.latexMarkup}\\end{array}` + return `\\begin{array}{l}${Latex.variable(this.name)}(x) = ${this.expression.latexMarkup}\\\\ textD_{${this.name}} = ${this.definitionDomain.latexMarkup}\\end{array}` } } diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/gainbode.js b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/gainbode.js index 86b6dd3..ff8236c 100644 --- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/gainbode.js +++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/gainbode.js @@ -78,8 +78,8 @@ class GainBode extends Common.ExecutableObject { getLatexString() { let pass = this.pass == "low" ? qsTr("low-pass") : qsTr("high-pass"); return `\\mathrm{${Latex.variable(this.name)}:}\\begin{array}{l} - \\textrm{${pass}};${Latex.variable(this.om_0.name)} = ${this.om_0.x.latexMarkup} \\\\ - ${this.gain.latexMarkup}\\textrm{ dB/dec} + \\textsf{${pass}};${Latex.variable(this.om_0.name)} = ${this.om_0.x.latexMarkup} \\\\ + ${this.gain.latexMarkup}\\textsf{ dB/dec} \\end{array}` } diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/phasebode.js b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/phasebode.js index 4413de8..e3d7be0 100644 --- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/phasebode.js +++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/phasebode.js @@ -77,7 +77,7 @@ class PhaseBode extends Common.ExecutableObject { } getLatexString() { - return `${Latex.variable(this.name)}: ${this.phase.latexMarkup}\\textrm{${this.unit} at }${Latex.variable(this.om_0.name)} = ${this.om_0.x.latexMarkup}` + return `${Latex.variable(this.name)}: ${this.phase.latexMarkup}\\textsf{${this.unit} at }${Latex.variable(this.om_0.name)} = ${this.om_0.x.latexMarkup}` } execute(x=1) { diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/text.js b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/text.js index c5dd846..a46e840 100644 --- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/text.js +++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/text.js @@ -70,7 +70,7 @@ class Text extends Common.DrawableObject { let i for(i = 0; txt.includes('$$'); i++) if(i & 0x01) // Every odd number - txt = txt.replace('$$', '\\textrm{') + txt = txt.replace('$$', '\\textsf{') else txt = txt.replace('$$', '}') if(i & 0x01) // Finished by a } @@ -79,7 +79,7 @@ class Text extends Common.DrawableObject { } getLatexString() { - return `${Latex.variable(this.name)} = "\\textrm{${this.latexMarkupText()}}"` + return `${Latex.variable(this.name)} = "\\textsf{${this.latexMarkupText()}}"` } export() { @@ -91,7 +91,7 @@ class Text extends Common.DrawableObject { } getLatexLabel() { - return `\\textrm{${this.latexMarkupText()}}` + return `\\textsf{${this.latexMarkupText()}}` } draw(canvas, ctx) {