Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maxima manual is full of TeX markup when it is displayed in a browser. #1702

Closed
richardgobeli opened this issue Jul 31, 2022 · 16 comments
Closed

Comments

@richardgobeli
Copy link
Collaborator

Was the manual displayed differently before it was moved to a browser window?
Is this only in wxMaxima? How does Maxima display the manual?

The distribution package is full of math functions in markup codes.

@gunterkoenigsmann
Copy link
Member

In theory it should come with a JavaScript script that converts TeX to beautiful 2D maths...

@richardgobeli
Copy link
Collaborator Author

richardgobeli commented Jul 31, 2022

I see when I run Maxima it converts it correctly into the formatted text,
but if I try ? pdf_chi2; to display it in wxMaxima I get the following error:
image
Where can I get the script? I normally use Chrome.
Chrome, Internet Explorer or Microsoft Edge do not work for the TeX markup.

@gunterkoenigsmann
Copy link
Member

Normally the manual's html files should automatically download the script.

Is the manual full of TeX markup if it is opened in a regular HTML browser like Chrome, Edge or Firefox - or only in wxMaxima's help viewer?

@gunterkoenigsmann
Copy link
Member

And we have changed many things in the last days: Is tomorrow's nightly build better or worse?

@richardgobeli
Copy link
Collaborator Author

richardgobeli commented Jul 31, 2022

The build has not worked for 6 days. I have build from 7/16/2022.
I don't think it loads the script, if there is not a load command in the beginning of the html file to indicate that it contains TeX.

The help Maxima manual loads a single page copy of manual. It does not convert the text.
The ? help fails in wxMaxima with the version I have below.

image

image

@gunterkoenigsmann
Copy link
Member

...and the single page manual doesn't contain a <script> Tag that loads MathJaX?

@gunterkoenigsmann
Copy link
Member

Ok... ...the nightly build works again.

@gunterkoenigsmann
Copy link
Member

In the help menu and in the config dialogue there now are radio buttons that tel where something like

? elliptic_f;

should open the manual. I've unpacked the windows installer using 7zip on linux. In theory it should load the MathJaX stuff that scans the document for TeX and replaces it with 2D maths now, along with a polyfill that defines all the Javascript commands you might need and that your browser happens to not implement.

@richardgobeli
Copy link
Collaborator Author

richardgobeli commented Aug 3, 2022

When I select browser the text gets converted, but the main manual always goes to the sidebar and is not converted.
The ? elliptic_f; will go to an external browser and get converted. If I take the URL of the single-page manual and then put it in that browser it also gets converted.
So why can't your code do the same to the whole manual in an external browser?
? elliptic_f; does not get converted when it goes to the sidebar, but both manuals always go to the sidebar even if text or HTML is selected.

@gunterkoenigsmann
Copy link
Member

I can set the default to "open all manual files in an external browser" and the "use the single-page manual".

But you mean that the single-page manual is displayed correctly with 2D maths in it by the integrated browser and the one-file-per-chapter aren't? In that case the we'll need to find the difference between them that makes the difference.

@richardgobeli
Copy link
Collaborator Author

richardgobeli commented Aug 4, 2022

WxMaxim always sends the single-page manual to the sidebar and never gets converted.
If the sidebar is selected the code ? elliptic_f; does not get converted in the sidebar.
Nothing gets converted in the sidebar and the single-page manual always goes to the sidebar.

When a browser is selected the code ? elliptic_f; opens an external browser and it gets converted. Good.

Because the whole Maxima manual always goes to the sidebar I need to do the following:
The only time the single-page manual gets converted is when I manually get the URL of the single-page manual and I insert it in an external browser. This is the only way I can get the whole manual to convert.
It looks like the code is in the single-page manual file to load the MathJaX script.
So the manual just needs to go to an external browser as it did before.

gunterkoenigsmann added a commit that referenced this issue Aug 6, 2022
gunterkoenigsmann added a commit that referenced this issue Aug 7, 2022
@richardgobeli
Copy link
Collaborator Author

richardgobeli commented Aug 7, 2022

It is still not working in the sidebar.
The converting does work in the console mode and in the browser mode for the ? function.
The manual and the ? function do not work in the sidebar and the manual always goes to the sidebar.
Can you send the manual to the browser when browser is selected, because I can't search it the sidebar?
image
image

@richardgobeli
Copy link
Collaborator Author

I see you added a config select for where the manual goes. I picked auto and it goes to external.

@richardgobeli
Copy link
Collaborator Author

@gunterkoenigsmann
I just noticed the function above F(x,m,s) is the sum of a fraction and of 1/2 But the text version shows the fraction as one with the denominator being made of 2 space 2 and the sum character is at the end. It looks like the 1 and 2 of the fraction 1/2 was not moved far enough to the right to be over the dash symbol. I don't know if that is a wxMaxima issue or that came for Maxima that way.

@gunterkoenigsmann
Copy link
Member

I don't know if there is a good solution for the latter issue: Maxima currently doesn't inform wxMaxima that the text it sends now needs to be displayed in a font in which all characters are of an equal width so wxMaxima doesn't display it that way.

@gunterkoenigsmann
Copy link
Member

Now I had one idea and have comitted it as 13bccc7..3d09657

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants