mirror of
https://github.com/Pomax/BezierInfo-2.git
synced 2025-08-30 11:40:27 +02:00
Cambria anyway
This commit is contained in:
@@ -2,6 +2,11 @@ module.exports = function cleanUp(latex) {
|
||||
// strip any \[ and \], which is an block-level LaTeX markup indicator for MathJax:
|
||||
latex = latex.replace(/^'/,'').replace(/'$/,'').replace('\\[','').replace('\\]','');
|
||||
|
||||
// wrap some known functor words in italics markup
|
||||
['Bézier'].forEach(term => {
|
||||
latex = latex.replace(new RegExp(term, 'g'), '\\textit{' + term + '}');
|
||||
});
|
||||
|
||||
// also unindent the LaTeX.
|
||||
var indent = false;
|
||||
var lines = latex.split('\n').filter(function(line) { return !!line.trim(); });
|
||||
|
@@ -84,14 +84,14 @@ if (process.env.locale === 'ja-JP') {
|
||||
}
|
||||
|
||||
filedata = filedata.concat([
|
||||
'\\setmainfont[Ligatures=TeX]{TeX Gyre Pagella}',
|
||||
'\\setmathfont{TeX Gyre Pagella Math}',
|
||||
// '\\setmainfont[Ligatures=TeX]{TeX Gyre Pagella}',
|
||||
// '\\setmathfont{TeX Gyre Pagella Math}',
|
||||
|
||||
// '\\setmainfont{XITS}',
|
||||
// '\\setmathfont{XITS Math}',
|
||||
|
||||
// '\\setmainfont[Ligatures=TeX]{Cambria}',
|
||||
// '\\setmathfont{Cambria Math}',
|
||||
'\\setmainfont[Ligatures=TeX]{Cambria}',
|
||||
'\\setmathfont{Cambria Math}',
|
||||
|
||||
// '\\setmainfont[Ligatures=TeX]{LucidaBrightOT}',
|
||||
// '\\setmathfont{LucidaBrightMathOT}',
|
||||
|
Reference in New Issue
Block a user