Changing the size of MathJax text for mobile friendly version
202 views
Skip to first unread message
Kyle Brown
unread,
Jun 2, 2021, 10:07:44 AM6/2/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to JSXGraph
I have been using this page by Murray Bourne to create a bit of a template for mobile responsive graphs. I have it working fairly well, however, I would like to scale down the size of the MathJax text for smaller screens. I have tried to follow Murray's suggestion to resale a point:
NOTE: You may also need to update point sizes (and possibly for other elements as well) when resizing, something like this:
However, I can't seem to even get this to work for a point. Is this the right approach? Is there a way in the attributes of the text element to create a condition to change the size of the text if the screen size is less than 400px?
Thanks!
Murray
unread,
Jun 4, 2021, 4:10:11 AM6/4/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to JSXGraph
Hello Kyle
I amended the page just now with a working example of the changing point size code. You can see it on the graph at the end of Example 3: https://bourne2learn.com/math/jsxgraph/jsxgraph-examples.php (You may need to refresh the page to see the change.)
As for changing the font sizes, I'll leave that to Alfred to address.
Regards
Murray
Alfred Wassermann
unread,
Jun 6, 2021, 4:46:04 PM6/6/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to JSXGraph
Would it be sufficient to set the fontSize attribute?