APS Excellence in Physics Education Award
November 2019

Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

Symbols post and replies

Return to the Symbols thread
Login to post to this thread

SYmbols like ASCII or Unicode
Apostolos Michaloudis
28 Posts

Hi.
Is there a posibility to add symbols like the copyright symbol or
to writ m1, with number 1 being a subscript?
I tried something like m\u2081 but it does't work.

Post edited July 9, 2017 at 11:26 AM EST.


Replies to SYmbols like ASCII or Unicode

Re: SYmbols like ASCII or Unicode -
Francisco Esquembre
237 Posts

Hi,

where do you want to add them?

In a Java or in a JavaScript Simulations?

In a label or in a text drawable?

In a HtmlView interface element (for JavaScript simulations) try this: https://www.w3schools.com/html/html_symbols.asp

Hope this helps.

Paco



Re: Re: SYmbols like ASCII or Unicode -
Apostolos Michaloudis
28 Posts

Mr Esquembre, thank you for your repply.
I use Java-flavor simulations.
I want to add them as String name in a label for example.
Or in a slider i want to write

"v1 = 0.00 m/s"

but i want the number 1 as subscript.
Is this possible?

Post edited July 13, 2017 at 11:04 AM EST.



Re: Re: Re: SYmbols like ASCII or Unicode -
Francisco Esquembre
237 Posts

Hum. I am afraid that it is not. Plotting panels accept kind of LaTeX style for titles, so you can write (in a Plotting panel title) $v_{1}$

But not in standard Labels, sorry.

(Javascript is much better in this sense, since it allows HTML.)

Paco



OSP Projects:
Open Source Physics - EJS Modeling
Tracker
Physlet Physics
Physlet Quantum Physics
STP Book