Changed a few serif text to sans serif.
This commit is contained in:
parent
4c9c9668bb
commit
2691ba687f
4 changed files with 7 additions and 7 deletions
|
@ -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}\\\\
|
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}`
|
x\\textrm{ } & \\mapsto & \\textrm{ }${this.expression.latexMarkup}\\end{array}`
|
||||||
} else {
|
} 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}`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -78,8 +78,8 @@ class GainBode extends Common.ExecutableObject {
|
||||||
getLatexString() {
|
getLatexString() {
|
||||||
let pass = this.pass == "low" ? qsTr("low-pass") : qsTr("high-pass");
|
let pass = this.pass == "low" ? qsTr("low-pass") : qsTr("high-pass");
|
||||||
return `\\mathrm{${Latex.variable(this.name)}:}\\begin{array}{l}
|
return `\\mathrm{${Latex.variable(this.name)}:}\\begin{array}{l}
|
||||||
\\textrm{${pass}};${Latex.variable(this.om_0.name)} = ${this.om_0.x.latexMarkup} \\\\
|
\\textsf{${pass}};${Latex.variable(this.om_0.name)} = ${this.om_0.x.latexMarkup} \\\\
|
||||||
${this.gain.latexMarkup}\\textrm{ dB/dec}
|
${this.gain.latexMarkup}\\textsf{ dB/dec}
|
||||||
\\end{array}`
|
\\end{array}`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -77,7 +77,7 @@ class PhaseBode extends Common.ExecutableObject {
|
||||||
}
|
}
|
||||||
|
|
||||||
getLatexString() {
|
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) {
|
execute(x=1) {
|
||||||
|
|
|
@ -70,7 +70,7 @@ class Text extends Common.DrawableObject {
|
||||||
let i
|
let i
|
||||||
for(i = 0; txt.includes('$$'); i++)
|
for(i = 0; txt.includes('$$'); i++)
|
||||||
if(i & 0x01) // Every odd number
|
if(i & 0x01) // Every odd number
|
||||||
txt = txt.replace('$$', '\\textrm{')
|
txt = txt.replace('$$', '\\textsf{')
|
||||||
else
|
else
|
||||||
txt = txt.replace('$$', '}')
|
txt = txt.replace('$$', '}')
|
||||||
if(i & 0x01) // Finished by a }
|
if(i & 0x01) // Finished by a }
|
||||||
|
@ -79,7 +79,7 @@ class Text extends Common.DrawableObject {
|
||||||
}
|
}
|
||||||
|
|
||||||
getLatexString() {
|
getLatexString() {
|
||||||
return `${Latex.variable(this.name)} = "\\textrm{${this.latexMarkupText()}}"`
|
return `${Latex.variable(this.name)} = "\\textsf{${this.latexMarkupText()}}"`
|
||||||
}
|
}
|
||||||
|
|
||||||
export() {
|
export() {
|
||||||
|
@ -91,7 +91,7 @@ class Text extends Common.DrawableObject {
|
||||||
}
|
}
|
||||||
|
|
||||||
getLatexLabel() {
|
getLatexLabel() {
|
||||||
return `\\textrm{${this.latexMarkupText()}}`
|
return `\\textsf{${this.latexMarkupText()}}`
|
||||||
}
|
}
|
||||||
|
|
||||||
draw(canvas, ctx) {
|
draw(canvas, ctx) {
|
||||||
|
|
Loading…
Reference in a new issue