Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions mathics_django/web/media/js/doc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ let docLoaded = false, lastSearchValue = '';
function showPage(response) {
const doc = document.getElementById('doc');
if (doc) {
doc.innerHTML = response.content;
doc.innerHTML = response.content;
MathJax.Hub.Queue(["Typeset",MathJax.Hub, doc]);
}

document.querySelectorAll('li.test p').forEach((test) => {
Expand Down Expand Up @@ -37,7 +38,6 @@ function showPage(response) {
document.querySelectorAll('ul.test').forEach((test) => {
const id = test.id.substr(5); // 'test_...'
const { results } = response.data[id];

setResult(test, results);
});
}
Expand Down
4 changes: 4 additions & 0 deletions mathics_django/web/media/js/inout.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,10 @@ function showGallery() {
'D[Sin[2x] + Log[x] ^ 2, x]',
'Integrate[Tan[x] ^ 5, x]',

'(**** LaTeX and MathML forms ****)',
'TeXForm[Integrate[F[x],{x,a,b}]]',
// TODO: Modify MathMLForm in Mathics-django to avoid render the output
'MathMLForm[Integrate[F[x],{x,a,b}]]',
'(**** Linear Algebra ****)',
'MagicSquare = {{2, 7, 6}, {9, 5, 1}, {4, 3, 8}}; MatrixForm[MagicSquare]',
'LinearSolve[MagicSquare, {1, 1, 1}] // MatrixForm',
Expand Down
1 change: 1 addition & 0 deletions mathics_django/web/media/js/mathics.js
Original file line number Diff line number Diff line change
Expand Up @@ -877,6 +877,7 @@ function globalKeyUp(event) {

function domLoaded() {
MathJax.Hub.Config({
tex2jax:{inlineMath: [['$','$'], ['\\(','\\)']]},
'HTML-CSS': {
imageFont: null,
linebreaks: {
Expand Down
Loading
Loading