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

Display issue for equations #34

Closed
cwmagee opened this issue Oct 11, 2017 · 7 comments · Fixed by #36
Closed

Display issue for equations #34

cwmagee opened this issue Oct 11, 2017 · 7 comments · Fixed by #36
Assignees

Comments

@cwmagee
Copy link
Collaborator

cwmagee commented Oct 11, 2017

Squid3 Version: 0.1.4
Java Version: 1.8.0_131
OS: Windows 7 6.1

Equation font size and line positions don't seem to match up.
Issue details:
image

@bowring bowring self-assigned this Oct 11, 2017
@bowring bowring added the bug label Oct 11, 2017
@bowring
Copy link
Member

bowring commented Oct 11, 2017

The CSS is overruling a local font choice, so the fix is to programmatically force the font to Courier New, which is monospaced.

@cwmagee
Copy link
Collaborator Author

cwmagee commented Oct 13, 2017

graph math display is still odd; data tables are good now:
image

@bowring bowring reopened this Oct 13, 2017
@bowring
Copy link
Member

bowring commented Oct 13, 2017

This problem may be related to GA internet access issues as the final step in rendering is handled by a server running Java Script (js). To test this theory, see if you can open this link in a browser: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js?config=TeX-MML-AM_SVG\

You should see a text document specifying MathJax.js with an Apache license header at the top. @cwmagee please comment on results here.

@cwmagee
Copy link
Collaborator Author

cwmagee commented Oct 16, 2017

That link is an ugly wall of code. I will try a cut and paste:
/*

  • /MathJax.js
  • Copyright (c) 2009-2017 The MathJax Consortium
  • Licensed under the Apache License, Version 2.0 (the "License");
  • you may not use this file except in compliance with the License.
  • You may obtain a copy of the License at
  •  http://www.apache.org/licenses/LICENSE-2.0
    
  • Unless required by applicable law or agreed to in writing, software
  • distributed under the License is distributed on an "AS IS" BASIS,
  • WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  • See the License for the specific language governing permissions and
  • limitations under the License.
    */
    javascript follows (removed)

@bowring
Copy link
Member

bowring commented Oct 16, 2017 via email

@bowring
Copy link
Member

bowring commented Oct 16, 2017

It runs fine on my windows boxes - I think the issue is JavaScript is blocked on your GA machine - try it on a personal machine and see if it works. Also, the attached file should open in a browser ( NOTE
ExpressionRenderTest.txt
you will have to rename it to end in ".html') and render the expression if Java Script is enabled.

@bowring bowring added help wanted and removed bug labels Nov 13, 2017
@bowring
Copy link
Member

bowring commented Dec 29, 2017

Fixed in #55 with implementation of use of browser outside Squid option.

@bowring bowring closed this as completed Dec 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants